author | zecke <zecke> | 2004-03-14 20:23:19 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-14 20:23:19 (UTC) |
commit | 740fd610a576b1a1afe95a4736c7c8c0db6ee1df (patch) (unidiff) | |
tree | 71c1e3ecc9882bebd5ab6c8ca3438f36a5c7c092 | |
parent | 18dc118b49dbfb2c4d986538002a1c8f771b33ed (diff) | |
download | opie-740fd610a576b1a1afe95a4736c7c8c0db6ee1df.zip opie-740fd610a576b1a1afe95a4736c7c8c0db6ee1df.tar.gz opie-740fd610a576b1a1afe95a4736c7c8c0db6ee1df.tar.bz2 |
Compile fixes
5 files changed, 11 insertions, 9 deletions
diff --git a/core/pim/today/plugins/datebook/config.in b/core/pim/today/plugins/datebook/config.in index 7a14438..413e0b8 100644 --- a/core/pim/today/plugins/datebook/config.in +++ b/core/pim/today/plugins/datebook/config.in | |||
@@ -1,4 +1,4 @@ | |||
1 | config TODAY_DATEBOOK | 1 | config TODAY_DATEBOOK |
2 | boolean "datebook" | 2 | boolean "datebook" |
3 | default "y" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIEUI2 && LIBOPIECORE2 |
diff --git a/core/pim/today/plugins/datebook/datebookevent.cpp b/core/pim/today/plugins/datebook/datebookevent.cpp index 9a820f2..f5b0d0a 100644 --- a/core/pim/today/plugins/datebook/datebookevent.cpp +++ b/core/pim/today/plugins/datebook/datebookevent.cpp | |||
@@ -9,33 +9,34 @@ | |||
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 "datebookevent.h" | 17 | #include "datebookevent.h" |
18 | 18 | ||
19 | #include <qpe/config.h> | 19 | #include <qpe/config.h> |
20 | #include <qpe/qcopenvelope_qws.h> | 20 | #include <qpe/qcopenvelope_qws.h> |
21 | #include <qpe/calendar.h> | 21 | #include <qpe/calendar.h> |
22 | 22 | ||
23 | #include <opie2/odevice.h> | 23 | #include <opie2/odevice.h> |
24 | 24 | ||
25 | using namespace Opie; | 25 | using namespace Opie::Ui; |
26 | using namespace Opie::Core; | ||
26 | 27 | ||
27 | DateBookEvent::DateBookEvent(const EffectiveEvent &ev, | 28 | DateBookEvent::DateBookEvent(const EffectiveEvent &ev, |
28 | QWidget* parent, | 29 | QWidget* parent, |
29 | bool show_location, | 30 | bool show_location, |
30 | bool show_notes, | 31 | bool show_notes, |
31 | bool timeExtraLine, | 32 | bool timeExtraLine, |
32 | int maxCharClip, | 33 | int maxCharClip, |
33 | const char* name, | 34 | const char* name, |
34 | WFlags fl) : | 35 | WFlags fl) : |
35 | OClickableLabel(parent,name,fl), event(ev) { | 36 | OClickableLabel(parent,name,fl), event(ev) { |
36 | 37 | ||
37 | // setAlignment( AlignTop ); | 38 | // setAlignment( AlignTop ); |
38 | 39 | ||
39 | QString msg; | 40 | QString msg; |
40 | 41 | ||
41 | Config config( "qpe" ); | 42 | Config config( "qpe" ); |
diff --git a/core/pim/today/plugins/datebook/datebookevent.h b/core/pim/today/plugins/datebook/datebookevent.h index e2ee077..973efe4 100644 --- a/core/pim/today/plugins/datebook/datebookevent.h +++ b/core/pim/today/plugins/datebook/datebookevent.h | |||
@@ -8,35 +8,34 @@ | |||
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 | #ifndef DATEBOOKEVENT_PLUGIN_H | 17 | #ifndef DATEBOOKEVENT_PLUGIN_H |
18 | #define DATEBOOKEVENT_PLUGIN_H | 18 | #define DATEBOOKEVENT_PLUGIN_H |
19 | 19 | ||
20 | #include <opie2/oclickablelabel.h> | 20 | #include <opie2/oclickablelabel.h> |
21 | 21 | ||
22 | #include <qpe/datebookdb.h> | 22 | #include <qpe/datebookdb.h> |
23 | 23 | ||
24 | using namespace Opie; | ||
25 | 24 | ||
26 | class DateBookEvent: public OClickableLabel { | 25 | class DateBookEvent: public Opie::Ui::OClickableLabel { |
27 | 26 | ||
28 | Q_OBJECT | 27 | Q_OBJECT |
29 | 28 | ||
30 | public: | 29 | public: |
31 | DateBookEvent( const EffectiveEvent &ev, | 30 | DateBookEvent( const EffectiveEvent &ev, |
32 | QWidget* parent = 0, | 31 | QWidget* parent = 0, |
33 | bool show_location = 0, | 32 | bool show_location = 0, |
34 | bool show_notes = 0, | 33 | bool show_notes = 0, |
35 | bool timeExtraLine = 0, | 34 | bool timeExtraLine = 0, |
36 | int maxCharClip = 0, | 35 | int maxCharClip = 0, |
37 | const char* name = 0, | 36 | const char* name = 0, |
38 | WFlags fl = 0 ); | 37 | WFlags fl = 0 ); |
39 | ~DateBookEvent(); | 38 | ~DateBookEvent(); |
40 | 39 | ||
41 | signals: | 40 | signals: |
42 | void editEvent( const Event &e ); | 41 | void editEvent( const Event &e ); |
diff --git a/core/pim/today/plugins/todolist/todopluginwidget.cpp b/core/pim/today/plugins/todolist/todopluginwidget.cpp index 567c70f..7ce703e 100644 --- a/core/pim/today/plugins/todolist/todopluginwidget.cpp +++ b/core/pim/today/plugins/todolist/todopluginwidget.cpp | |||
@@ -6,32 +6,35 @@ | |||
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 | #include "todopluginwidget.h" | 17 | #include "todopluginwidget.h" |
18 | 18 | ||
19 | #include <qpe/config.h> | 19 | #include <qpe/config.h> |
20 | #include <qpe/qcopenvelope_qws.h> | 20 | #include <qpe/qcopenvelope_qws.h> |
21 | 21 | ||
22 | using namespace Opie::Ui; | ||
23 | using namespace Opie; | ||
24 | |||
22 | TodolistPluginWidget::TodolistPluginWidget( QWidget *parent, const char* name ) | 25 | TodolistPluginWidget::TodolistPluginWidget( QWidget *parent, const char* name ) |
23 | : QWidget( parent, name ) { | 26 | : QWidget( parent, name ) { |
24 | 27 | ||
25 | todo = 0l; | 28 | todo = 0l; |
26 | layoutTodo = 0l; | 29 | layoutTodo = 0l; |
27 | todoLabel = 0l; | 30 | todoLabel = 0l; |
28 | 31 | ||
29 | if ( todo ) { | 32 | if ( todo ) { |
30 | delete todo; | 33 | delete todo; |
31 | } | 34 | } |
32 | todo = new OPimTodoAccess(); | 35 | todo = new OPimTodoAccess(); |
33 | todo->load(); | 36 | todo->load(); |
34 | 37 | ||
35 | if ( layoutTodo ) { | 38 | if ( layoutTodo ) { |
36 | delete layoutTodo; | 39 | delete layoutTodo; |
37 | } | 40 | } |
diff --git a/core/pim/today/plugins/todolist/todopluginwidget.h b/core/pim/today/plugins/todolist/todopluginwidget.h index a020cf4..86a9f27 100644 --- a/core/pim/today/plugins/todolist/todopluginwidget.h +++ b/core/pim/today/plugins/todolist/todopluginwidget.h | |||
@@ -9,47 +9,46 @@ | |||
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 | #ifndef TODOLIST_PLUGIN_WIDGET_H | 17 | #ifndef TODOLIST_PLUGIN_WIDGET_H |
18 | #define TODOLIST_PLUGIN_WIDGET_H | 18 | #define TODOLIST_PLUGIN_WIDGET_H |
19 | 19 | ||
20 | #include <qlayout.h> | 20 | #include <qlayout.h> |
21 | 21 | ||
22 | #include <opie2/otodoaccess.h> | 22 | #include <opie2/otodoaccess.h> |
23 | #include <opie2/oclickablelabel.h> | 23 | #include <opie2/oclickablelabel.h> |
24 | 24 | ||
25 | using namespace Opie; | ||
26 | 25 | ||
27 | class TodolistPluginWidget : public QWidget { | 26 | class TodolistPluginWidget : public QWidget { |
28 | 27 | ||
29 | Q_OBJECT | 28 | Q_OBJECT |
30 | 29 | ||
31 | public: | 30 | public: |
32 | TodolistPluginWidget( QWidget *parent, const char *name ); | 31 | TodolistPluginWidget( QWidget *parent, const char *name ); |
33 | ~TodolistPluginWidget(); | 32 | ~TodolistPluginWidget(); |
34 | 33 | ||
35 | void refresh(); | 34 | void refresh(); |
36 | void reinitialize(); | 35 | void reinitialize(); |
37 | 36 | ||
38 | protected slots: | 37 | protected slots: |
39 | void startTodolist(); | 38 | void startTodolist(); |
40 | 39 | ||
41 | private: | 40 | private: |
42 | OClickableLabel *todoLabel; | 41 | Opie::Ui::OClickableLabel *todoLabel; |
43 | QVBoxLayout* layoutTodo; | 42 | QVBoxLayout* layoutTodo; |
44 | 43 | ||
45 | OPimTodoAccess *todo; | 44 | Opie::OPimTodoAccess *todo; |
46 | OPimTodoAccess::List m_list; | 45 | Opie::OPimTodoAccess::List m_list; |
47 | OPimTodoAccess::List::Iterator m_it; | 46 | Opie::OPimTodoAccess::List::Iterator m_it; |
48 | 47 | ||
49 | void readConfig(); | 48 | void readConfig(); |
50 | void getTodo(); | 49 | void getTodo(); |
51 | int m_maxLinesTask; | 50 | int m_maxLinesTask; |
52 | int m_maxCharClip; | 51 | int m_maxCharClip; |
53 | }; | 52 | }; |
54 | 53 | ||
55 | #endif | 54 | #endif |