author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/outgoingdialog.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | korganizer/outgoingdialog.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/korganizer/outgoingdialog.h b/korganizer/outgoingdialog.h index a3d561a..e727087 100644 --- a/korganizer/outgoingdialog.h +++ b/korganizer/outgoingdialog.h | |||
@@ -1,88 +1,88 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | #ifndef OUTGOINGDIALOG_H | 23 | #ifndef OUTGOINGDIALOG_H |
24 | #define OUTGOINGDIALOG_H | 24 | #define OUTGOINGDIALOG_H |
25 | 25 | ||
26 | #include <qlistview.h> | 26 | #include <q3listview.h> |
27 | #include <qmap.h> | 27 | #include <qmap.h> |
28 | #include <qstring.h> | 28 | #include <qstring.h> |
29 | 29 | ||
30 | #include <libkcal/scheduler.h> | 30 | #include <libkcal/scheduler.h> |
31 | 31 | ||
32 | #include "docprefs.h" | 32 | #include "docprefs.h" |
33 | #include "outgoingdialog_base.h" | 33 | #include "outgoingdialog_base.h" |
34 | 34 | ||
35 | using namespace KCal; | 35 | using namespace KCal; |
36 | 36 | ||
37 | class ScheduleItemOut : public QListViewItem | 37 | class ScheduleItemOut : public Q3ListViewItem |
38 | { | 38 | { |
39 | public: | 39 | public: |
40 | ScheduleItemOut(QListView *parent,IncidenceBase *ev, | 40 | ScheduleItemOut(Q3ListView *parent,IncidenceBase *ev, |
41 | Scheduler::Method method, const QString &recipients=QString::null); | 41 | Scheduler::Method method, const QString &recipients=QString::null); |
42 | virtual ~ScheduleItemOut() {} | 42 | virtual ~ScheduleItemOut() {} |
43 | 43 | ||
44 | IncidenceBase *event() { return mIncidence; } | 44 | IncidenceBase *event() { return mIncidence; } |
45 | Scheduler::Method method() { return mMethod; } | 45 | Scheduler::Method method() { return mMethod; } |
46 | QString recipients() { return mRecipients; } | 46 | QString recipients() { return mRecipients; } |
47 | 47 | ||
48 | private: | 48 | private: |
49 | IncidenceBase *mIncidence; | 49 | IncidenceBase *mIncidence; |
50 | Scheduler::Method mMethod; | 50 | Scheduler::Method mMethod; |
51 | QString mRecipients; | 51 | QString mRecipients; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | class OutgoingDialog : public OutgoingDialog_base | 54 | class OutgoingDialog : public OutgoingDialog_base |
55 | { | 55 | { |
56 | Q_OBJECT | 56 | Q_OBJECT |
57 | public: | 57 | public: |
58 | OutgoingDialog(Calendar *,QWidget* parent=0,const char* name=0, | 58 | OutgoingDialog(Calendar *,QWidget* parent=0,const char* name=0, |
59 | bool modal=false,WFlags fl=0); | 59 | bool modal=false,Qt::WFlags fl=0); |
60 | ~OutgoingDialog(); | 60 | ~OutgoingDialog(); |
61 | 61 | ||
62 | bool addMessage(IncidenceBase *,Scheduler::Method); | 62 | bool addMessage(IncidenceBase *,Scheduler::Method); |
63 | bool addMessage(IncidenceBase *,Scheduler::Method,const QString &recipients); | 63 | bool addMessage(IncidenceBase *,Scheduler::Method,const QString &recipients); |
64 | void setDocumentId( const QString &id ); | 64 | void setDocumentId( const QString &id ); |
65 | 65 | ||
66 | public slots: | 66 | public slots: |
67 | void loadMessages(); | 67 | void loadMessages(); |
68 | 68 | ||
69 | signals: | 69 | signals: |
70 | void numMessagesChanged(int); | 70 | void numMessagesChanged(int); |
71 | 71 | ||
72 | protected slots: | 72 | protected slots: |
73 | void send(); | 73 | void send(); |
74 | void deleteItem(); | 74 | void deleteItem(); |
75 | void showEvent(QListViewItem *); | 75 | void showEvent(Q3ListViewItem *); |
76 | 76 | ||
77 | private: | 77 | private: |
78 | bool saveMessage(IncidenceBase *,Scheduler::Method,const QString &recipients=0); | 78 | bool saveMessage(IncidenceBase *,Scheduler::Method,const QString &recipients=0); |
79 | bool deleteMessage(IncidenceBase *); | 79 | bool deleteMessage(IncidenceBase *); |
80 | 80 | ||
81 | Calendar *mCalendar; | 81 | Calendar *mCalendar; |
82 | ICalFormat *mFormat; | 82 | ICalFormat *mFormat; |
83 | Scheduler *mScheduler; | 83 | Scheduler *mScheduler; |
84 | QMap<IncidenceBase*, QString> mMessageMap; | 84 | QMap<IncidenceBase*, QString> mMessageMap; |
85 | DocPrefs *mDocPrefs; | 85 | DocPrefs *mDocPrefs; |
86 | }; | 86 | }; |
87 | 87 | ||
88 | #endif // OUTGOINGDIALOG_H | 88 | #endif // OUTGOINGDIALOG_H |