summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins
authorzecke <zecke>2004-03-14 20:37:48 (UTC)
committer zecke <zecke>2004-03-14 20:37:48 (UTC)
commitfb19e9dc49a8ed0f1b85fa88ed97d357000955e1 (patch) (unidiff)
tree9fb860c6fdda787351cabb5e57a4ef1661bdb60c /core/pim/today/plugins
parentc4784ed159d96c6ba69dcf53eed9fe791e732e52 (diff)
downloadopie-fb19e9dc49a8ed0f1b85fa88ed97d357000955e1.zip
opie-fb19e9dc49a8ed0f1b85fa88ed97d357000955e1.tar.gz
opie-fb19e9dc49a8ed0f1b85fa88ed97d357000955e1.tar.bz2
no using namespace in a header
Diffstat (limited to 'core/pim/today/plugins') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/datebook/datebookpluginwidget.h3
-rw-r--r--core/pim/today/plugins/mail/mailpluginwidget.cpp1
-rw-r--r--core/pim/today/plugins/mail/mailpluginwidget.h5
-rw-r--r--core/pim/today/plugins/todolist/todoplugin.h3
4 files changed, 5 insertions, 7 deletions
diff --git a/core/pim/today/plugins/datebook/datebookpluginwidget.h b/core/pim/today/plugins/datebook/datebookpluginwidget.h
index 68af323..f8ed89e 100644
--- a/core/pim/today/plugins/datebook/datebookpluginwidget.h
+++ b/core/pim/today/plugins/datebook/datebookpluginwidget.h
@@ -18,44 +18,43 @@
18#define DATEBOOK_PLUGIN_WIDGET_H 18#define DATEBOOK_PLUGIN_WIDGET_H
19 19
20#include "datebookevent.h" 20#include "datebookevent.h"
21 21
22#include <opie2/oclickablelabel.h> 22#include <opie2/oclickablelabel.h>
23 23
24#include <qpe/datebookdb.h> 24#include <qpe/datebookdb.h>
25 25
26#include <qlayout.h> 26#include <qlayout.h>
27#include <qguardedptr.h> 27#include <qguardedptr.h>
28#include <qlist.h> 28#include <qlist.h>
29 29
30using namespace Opie;
31 30
32class DatebookPluginWidget : public QWidget { 31class DatebookPluginWidget : public QWidget {
33 32
34 Q_OBJECT 33 Q_OBJECT
35 34
36public: 35public:
37 DatebookPluginWidget( QWidget *parent, const char *name ); 36 DatebookPluginWidget( QWidget *parent, const char *name );
38 ~DatebookPluginWidget(); 37 ~DatebookPluginWidget();
39 void refresh(); 38 void refresh();
40 void reinitialize(); 39 void reinitialize();
41 40
42private: 41private:
43 DateBookDB* db; 42 DateBookDB* db;
44 QGuardedPtr<QVBoxLayout> m_layoutDates; 43 QGuardedPtr<QVBoxLayout> m_layoutDates;
45 QList<QWidget> m_eventsList; 44 QList<QWidget> m_eventsList;
46 void readConfig(); 45 void readConfig();
47 void getDates(); 46 void getDates();
48 47
49 48
50 // how many lines should be showed in the datebook section 49 // how many lines should be showed in the datebook section
51 int m_max_lines_meet; 50 int m_max_lines_meet;
52 // If location is to be showed too, 1 to activate it. 51 // If location is to be showed too, 1 to activate it.
53 bool m_show_location; 52 bool m_show_location;
54 // if notes should be shown 53 // if notes should be shown
55 bool m_show_notes; 54 bool m_show_notes;
56 // should only later appointments be shown or all for the current day. 55 // should only later appointments be shown or all for the current day.
57 bool m_onlyLater; 56 bool m_onlyLater;
58 int m_moreDays; 57 int m_moreDays;
59 // true if time of an appointment should be an extra line 58 // true if time of an appointment should be an extra line
60 bool m_timeExtraLine; 59 bool m_timeExtraLine;
61}; 60};
diff --git a/core/pim/today/plugins/mail/mailpluginwidget.cpp b/core/pim/today/plugins/mail/mailpluginwidget.cpp
index a8e4c41..a71c477 100644
--- a/core/pim/today/plugins/mail/mailpluginwidget.cpp
+++ b/core/pim/today/plugins/mail/mailpluginwidget.cpp
@@ -9,24 +9,25 @@
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#include "mailpluginwidget.h" 16#include "mailpluginwidget.h"
17 17
18#include <qpe/config.h> 18#include <qpe/config.h>
19#include <qpe/qcopenvelope_qws.h> 19#include <qpe/qcopenvelope_qws.h>
20 20
21using namespace Opie::Ui;
21MailPluginWidget::MailPluginWidget( QWidget *parent, const char* name) 22MailPluginWidget::MailPluginWidget( QWidget *parent, const char* name)
22 : QWidget(parent, name ) { 23 : QWidget(parent, name ) {
23 24
24 m_mailLabel = 0l; 25 m_mailLabel = 0l;
25 m_layout = 0l; 26 m_layout = 0l;
26 27
27 if ( m_mailLabel ) { 28 if ( m_mailLabel ) {
28 delete m_mailLabel; 29 delete m_mailLabel;
29 } 30 }
30 m_mailLabel = new OClickableLabel( this ); 31 m_mailLabel = new OClickableLabel( this );
31 connect( m_mailLabel, SIGNAL( clicked() ), this, SLOT( startMail() ) ); 32 connect( m_mailLabel, SIGNAL( clicked() ), this, SLOT( startMail() ) );
32 33
diff --git a/core/pim/today/plugins/mail/mailpluginwidget.h b/core/pim/today/plugins/mail/mailpluginwidget.h
index 0ad8738..2c6104f 100644
--- a/core/pim/today/plugins/mail/mailpluginwidget.h
+++ b/core/pim/today/plugins/mail/mailpluginwidget.h
@@ -12,41 +12,40 @@
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 MAIL_PLUGIN_WIDGET_H 17#ifndef MAIL_PLUGIN_WIDGET_H
18#define MAIL_PLUGIN_WIDGET_H 18#define MAIL_PLUGIN_WIDGET_H
19 19
20#include <qlayout.h> 20#include <qlayout.h>
21 21
22#include <opie2/oclickablelabel.h> 22#include <opie2/oclickablelabel.h>
23 23
24using namespace Opie;
25 24
26class MailPluginWidget : public QWidget { 25class MailPluginWidget : public QWidget {
27 26
28 Q_OBJECT 27 Q_OBJECT
29 28
30public: 29public:
31 MailPluginWidget( QWidget *parent, const char *name ); 30 MailPluginWidget( QWidget *parent, const char *name );
32 ~MailPluginWidget(); 31 ~MailPluginWidget();
33 32
34 void refresh(); 33 void refresh();
35 34
36protected slots: 35protected slots:
37 void startMail(); 36 void startMail();
38 37
39private: 38private:
40 OClickableLabel* m_mailLabel; 39 Opie::Ui::OClickableLabel* m_mailLabel;
41 QHBoxLayout* m_layout; 40 QHBoxLayout* m_layout;
42 void readConfig(); 41 void readConfig();
43 void getInfo(); 42 void getInfo();
44 43
45 int m_newMails; 44 int m_newMails;
46 int m_outgoing; 45 int m_outgoing;
47 46
48private slots: 47private slots:
49 void channelReceived(const QCString &msg, const QByteArray & data); 48 void channelReceived(const QCString &msg, const QByteArray & data);
50}; 49};
51 50
52#endif 51#endif
diff --git a/core/pim/today/plugins/todolist/todoplugin.h b/core/pim/today/plugins/todolist/todoplugin.h
index bea15d5..976dbf7 100644
--- a/core/pim/today/plugins/todolist/todoplugin.h
+++ b/core/pim/today/plugins/todolist/todoplugin.h
@@ -18,32 +18,31 @@
18#define TODOLIST_PLUGIN_H 18#define TODOLIST_PLUGIN_H
19 19
20 20
21#include "todopluginwidget.h" 21#include "todopluginwidget.h"
22 22
23#include <opie2/oclickablelabel.h> 23#include <opie2/oclickablelabel.h>
24#include <opie2/todayplugininterface.h> 24#include <opie2/todayplugininterface.h>
25 25
26#include <qstring.h> 26#include <qstring.h>
27#include <qguardedptr.h> 27#include <qguardedptr.h>
28#include <qwidget.h> 28#include <qwidget.h>
29 29
30using namespace Opie;
31 30
32class TodolistPlugin : public TodayPluginObject { 31class TodolistPlugin : public TodayPluginObject {
33 32
34public: 33public:
35 TodolistPlugin(); 34 TodolistPlugin();
36 ~TodolistPlugin(); 35 ~TodolistPlugin();
37 36
38 QString pluginName() const; 37 QString pluginName() const;
39 double versionNumber() const; 38 double versionNumber() const;
40 QString pixmapNameWidget() const; 39 QString pixmapNameWidget() const;
41 QWidget* widget(QWidget *); 40 QWidget* widget(QWidget *);
42 QString pixmapNameConfig() const; 41 QString pixmapNameConfig() const;
43 TodayConfigWidget* configWidget(QWidget *); 42 TodayConfigWidget* configWidget(QWidget *);
44 QString appName() const; 43 QString appName() const;
45 bool excludeFromRefresh() const; 44 bool excludeFromRefresh() const;
46 void refresh(); 45 void refresh();
47 void reinitialize(); 46 void reinitialize();
48 47
49 private: 48 private: