summaryrefslogtreecommitdiffabout
path: root/korganizer/outgoingdialog.h
Unidiff
Diffstat (limited to 'korganizer/outgoingdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/outgoingdialog.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/korganizer/outgoingdialog.h b/korganizer/outgoingdialog.h
new file mode 100644
index 0000000..a3d561a
--- a/dev/null
+++ b/korganizer/outgoingdialog.h
@@ -0,0 +1,88 @@
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4
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
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
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
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution.
22*/
23#ifndef OUTGOINGDIALOG_H
24#define OUTGOINGDIALOG_H
25
26#include <qlistview.h>
27#include <qmap.h>
28#include <qstring.h>
29
30#include <libkcal/scheduler.h>
31
32#include "docprefs.h"
33#include "outgoingdialog_base.h"
34
35using namespace KCal;
36
37class ScheduleItemOut : public QListViewItem
38{
39 public:
40 ScheduleItemOut(QListView *parent,IncidenceBase *ev,
41 Scheduler::Method method, const QString &recipients=QString::null);
42 virtual ~ScheduleItemOut() {}
43
44 IncidenceBase *event() { return mIncidence; }
45 Scheduler::Method method() { return mMethod; }
46 QString recipients() { return mRecipients; }
47
48 private:
49 IncidenceBase *mIncidence;
50 Scheduler::Method mMethod;
51 QString mRecipients;
52};
53
54class OutgoingDialog : public OutgoingDialog_base
55{
56 Q_OBJECT
57 public:
58 OutgoingDialog(Calendar *,QWidget* parent=0,const char* name=0,
59 bool modal=false,WFlags fl=0);
60 ~OutgoingDialog();
61
62 bool addMessage(IncidenceBase *,Scheduler::Method);
63 bool addMessage(IncidenceBase *,Scheduler::Method,const QString &recipients);
64 void setDocumentId( const QString &id );
65
66 public slots:
67 void loadMessages();
68
69 signals:
70 void numMessagesChanged(int);
71
72 protected slots:
73 void send();
74 void deleteItem();
75 void showEvent(QListViewItem *);
76
77 private:
78 bool saveMessage(IncidenceBase *,Scheduler::Method,const QString &recipients=0);
79 bool deleteMessage(IncidenceBase *);
80
81 Calendar *mCalendar;
82 ICalFormat *mFormat;
83 Scheduler *mScheduler;
84 QMap<IncidenceBase*, QString> mMessageMap;
85 DocPrefs *mDocPrefs;
86};
87
88#endif // OUTGOINGDIALOG_H