-rw-r--r-- | core/pim/today/plugins/mail/config.in | 2 | ||||
-rw-r--r-- | core/pim/today/plugins/mail/mail.pro | 20 | ||||
-rw-r--r-- | core/pim/today/plugins/mail/mailplugin.cpp | 3 | ||||
-rw-r--r-- | core/pim/today/plugins/mail/mailplugin.h | 1 | ||||
-rw-r--r-- | core/pim/today/plugins/mail/mailpluginwidget.cpp | 2 | ||||
-rw-r--r-- | core/pim/today/plugins/mail/opie-today-mailplugin.control | 9 |
6 files changed, 25 insertions, 12 deletions
diff --git a/core/pim/today/plugins/mail/config.in b/core/pim/today/plugins/mail/config.in index 6f3e06d..6f4450f 100644 --- a/core/pim/today/plugins/mail/config.in +++ b/core/pim/today/plugins/mail/config.in | |||
@@ -1,4 +1,4 @@ | |||
1 | config TODAY_MAIL | 1 | config TODAY_MAIL |
2 | boolean "opie-today-mailplugin (mail plugin)" | 2 | boolean "mail" |
3 | default "y" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE |
diff --git a/core/pim/today/plugins/mail/mail.pro b/core/pim/today/plugins/mail/mail.pro index 60ed87d..70c484d 100644 --- a/core/pim/today/plugins/mail/mail.pro +++ b/core/pim/today/plugins/mail/mail.pro | |||
@@ -1,19 +1,37 @@ | |||
1 | TEMPLATE = lib | 1 | TEMPLATE = lib |
2 | CONFIG -= moc | 2 | CONFIG -= moc |
3 | CONFIG += qt plugin release | 3 | CONFIG += qt release |
4 | 4 | ||
5 | # Input | 5 | # Input |
6 | HEADERS = mailplugin.h mailpluginimpl.h mailpluginwidget.h | 6 | HEADERS = mailplugin.h mailpluginimpl.h mailpluginwidget.h |
7 | SOURCES = mailplugin.cpp mailpluginimpl.cpp mailpluginwidget.cpp | 7 | SOURCES = mailplugin.cpp mailpluginimpl.cpp mailpluginwidget.cpp |
8 | 8 | ||
9 | INCLUDEPATH += $(OPIEDIR)/include \ | 9 | INCLUDEPATH += $(OPIEDIR)/include \ |
10 | ../ ../library | 10 | ../ ../library |
11 | DEPENDPATH += $(OPIEDIR)/include \ | 11 | DEPENDPATH += $(OPIEDIR)/include \ |
12 | ../ ../library | 12 | ../ ../library |
13 | 13 | ||
14 | LIBS+= -lqpe -lopie | 14 | LIBS+= -lqpe -lopie |
15 | 15 | ||
16 | DESTDIR = $(OPIEDIR)/plugins/today | 16 | DESTDIR = $(OPIEDIR)/plugins/today |
17 | TARGET = todaymailplugin | 17 | TARGET = todaymailplugin |
18 | 18 | ||
19 | TRANSLATIONS = ../../../../../i18n/de/libtodaymailplugin.ts \ | ||
20 | ../../../../../i18n/nl/libtodaymailplugin.ts \ | ||
21 | ../../../../../i18n/xx/libtodaymailplugin.ts \ | ||
22 | ../../../../../i18n/en/libtodaymailplugin.ts \ | ||
23 | ../../../../../i18n/es/libtodaymailplugin.ts \ | ||
24 | ../../../../../i18n/fr/libtodaymailplugin.ts \ | ||
25 | ../../../../../i18n/hu/libtodaymailplugin.ts \ | ||
26 | ../../../../../i18n/ja/libtodaymailplugin.ts \ | ||
27 | ../../../../../i18n/ko/libtodaymailplugin.ts \ | ||
28 | ../../../../../i18n/no/libtodaymailplugin.ts \ | ||
29 | ../../../../../i18n/pl/libtodaymailplugin.ts \ | ||
30 | ../../../../../i18n/pt/libtodaymailplugin.ts \ | ||
31 | ../../../../../i18n/pt_BR/libtodaymailplugin.ts \ | ||
32 | ../../../../../i18n/sl/libtodaymailplugin.ts \ | ||
33 | ../../../../../i18n/zh_CN/libtodaymailplugin.ts \ | ||
34 | ../../../../../i18n/zh_TW/libtodaymailplugin.ts \ | ||
35 | ../../../../../i18n/it/libtodaymailplugin.ts \ | ||
36 | ../../../../../i18n/da/libtodaymailplugin.ts | ||
19 | include ( $(OPIEDIR)/include.pro ) | 37 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/core/pim/today/plugins/mail/mailplugin.cpp b/core/pim/today/plugins/mail/mailplugin.cpp index 9430c30..bf30538 100644 --- a/core/pim/today/plugins/mail/mailplugin.cpp +++ b/core/pim/today/plugins/mail/mailplugin.cpp | |||
@@ -46,24 +46,27 @@ QWidget* MailPlugin::widget( QWidget * wid ) { | |||
46 | 46 | ||
47 | 47 | ||
48 | QString MailPlugin::pixmapNameConfig() const { | 48 | QString MailPlugin::pixmapNameConfig() const { |
49 | return 0l; | 49 | return 0l; |
50 | } | 50 | } |
51 | 51 | ||
52 | TodayConfigWidget* MailPlugin::configWidget( QWidget* ) { | 52 | TodayConfigWidget* MailPlugin::configWidget( QWidget* ) { |
53 | return 0l; | 53 | return 0l; |
54 | } | 54 | } |
55 | 55 | ||
56 | QString MailPlugin::appName() const { | 56 | QString MailPlugin::appName() const { |
57 | return "mail"; | 57 | return "mail"; |
58 | } | 58 | } |
59 | 59 | ||
60 | 60 | ||
61 | bool MailPlugin::excludeFromRefresh() const { | 61 | bool MailPlugin::excludeFromRefresh() const { |
62 | return false; | 62 | return false; |
63 | } | 63 | } |
64 | 64 | ||
65 | void MailPlugin::refresh() { | 65 | void MailPlugin::refresh() { |
66 | if ( m_widget ) { | 66 | if ( m_widget ) { |
67 | m_widget->refresh(); | 67 | m_widget->refresh(); |
68 | } | 68 | } |
69 | } | 69 | } |
70 | |||
71 | void MailPlugin::reinitialize() { | ||
72 | } | ||
diff --git a/core/pim/today/plugins/mail/mailplugin.h b/core/pim/today/plugins/mail/mailplugin.h index 295a88c..5b93314 100644 --- a/core/pim/today/plugins/mail/mailplugin.h +++ b/core/pim/today/plugins/mail/mailplugin.h | |||
@@ -20,30 +20,31 @@ | |||
20 | 20 | ||
21 | #include <qwidget.h> | 21 | #include <qwidget.h> |
22 | #include <qguardedptr.h> | 22 | #include <qguardedptr.h> |
23 | 23 | ||
24 | #include <opie/todayplugininterface.h> | 24 | #include <opie/todayplugininterface.h> |
25 | #include <opie/todayconfigwidget.h> | 25 | #include <opie/todayconfigwidget.h> |
26 | 26 | ||
27 | #include "mailpluginwidget.h" | 27 | #include "mailpluginwidget.h" |
28 | 28 | ||
29 | class MailPlugin : public TodayPluginObject { | 29 | class MailPlugin : public TodayPluginObject { |
30 | 30 | ||
31 | public: | 31 | public: |
32 | MailPlugin(); | 32 | MailPlugin(); |
33 | ~MailPlugin(); | 33 | ~MailPlugin(); |
34 | 34 | ||
35 | QString pluginName() const; | 35 | QString pluginName() const; |
36 | double versionNumber() const; | 36 | double versionNumber() const; |
37 | QString pixmapNameWidget() const; | 37 | QString pixmapNameWidget() const; |
38 | QWidget* widget(QWidget *); | 38 | QWidget* widget(QWidget *); |
39 | QString pixmapNameConfig() const; | 39 | QString pixmapNameConfig() const; |
40 | TodayConfigWidget* configWidget(QWidget *); | 40 | TodayConfigWidget* configWidget(QWidget *); |
41 | QString appName() const; | 41 | QString appName() const; |
42 | bool excludeFromRefresh() const; | 42 | bool excludeFromRefresh() const; |
43 | void refresh(); | 43 | void refresh(); |
44 | void reinitialize(); | ||
44 | 45 | ||
45 | private: | 46 | private: |
46 | QGuardedPtr<MailPluginWidget> m_widget; | 47 | QGuardedPtr<MailPluginWidget> m_widget; |
47 | }; | 48 | }; |
48 | 49 | ||
49 | #endif | 50 | #endif |
diff --git a/core/pim/today/plugins/mail/mailpluginwidget.cpp b/core/pim/today/plugins/mail/mailpluginwidget.cpp index 3c1d908..646996a 100644 --- a/core/pim/today/plugins/mail/mailpluginwidget.cpp +++ b/core/pim/today/plugins/mail/mailpluginwidget.cpp | |||
@@ -8,49 +8,49 @@ | |||
8 | /*************************************************************************** | 8 | /*************************************************************************** |
9 | * * | 9 | * * |
10 | * 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 * |
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 | #include <qpe/config.h> | 17 | #include <qpe/config.h> |
18 | #include <qpe/qcopenvelope_qws.h> | 18 | #include <qpe/qcopenvelope_qws.h> |
19 | 19 | ||
20 | #include "mailpluginwidget.h" | 20 | #include "mailpluginwidget.h" |
21 | 21 | ||
22 | MailPluginWidget::MailPluginWidget( QWidget *parent, const char* name) | 22 | MailPluginWidget::MailPluginWidget( QWidget *parent, const char* name) |
23 | : QWidget(parent, name ) { | 23 | : QWidget(parent, name ) { |
24 | 24 | ||
25 | m_mailLabel = 0l; | 25 | m_mailLabel = 0l; |
26 | m_layout = 0l; | 26 | m_layout = 0l; |
27 | 27 | ||
28 | if ( m_mailLabel ) { | 28 | if ( m_mailLabel ) { |
29 | delete m_mailLabel; | 29 | delete m_mailLabel; |
30 | } | 30 | } |
31 | m_mailLabel = new OClickableLabel( this ); | 31 | m_mailLabel = new OClickableLabel( this ); |
32 | m_mailLabel->setMaximumHeight( 15 ); | 32 | //m_mailLabel->setMaximumHeight( 15 ); |
33 | connect( m_mailLabel, SIGNAL( clicked() ), this, SLOT( startMail() ) ); | 33 | connect( m_mailLabel, SIGNAL( clicked() ), this, SLOT( startMail() ) ); |
34 | 34 | ||
35 | if ( m_layout ) { | 35 | if ( m_layout ) { |
36 | delete m_layout; | 36 | delete m_layout; |
37 | } | 37 | } |
38 | m_layout = new QHBoxLayout( this ); | 38 | m_layout = new QHBoxLayout( this ); |
39 | m_layout->setAutoAdd( true ); | 39 | m_layout->setAutoAdd( true ); |
40 | 40 | ||
41 | readConfig(); | 41 | readConfig(); |
42 | getInfo(); | 42 | getInfo(); |
43 | } | 43 | } |
44 | 44 | ||
45 | MailPluginWidget::~MailPluginWidget() { | 45 | MailPluginWidget::~MailPluginWidget() { |
46 | delete m_mailLabel; | 46 | delete m_mailLabel; |
47 | delete m_layout; | 47 | delete m_layout; |
48 | } | 48 | } |
49 | 49 | ||
50 | 50 | ||
51 | void MailPluginWidget::readConfig() { | 51 | void MailPluginWidget::readConfig() { |
52 | Config cfg( "todaymailplugin" ); | 52 | Config cfg( "todaymailplugin" ); |
53 | cfg.setGroup( "config" ); | 53 | cfg.setGroup( "config" ); |
54 | } | 54 | } |
55 | 55 | ||
56 | 56 | ||
diff --git a/core/pim/today/plugins/mail/opie-today-mailplugin.control b/core/pim/today/plugins/mail/opie-today-mailplugin.control index 1419557..e69de29 100644 --- a/core/pim/today/plugins/mail/opie-today-mailplugin.control +++ b/core/pim/today/plugins/mail/opie-today-mailplugin.control | |||
@@ -1,9 +0,0 @@ | |||
1 | Package: opie-today-mailplugin | ||
2 | Files: plugins/today/libtodaymailplugin.so* | ||
3 | Priority: optional | ||
4 | Section: opie/applications | ||
5 | Maintainer: Maximilian Reiss <harlekin@handhelds.org> | ||
6 | Architecture: arm | ||
7 | Version: $QPE_VERSION-$SUB_VERSION | ||
8 | Depends: libqte2, opie-today | ||
9 | Description: Mail plugin for today | ||