summaryrefslogtreecommitdiffabout
path: root/korganizer/koimportoldialog.h
Unidiff
Diffstat (limited to 'korganizer/koimportoldialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koimportoldialog.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/korganizer/koimportoldialog.h b/korganizer/koimportoldialog.h
new file mode 100644
index 0000000..f6a753d
--- a/dev/null
+++ b/korganizer/koimportoldialog.h
@@ -0,0 +1,83 @@
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 KOINCIDENCEEDITOR_H
24#define KOINCIDENCEEDITOR_H
25
26#include <kdialogbase.h>
27
28#include <afxdisp.h>
29#include <libkcal/calendar.h>
30#include <libkcal/event.h>
31
32
33class QDateTime;
34class QListView;
35class OLEListViewItem;
36class _AppointmentItem;
37namespace KPIM { class CategorySelectDialog; }
38
39using namespace KCal;
40
41/**
42 This is the base class for the calendar component editors.
43*/
44class KOImportOLdialog : public KDialogBase
45{
46 Q_OBJECT
47 public:
48 /**
49 Construct new IncidenceEditor.
50 */
51 KOImportOLdialog( const QString &caption, Calendar *calendar,
52 QWidget *parent );
53 virtual ~KOImportOLdialog();
54
55 /** Initialize editor. This function creates the tab widgets. */
56 void init();
57
58 public slots:
59
60
61 signals:
62
63 protected slots:
64 void slotApply();
65 void slotOk();
66 void slotCancel();
67
68 protected:
69 void setupFolderView();
70 void addFolder(OLEListViewItem* iParent, LPDISPATCH dispParent);
71 void readCalendarData( DWORD folder );
72 void ol2kopiCalendar( _AppointmentItem * , bool computeRecurrence = true );
73
74 Calendar *mCalendar;
75 QListView * mListView;
76
77 private:
78 int importedItems;
79};
80
81#endif
82
83