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/incomingdialog.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | korganizer/incomingdialog.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/korganizer/incomingdialog.h b/korganizer/incomingdialog.h index 413ce6a..e002b25 100644 --- a/korganizer/incomingdialog.h +++ b/korganizer/incomingdialog.h | |||
@@ -6,46 +6,46 @@ | |||
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 | #ifndef INCOMINGDIALOG_H | 19 | #ifndef INCOMINGDIALOG_H |
20 | #define INCOMINGDIALOG_H | 20 | #define INCOMINGDIALOG_H |
21 | 21 | ||
22 | #include <qlistview.h> | 22 | #include <q3listview.h> |
23 | 23 | ||
24 | #include <libkcal/calendar.h> | 24 | #include <libkcal/calendar.h> |
25 | #include <libkcal/scheduler.h> | 25 | #include <libkcal/scheduler.h> |
26 | 26 | ||
27 | #include "incomingdialog_base.h" | 27 | #include "incomingdialog_base.h" |
28 | #include "outgoingdialog.h" | 28 | #include "outgoingdialog.h" |
29 | 29 | ||
30 | using namespace KCal; | 30 | using namespace KCal; |
31 | 31 | ||
32 | class ScheduleItemIn : public QListViewItem | 32 | class ScheduleItemIn : public Q3ListViewItem |
33 | { | 33 | { |
34 | public: | 34 | public: |
35 | ScheduleItemIn(QListView *parent,IncidenceBase *ev,Scheduler::Method method, | 35 | ScheduleItemIn(Q3ListView *parent,IncidenceBase *ev,Scheduler::Method method, |
36 | ScheduleMessage::Status status); | 36 | ScheduleMessage::Status status); |
37 | virtual ~ScheduleItemIn() {} | 37 | virtual ~ScheduleItemIn() {} |
38 | 38 | ||
39 | IncidenceBase *event() { return mIncidence; } | 39 | IncidenceBase *event() { return mIncidence; } |
40 | Scheduler::Method method() { return mMethod; } | 40 | Scheduler::Method method() { return mMethod; } |
41 | ScheduleMessage::Status status() { return mStatus; } | 41 | ScheduleMessage::Status status() { return mStatus; } |
42 | 42 | ||
43 | private: | 43 | private: |
44 | IncidenceBase *mIncidence; | 44 | IncidenceBase *mIncidence; |
45 | Scheduler::Method mMethod; | 45 | Scheduler::Method mMethod; |
46 | ScheduleMessage::Status mStatus; | 46 | ScheduleMessage::Status mStatus; |
47 | }; | 47 | }; |
48 | 48 | ||
49 | 49 | ||
50 | /** | 50 | /** |
51 | This class provides the initialisation of a ScheduleItemIn for calendar | 51 | This class provides the initialisation of a ScheduleItemIn for calendar |
@@ -59,48 +59,48 @@ class ScheduleItemVisitor : public Incidence::Visitor | |||
59 | 59 | ||
60 | bool visit(Event *); | 60 | bool visit(Event *); |
61 | bool visit(Todo *); | 61 | bool visit(Todo *); |
62 | bool visit(Journal *); | 62 | bool visit(Journal *); |
63 | 63 | ||
64 | private: | 64 | private: |
65 | ScheduleItemIn *mItem; | 65 | ScheduleItemIn *mItem; |
66 | }; | 66 | }; |
67 | 67 | ||
68 | 68 | ||
69 | 69 | ||
70 | class IncomingDialog : public IncomingDialog_base | 70 | class IncomingDialog : public IncomingDialog_base |
71 | { | 71 | { |
72 | Q_OBJECT | 72 | Q_OBJECT |
73 | public: | 73 | public: |
74 | IncomingDialog(Calendar *calendar,OutgoingDialog *outgoing, | 74 | IncomingDialog(Calendar *calendar,OutgoingDialog *outgoing, |
75 | QWidget* parent=0,const char* name=0,bool modal=false,WFlags fl=0); | 75 | QWidget* parent=0,const char* name=0,bool modal=false,Qt::WFlags fl=0); |
76 | ~IncomingDialog(); | 76 | ~IncomingDialog(); |
77 | 77 | ||
78 | void setOutgoingDialog(OutgoingDialog *outgoing); | 78 | void setOutgoingDialog(OutgoingDialog *outgoing); |
79 | 79 | ||
80 | signals: | 80 | signals: |
81 | void calendarUpdated(); | 81 | void calendarUpdated(); |
82 | void numMessagesChanged(int); | 82 | void numMessagesChanged(int); |
83 | public slots: | 83 | public slots: |
84 | void retrieve(); | 84 | void retrieve(); |
85 | 85 | ||
86 | protected slots: | 86 | protected slots: |
87 | void acceptAllMessages(); | 87 | void acceptAllMessages(); |
88 | void acceptMessage(); | 88 | void acceptMessage(); |
89 | void rejectMessage(); | 89 | void rejectMessage(); |
90 | void showEvent(QListViewItem *); | 90 | void showEvent(Q3ListViewItem *); |
91 | 91 | ||
92 | protected: | 92 | protected: |
93 | bool acceptMessage(ScheduleItemIn *item); | 93 | bool acceptMessage(ScheduleItemIn *item); |
94 | bool incomeRefresh(ScheduleItemIn *item); | 94 | bool incomeRefresh(ScheduleItemIn *item); |
95 | bool incomeCounter(ScheduleItemIn *item); | 95 | bool incomeCounter(ScheduleItemIn *item); |
96 | bool incomeDeclineCounter(ScheduleItemIn *item); | 96 | bool incomeDeclineCounter(ScheduleItemIn *item); |
97 | bool incomeAdd(ScheduleItemIn *item); | 97 | bool incomeAdd(ScheduleItemIn *item); |
98 | bool incomeRequest(ScheduleItemIn *item); | 98 | bool incomeRequest(ScheduleItemIn *item); |
99 | bool incomeDefault(ScheduleItemIn *item); | 99 | bool incomeDefault(ScheduleItemIn *item); |
100 | bool automaticAction(ScheduleItemIn *item); | 100 | bool automaticAction(ScheduleItemIn *item); |
101 | 101 | ||
102 | private: | 102 | private: |
103 | bool checkAttendeesInAddressbook(IncidenceBase *inc); | 103 | bool checkAttendeesInAddressbook(IncidenceBase *inc); |
104 | bool checkOrganizerInAddressbook(QString organizer); | 104 | bool checkOrganizerInAddressbook(QString organizer); |
105 | Calendar *mCalendar; | 105 | Calendar *mCalendar; |
106 | Scheduler *mScheduler; | 106 | Scheduler *mScheduler; |