summaryrefslogtreecommitdiff
path: root/core/pim/today/today.h
Unidiff
Diffstat (limited to 'core/pim/today/today.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/core/pim/today/today.h b/core/pim/today/today.h
index 89170e1..c947ae1 100644
--- a/core/pim/today/today.h
+++ b/core/pim/today/today.h
@@ -19,64 +19,73 @@
19 19
20#include "todayconfig.h" 20#include "todayconfig.h"
21#include "todaybase.h" 21#include "todaybase.h"
22 22
23#include <opie2/todayplugininterface.h> 23#include <opie2/todayplugininterface.h>
24#include <opie2/oclickablelabel.h> 24#include <opie2/oclickablelabel.h>
25#include <opie2/opluginloader.h>
25 26
26#include <qpe/qlibrary.h> 27#include <qpe/qlibrary.h>
27 28
28#include <qscrollview.h> 29#include <qscrollview.h>
29#include <qvbox.h> 30#include <qvbox.h>
30 31
31 32
32class QVBoxLayout; 33class QVBoxLayout;
33 34
35namespace Opie {
36 namespace Core {
37 class OPluginManager;
38 class OPluginLoader;
39 }
40}
41
34class Today : public TodayBase { 42class Today : public TodayBase {
35 43
36 Q_OBJECT 44 Q_OBJECT
37 45
38 public: 46public:
39 Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 47 Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
40 ~Today(); 48 ~Today();
41 static QString appName() { return QString::fromLatin1("today"); } 49 static QString appName() {
50 return QString::fromLatin1("today");
51 }
42 52
43private slots: 53private slots:
44 void startConfig(); 54 void startConfig();
45 void startApplication(); 55 void startApplication();
46 void editCard(); 56 void editCard();
47 void refresh(); 57 void refresh();
48 58
49private: 59private:
50 void init(); 60 void init();
51 void setOwnerField(); 61 void setOwnerField();
52 void setOwnerField(QString &string); 62 void setOwnerField(QString &string);
53 void loadPlugins(); 63 void initialize();
54 void draw();
55 void reinitialize();
56 64
57 void setRefreshTimer( int ); 65 void setRefreshTimer( int );
58 66
59private slots: 67private slots:
60 void channelReceived(const QCString &msg, const QByteArray & data); 68 void channelReceived(const QCString &msg, const QByteArray & data);
69 void loadPlugins();
61 70
62 private: 71private:
63 TodayConfig *conf; 72 TodayConfig *conf;
64 QStringList m_excludeApplets; 73 QStringList m_excludeApplets;
65 QStringList m_allApplets; 74 QStringList m_allApplets;
66 75
67 QScrollView *m_sv; 76 QScrollView *m_sv;
68 QWidget* m_big_box; 77 QWidget* m_big_box;
69 QVBoxLayout *m_bblayout; 78 QVBoxLayout *m_bblayout;
70 79
71 80 Opie::Core::OPluginLoader *m_pluginLoader;
81 Opie::Core::OPluginManager *m_manager;
72 82
73 QTimer *m_refreshTimer; 83 QTimer *m_refreshTimer;
74 84
75 bool m_refreshTimerEnabled; 85 bool m_refreshTimerEnabled;
76 int m_newStart; 86 int m_newStart;
77 int m_iconSize; 87 int m_iconSize;
78 int m_maxCharClip; 88 int m_maxCharClip;
79 int m_hideBanner; 89 int m_hideBanner;
80}; 90};
81
82#endif 91#endif