author | harlekin <harlekin> | 2004-03-01 15:47:43 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-03-01 15:47:43 (UTC) |
commit | 87676b131aad1bfe979570a48107527db4040020 (patch) (unidiff) | |
tree | 9f7ee88adc4b8987e8d3387e2370719078f7ff5e /core/pim/today/plugins/datebook/datebookplugin.cpp | |
parent | c50e4c32d34a0550f167480b6306aac632fb201c (diff) | |
download | opie-87676b131aad1bfe979570a48107527db4040020.zip opie-87676b131aad1bfe979570a48107527db4040020.tar.gz opie-87676b131aad1bfe979570a48107527db4040020.tar.bz2 |
today plus datebook, mail, todolist plugins libopie1->libopie2
Diffstat (limited to 'core/pim/today/plugins/datebook/datebookplugin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/datebook/datebookplugin.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/pim/today/plugins/datebook/datebookplugin.cpp b/core/pim/today/plugins/datebook/datebookplugin.cpp index 8dfa52f..f46806f 100644 --- a/core/pim/today/plugins/datebook/datebookplugin.cpp +++ b/core/pim/today/plugins/datebook/datebookplugin.cpp | |||
@@ -1,67 +1,64 @@ | |||
1 | |||
2 | /* | 1 | /* |
3 | * datebookplugin.cpp | 2 | * datebookplugin.cpp |
4 | * | 3 | * |
5 | * copyright : (c) 2002,2003 by Maximilian Reiß | 4 | * copyright : (c) 2002,2003, 2004 by Maximilian Reiß |
6 | * email : harlekin@handhelds.org | 5 | * email : harlekin@handhelds.org |
7 | * | 6 | * |
8 | */ | 7 | */ |
9 | /*************************************************************************** | 8 | /*************************************************************************** |
10 | * * | 9 | * * |
11 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
12 | * 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 * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
15 | * * | 14 | * * |
16 | ***************************************************************************/ | 15 | ***************************************************************************/ |
17 | 16 | ||
18 | |||
19 | |||
20 | #include "datebookplugin.h" | 17 | #include "datebookplugin.h" |
21 | #include "datebookpluginconfig.h" | 18 | #include "datebookpluginconfig.h" |
22 | 19 | ||
23 | 20 | ||
24 | DatebookPlugin::DatebookPlugin() { | 21 | DatebookPlugin::DatebookPlugin() { |
25 | } | 22 | } |
26 | 23 | ||
27 | DatebookPlugin::~DatebookPlugin() { | 24 | DatebookPlugin::~DatebookPlugin() { |
28 | delete (DatebookPluginWidget*)m_widget; | 25 | delete (DatebookPluginWidget*)m_widget; |
29 | } | 26 | } |
30 | 27 | ||
31 | QString DatebookPlugin::pluginName() const { | 28 | QString DatebookPlugin::pluginName() const { |
32 | return QObject::tr( "Datebook plugin"); | 29 | return QObject::tr( "Datebook plugin"); |
33 | } | 30 | } |
34 | 31 | ||
35 | double DatebookPlugin::versionNumber() const { | 32 | double DatebookPlugin::versionNumber() const { |
36 | return 1.0; | 33 | return 1.0; |
37 | } | 34 | } |
38 | 35 | ||
39 | QString DatebookPlugin::pixmapNameWidget() const { | 36 | QString DatebookPlugin::pixmapNameWidget() const { |
40 | return "datebook/DateBook"; | 37 | return "datebook/DateBook"; |
41 | } | 38 | } |
42 | 39 | ||
43 | QWidget* DatebookPlugin::widget( QWidget* wid ) { | 40 | QWidget* DatebookPlugin::widget( QWidget* wid ) { |
44 | if(!m_widget) { | 41 | if(!m_widget) { |
45 | m_widget = new DatebookPluginWidget( wid, "Datebook" ); | 42 | m_widget = new DatebookPluginWidget( wid, "Datebook" ); |
46 | } | 43 | } |
47 | return m_widget; | 44 | return m_widget; |
48 | } | 45 | } |
49 | 46 | ||
50 | QString DatebookPlugin::pixmapNameConfig() const { | 47 | QString DatebookPlugin::pixmapNameConfig() const { |
51 | return "datebook/DateBook"; | 48 | return "datebook/DateBook"; |
52 | } | 49 | } |
53 | 50 | ||
54 | TodayConfigWidget* DatebookPlugin::configWidget( QWidget* wid ) { | 51 | TodayConfigWidget* DatebookPlugin::configWidget( QWidget* wid ) { |
55 | return new DatebookPluginConfig( wid , "Datebook" ); | 52 | return new DatebookPluginConfig( wid , "Datebook" ); |
56 | } | 53 | } |
57 | 54 | ||
58 | QString DatebookPlugin::appName() const { | 55 | QString DatebookPlugin::appName() const { |
59 | return "datebook"; | 56 | return "datebook"; |
60 | } | 57 | } |
61 | 58 | ||
62 | bool DatebookPlugin::excludeFromRefresh() const { | 59 | bool DatebookPlugin::excludeFromRefresh() const { |
63 | return false; | 60 | return false; |
64 | } | 61 | } |
65 | 62 | ||
66 | void DatebookPlugin::refresh() { | 63 | void DatebookPlugin::refresh() { |
67 | if ( m_widget ) { | 64 | if ( m_widget ) { |