author | zecke <zecke> | 2004-09-12 20:28:36 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-12 20:28:36 (UTC) |
commit | 90aaa298cc69522e88e1f81ade7d5259131b1544 (patch) (unidiff) | |
tree | 86bdb0a2bb94938754ba94f2ded9dc6ec5fb5207 /noncore/todayplugins/fortune | |
parent | 00952f16786dcd069820e45df83a00b6c477893b (diff) | |
download | opie-90aaa298cc69522e88e1f81ade7d5259131b1544.zip opie-90aaa298cc69522e88e1f81ade7d5259131b1544.tar.gz opie-90aaa298cc69522e88e1f81ade7d5259131b1544.tar.bz2 |
Follow the defined Ownership and have a maybe not needed
sanity check
-rw-r--r-- | noncore/todayplugins/fortune/fortuneplugin.cpp | 2 | ||||
-rw-r--r-- | noncore/todayplugins/fortune/fortuneplugin.h | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/noncore/todayplugins/fortune/fortuneplugin.cpp b/noncore/todayplugins/fortune/fortuneplugin.cpp index 69d2c45..4461219 100644 --- a/noncore/todayplugins/fortune/fortuneplugin.cpp +++ b/noncore/todayplugins/fortune/fortuneplugin.cpp | |||
@@ -47,25 +47,25 @@ QWidget* FortunePlugin::widget( QWidget *wid ) | |||
47 | { | 47 | { |
48 | return new FortunePluginWidget( wid, "Fortune" ); | 48 | return new FortunePluginWidget( wid, "Fortune" ); |
49 | } | 49 | } |
50 | 50 | ||
51 | QString FortunePlugin::pixmapNameConfig() const | 51 | QString FortunePlugin::pixmapNameConfig() const |
52 | { | 52 | { |
53 | return "Fortune"; | 53 | return "Fortune"; |
54 | } | 54 | } |
55 | 55 | ||
56 | TodayConfigWidget* FortunePlugin::configWidget( QWidget* /*wid*/ ) | 56 | TodayConfigWidget* FortunePlugin::configWidget( QWidget* /*wid*/ ) |
57 | { | 57 | { |
58 | // return new FortunePluginConfig( wid , "Fortune" ); | 58 | // return new FortunePluginConfig( wid , "Fortune" ); |
59 | return NULL; | 59 | return 0l; |
60 | } | 60 | } |
61 | 61 | ||
62 | QString FortunePlugin::appName() const | 62 | QString FortunePlugin::appName() const |
63 | { | 63 | { |
64 | return "fortune"; | 64 | return "fortune"; |
65 | } | 65 | } |
66 | 66 | ||
67 | 67 | ||
68 | bool FortunePlugin::excludeFromRefresh() const | 68 | bool FortunePlugin::excludeFromRefresh() const |
69 | { | 69 | { |
70 | return false; | 70 | return false; |
71 | } | 71 | } |
diff --git a/noncore/todayplugins/fortune/fortuneplugin.h b/noncore/todayplugins/fortune/fortuneplugin.h index 9b590ad..91bd981 100644 --- a/noncore/todayplugins/fortune/fortuneplugin.h +++ b/noncore/todayplugins/fortune/fortuneplugin.h | |||
@@ -11,27 +11,24 @@ | |||
11 | * it under the terms of the GNU General Public License as published by * | 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 * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | 16 | ||
17 | #ifndef FORTUNE_PLUGIN_H | 17 | #ifndef FORTUNE_PLUGIN_H |
18 | #define FORTUNE_PLUGIN_H | 18 | #define FORTUNE_PLUGIN_H |
19 | 19 | ||
20 | #include <opie2/oclickablelabel.h> | 20 | #include <opie2/oclickablelabel.h> |
21 | #include <opie2/todayplugininterface.h> | 21 | #include <opie2/todayplugininterface.h> |
22 | 22 | ||
23 | #include <qstring.h> | ||
24 | #include <qwidget.h> | ||
25 | |||
26 | class FortunePlugin : public TodayPluginObject | 23 | class FortunePlugin : public TodayPluginObject |
27 | { | 24 | { |
28 | 25 | ||
29 | public: | 26 | public: |
30 | FortunePlugin(); | 27 | FortunePlugin(); |
31 | ~FortunePlugin(); | 28 | ~FortunePlugin(); |
32 | 29 | ||
33 | QString pluginName() const; | 30 | QString pluginName() const; |
34 | double versionNumber() const; | 31 | double versionNumber() const; |
35 | QString pixmapNameWidget() const; | 32 | QString pixmapNameWidget() const; |
36 | QWidget* widget( QWidget * ); | 33 | QWidget* widget( QWidget * ); |
37 | QString pixmapNameConfig() const; | 34 | QString pixmapNameConfig() const; |