author | zautrix <zautrix> | 2004-07-09 23:40:14 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-09 23:40:14 (UTC) |
commit | adaa664ac87d6b78e9431d3376f7a24461edf469 (patch) (unidiff) | |
tree | f82b471f0db80aa7836059441e5c3b943166ac84 /korganizer/koimportoldialog.h | |
parent | 5135d0b47efac71ecb7a98d7d66314c868133021 (diff) | |
download | kdepimpi-adaa664ac87d6b78e9431d3376f7a24461edf469.zip kdepimpi-adaa664ac87d6b78e9431d3376f7a24461edf469.tar.gz kdepimpi-adaa664ac87d6b78e9431d3376f7a24461edf469.tar.bz2 |
Added files for OLE import on wintendo
Diffstat (limited to 'korganizer/koimportoldialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koimportoldialog.h | 83 |
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 | |||
33 | class QDateTime; | ||
34 | class QListView; | ||
35 | class OLEListViewItem; | ||
36 | class _AppointmentItem; | ||
37 | namespace KPIM { class CategorySelectDialog; } | ||
38 | |||
39 | using namespace KCal; | ||
40 | |||
41 | /** | ||
42 | This is the base class for the calendar component editors. | ||
43 | */ | ||
44 | class 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 | |||