Diffstat (limited to 'noncore/todayplugins/fortune/fortuneplugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/todayplugins/fortune/fortuneplugin.cpp | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/noncore/todayplugins/fortune/fortuneplugin.cpp b/noncore/todayplugins/fortune/fortuneplugin.cpp new file mode 100644 index 0000000..9751e6f --- a/dev/null +++ b/noncore/todayplugins/fortune/fortuneplugin.cpp | |||
@@ -0,0 +1,71 @@ | |||
1 | /* | ||
2 | * fortuneplugin.cpp | ||
3 | * | ||
4 | * copyright : (c) 2002 by Chris Larson | ||
5 | * email : kergoth@handhelds.org | ||
6 | * | ||
7 | */ | ||
8 | /*************************************************************************** | ||
9 | * * | ||
10 | * This program is free software; you can redistribute it and/or modify * | ||
11 | * it under the terms of the GNU General Public License as published by * | ||
12 | * the Free Software Foundation; either version 2 of the License, or * | ||
13 | * (at your option) any later version. * | ||
14 | * * | ||
15 | ***************************************************************************/ | ||
16 | |||
17 | |||
18 | |||
19 | #include "fortuneplugin.h" | ||
20 | #include "fortunepluginwidget.h" | ||
21 | |||
22 | |||
23 | FortunePlugin::FortunePlugin() | ||
24 | { | ||
25 | } | ||
26 | |||
27 | FortunePlugin::~FortunePlugin() | ||
28 | { | ||
29 | } | ||
30 | |||
31 | QString FortunePlugin::pluginName() const | ||
32 | { | ||
33 | return QObject::tr( "Fortune plugin" ); | ||
34 | } | ||
35 | |||
36 | double FortunePlugin::versionNumber() const | ||
37 | { | ||
38 | return 0.1; | ||
39 | } | ||
40 | |||
41 | QString FortunePlugin::pixmapNameWidget() const | ||
42 | { | ||
43 | return "Fortune"; | ||
44 | } | ||
45 | |||
46 | QWidget* FortunePlugin::widget( QWidget *wid ) | ||
47 | { | ||
48 | return new FortunePluginWidget( wid, "Fortune" ); | ||
49 | } | ||
50 | |||
51 | QString FortunePlugin::pixmapNameConfig() const | ||
52 | { | ||
53 | return "Fortune"; | ||
54 | } | ||
55 | |||
56 | TodayConfigWidget* FortunePlugin::configWidget( QWidget* wid ) | ||
57 | { | ||
58 | // return new FortunePluginConfig( wid , "Fortune" ); | ||
59 | return NULL; | ||
60 | } | ||
61 | |||
62 | QString FortunePlugin::appName() const | ||
63 | { | ||
64 | return "fortune"; | ||
65 | } | ||
66 | |||
67 | |||
68 | bool FortunePlugin::excludeFromRefresh() const | ||
69 | { | ||
70 | return false; | ||
71 | } | ||