summaryrefslogtreecommitdiff
authorharlekin <harlekin>2004-01-04 01:07:38 (UTC)
committer harlekin <harlekin>2004-01-04 01:07:38 (UTC)
commit726450b119e6d9f2bd33f70068afc54605c134ee (patch) (unidiff)
treec9068eb0d0fe1b47a81b66c059e33ca3803d1053
parentceed1fc19ba49ffe1ed994aca0d462d28a1342b7 (diff)
downloadopie-726450b119e6d9f2bd33f70068afc54605c134ee.zip
opie-726450b119e6d9f2bd33f70068afc54605c134ee.tar.gz
opie-726450b119e6d9f2bd33f70068afc54605c134ee.tar.bz2
also update the icon etc
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/mail/mailplugin.cpp4
-rw-r--r--core/pim/today/plugins/mail/mailplugin.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/core/pim/today/plugins/mail/mailplugin.cpp b/core/pim/today/plugins/mail/mailplugin.cpp
index bf30538..7ba54ea 100644
--- a/core/pim/today/plugins/mail/mailplugin.cpp
+++ b/core/pim/today/plugins/mail/mailplugin.cpp
@@ -1,72 +1,72 @@
1/* 1/*
2 * mailplugin.cpp 2 * mailplugin.cpp
3 * 3 *
4 * copyright : (c) 2002,2003 by Maximilian Reiß 4 * copyright : (c) 2002,2003 by Maximilian Reiß
5 * email : harlekin@handhelds.org 5 * email : harlekin@handhelds.org
6 * 6 *
7 */ 7 */
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 17
18#include "mailplugin.h" 18#include "mailplugin.h"
19 19
20MailPlugin::MailPlugin() { 20MailPlugin::MailPlugin() {
21 m_widget = 0l; 21 m_widget = 0l;
22} 22}
23 23
24MailPlugin::~MailPlugin() { 24MailPlugin::~MailPlugin() {
25 delete (MailPluginWidget*)m_widget; 25 delete (MailPluginWidget*)m_widget;
26} 26}
27 27
28QString MailPlugin::pluginName() const { 28QString MailPlugin::pluginName() const {
29 return QObject::tr( "Mail plugin" ); 29 return QObject::tr( "Mail plugin" );
30} 30}
31 31
32double MailPlugin::versionNumber() const { 32double MailPlugin::versionNumber() const {
33 return 0.6; 33 return 0.6;
34} 34}
35 35
36QString MailPlugin::pixmapNameWidget() const { 36QString MailPlugin::pixmapNameWidget() const {
37 return "mail/desktopicon"; 37 return "opiemail/desktopicon";
38} 38}
39 39
40QWidget* MailPlugin::widget( QWidget * wid ) { 40QWidget* MailPlugin::widget( QWidget * wid ) {
41 if(!m_widget) { 41 if(!m_widget) {
42 m_widget = new MailPluginWidget( wid, "Datebook" ); 42 m_widget = new MailPluginWidget( wid, "Datebook" );
43 } 43 }
44 return m_widget; 44 return m_widget;
45} 45}
46 46
47 47
48QString MailPlugin::pixmapNameConfig() const { 48QString MailPlugin::pixmapNameConfig() const {
49 return 0l; 49 return 0l;
50} 50}
51 51
52TodayConfigWidget* MailPlugin::configWidget( QWidget* ) { 52TodayConfigWidget* MailPlugin::configWidget( QWidget* ) {
53 return 0l; 53 return 0l;
54} 54}
55 55
56QString MailPlugin::appName() const { 56QString MailPlugin::appName() const {
57 return "mail"; 57 return "opiemail";
58} 58}
59 59
60 60
61bool MailPlugin::excludeFromRefresh() const { 61bool MailPlugin::excludeFromRefresh() const {
62 return false; 62 return false;
63} 63}
64 64
65void MailPlugin::refresh() { 65void MailPlugin::refresh() {
66 if ( m_widget ) { 66 if ( m_widget ) {
67 m_widget->refresh(); 67 m_widget->refresh();
68 } 68 }
69} 69}
70 70
71void MailPlugin::reinitialize() { 71void MailPlugin::reinitialize() {
72} 72}
diff --git a/core/pim/today/plugins/mail/mailplugin.h b/core/pim/today/plugins/mail/mailplugin.h
index 5b93314..7d6d5e8 100644
--- a/core/pim/today/plugins/mail/mailplugin.h
+++ b/core/pim/today/plugins/mail/mailplugin.h
@@ -1,50 +1,50 @@
1/* 1/*
2 * mailplugin.h 2 * mailplugin.h
3 * 3 *
4 * copyright : (c) 2002 by Maximilian Reiß 4 * copyright : (c) 2002,2004 by Maximilian Reiß
5 * email : harlekin@handhelds.org 5 * email : harlekin@handhelds.org
6 * 6 *
7 */ 7 */
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 17
18#ifndef MAIL_PLUGIN_H 18#ifndef MAIL_PLUGIN_H
19#define MAIL_PLUGIN_H 19#define MAIL_PLUGIN_H
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
29class MailPlugin : public TodayPluginObject { 29class MailPlugin : public TodayPluginObject {
30 30
31public: 31public:
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 void reinitialize();
45 45
46 private: 46 private:
47 QGuardedPtr<MailPluginWidget> m_widget; 47 QGuardedPtr<MailPluginWidget> m_widget;
48}; 48};
49 49
50#endif 50#endif