-rwxr-xr-x | libkdepim/ol_access.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libkdepim/ol_access.h b/libkdepim/ol_access.h index 85dbc6c..3422f65 100755 --- a/libkdepim/ol_access.h +++ b/libkdepim/ol_access.h | |||
@@ -8,65 +8,65 @@ | |||
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 OL_ACCESS_H | 23 | #ifndef OL_ACCESS_H |
24 | #define OL_ACCESS_H | 24 | #define OL_ACCESS_H |
25 | 25 | ||
26 | #include <qstring.h> | 26 | #include <qstring.h> |
27 | 27 | ||
28 | #include <kdialogbase.h> | 28 | #include <kdialogbase.h> |
29 | #include <kabc/addressee.h> | 29 | #include <kabc/addressee.h> |
30 | #include <kabc/addressbook.h> | 30 | #include <kabc/addressbook.h> |
31 | 31 | ||
32 | #include <afxdisp.h> | 32 | #include <afxdisp.h> |
33 | 33 | ||
34 | #include "../outport/msoutl9.h" | 34 | #include "../outport/msoutl9.h" |
35 | 35 | ||
36 | #define OL_CONTACT_DATA 2 | 36 | #define OL_CONTACT_DATA 2 |
37 | #define OL_CALENDAR_DATA 1 //pending is this the right number | 37 | #define OL_CALENDAR_DATA 1 //pending is this the right number |
38 | 38 | ||
39 | class QDateTime; | 39 | class QDateTime; |
40 | class QListView; | 40 | class Q3ListView; |
41 | class OLEListViewItem; | 41 | class OLEListViewItem; |
42 | class _ContactItem; | 42 | class _ContactItem; |
43 | class OL_access : public QObject | 43 | class OL_access : public QObject |
44 | { | 44 | { |
45 | Q_OBJECT | 45 | Q_OBJECT |
46 | public: | 46 | public: |
47 | static OL_access *instance(); | 47 | static OL_access *instance(); |
48 | ~OL_access(); | 48 | ~OL_access(); |
49 | //static converter methods | 49 | //static converter methods |
50 | static QDateTime mDdate2Qdtr( DATE dt); | 50 | static QDateTime mDdate2Qdtr( DATE dt); |
51 | static DATE Qdt2date( QDateTime dt ); | 51 | static DATE Qdt2date( QDateTime dt ); |
52 | static KABC::Addressee ol2kapiContact( _ContactItem * aItem , bool syncMode); | 52 | static KABC::Addressee ol2kapiContact( _ContactItem * aItem , bool syncMode); |
53 | static void writeData2OLitem( KABC::Addressee addressee, _ContactItem * aItem ); | 53 | static void writeData2OLitem( KABC::Addressee addressee, _ContactItem * aItem ); |
54 | 54 | ||
55 | KABC::Addressee::List importOLcontacts(); | 55 | KABC::Addressee::List importOLcontacts(); |
56 | QStringList getFolderSelection( int type, QString caption ); | 56 | QStringList getFolderSelection( int type, QString caption ); |
57 | void readContactData( LPDISPATCH folder, KABC::Addressee::List* list, bool syncMode ); | 57 | void readContactData( LPDISPATCH folder, KABC::Addressee::List* list, bool syncMode ); |
58 | 58 | ||
59 | LPDISPATCH getFolderFromID( LPDISPATCH parentFolder, QString selectedFolderID ); | 59 | LPDISPATCH getFolderFromID( LPDISPATCH parentFolder, QString selectedFolderID ); |
60 | bool setSelectedFolder( QString folderID ); | 60 | bool setSelectedFolder( QString folderID ); |
61 | //call setSelectedFolder() before using the next methods: | 61 | //call setSelectedFolder() before using the next methods: |
62 | void deleteAddressee( KABC::Addressee a ); | 62 | void deleteAddressee( KABC::Addressee a ); |
63 | KABC::Addressee changeAddressee( KABC::Addressee a ); | 63 | KABC::Addressee changeAddressee( KABC::Addressee a ); |
64 | KABC::Addressee addAddressee( KABC::Addressee a ); | 64 | KABC::Addressee addAddressee( KABC::Addressee a ); |
65 | 65 | ||
66 | 66 | ||
67 | 67 | ||
68 | 68 | ||
69 | public slots: | 69 | public slots: |
70 | 70 | ||
71 | 71 | ||
72 | signals: | 72 | signals: |
@@ -103,65 +103,65 @@ class KAImportOLdialog : public KDialogBase | |||
103 | Q__OBJECT | 103 | Q__OBJECT |
104 | public: | 104 | public: |
105 | /** | 105 | /** |
106 | Construct new IncidenceEditor. | 106 | Construct new IncidenceEditor. |
107 | */ | 107 | */ |
108 | KAImportOLdialog( const QString &caption, KABC::AddressBook * aBook, | 108 | KAImportOLdialog( const QString &caption, KABC::AddressBook * aBook, |
109 | QWidget *parent ); | 109 | QWidget *parent ); |
110 | ~KAImportOLdialog(); | 110 | ~KAImportOLdialog(); |
111 | 111 | ||
112 | /** Initialize editor. This function creates the tab widgets. */ | 112 | /** Initialize editor. This function creates the tab widgets. */ |
113 | void init(); | 113 | void init(); |
114 | void setSyncMode(); | 114 | void setSyncMode(); |
115 | KABC::Addressee::List getAddressList(); | 115 | KABC::Addressee::List getAddressList(); |
116 | QString selectedFolderID() {return mSelectedFolderID;} | 116 | QString selectedFolderID() {return mSelectedFolderID;} |
117 | static KABC::Addressee ol2kapiContact( _ContactItem * , bool syncMode ); | 117 | static KABC::Addressee ol2kapiContact( _ContactItem * , bool syncMode ); |
118 | static bool sOLDispatch; | 118 | static bool sOLDispatch; |
119 | pub_lic sl_ots: | 119 | pub_lic sl_ots: |
120 | 120 | ||
121 | 121 | ||
122 | sign_als: | 122 | sign_als: |
123 | 123 | ||
124 | prote_cted slo_ts: | 124 | prote_cted slo_ts: |
125 | void slotApply(); | 125 | void slotApply(); |
126 | void slotOk(); | 126 | void slotOk(); |
127 | void slotCancel(); | 127 | void slotCancel(); |
128 | 128 | ||
129 | protected: | 129 | protected: |
130 | void setupFolderView(); | 130 | void setupFolderView(); |
131 | void addFolder(OLEListViewItem* iParent, LPDISPATCH dispParent); | 131 | void addFolder(OLEListViewItem* iParent, LPDISPATCH dispParent); |
132 | void readContactData( DWORD folder ); | 132 | void readContactData( DWORD folder ); |
133 | 133 | ||
134 | KABC::AddressBook * mABook; | 134 | KABC::AddressBook * mABook; |
135 | QListView * mListView; | 135 | Q3ListView * mListView; |
136 | KABC::Addressee::List mAList; | 136 | KABC::Addressee::List mAList; |
137 | bool addAddressee( KABC::Addressee a ); | 137 | bool addAddressee( KABC::Addressee a ); |
138 | private: | 138 | private: |
139 | int importedItems; | 139 | int importedItems; |
140 | bool mSyncMode; | 140 | bool mSyncMode; |
141 | QString mSelectedFolderID; | 141 | QString mSelectedFolderID; |
142 | }; | 142 | }; |
143 | class KAwritebackOL : public QObject | 143 | class KAwritebackOL : public QObject |
144 | { | 144 | { |
145 | Q__OBJECT | 145 | Q__OBJECT |
146 | public: | 146 | public: |
147 | KAwritebackOL( const QString &olFolderID ); | 147 | KAwritebackOL( const QString &olFolderID ); |
148 | ~KAwritebackOL(); | 148 | ~KAwritebackOL(); |
149 | bool init(); | 149 | bool init(); |
150 | void deleteAddressee( KABC::Addressee a ); | 150 | void deleteAddressee( KABC::Addressee a ); |
151 | KABC::Addressee changeAddressee( KABC::Addressee a ); | 151 | KABC::Addressee changeAddressee( KABC::Addressee a ); |
152 | KABC::Addressee addAddressee( KABC::Addressee a ); | 152 | KABC::Addressee addAddressee( KABC::Addressee a ); |
153 | public sl_ots: | 153 | public sl_ots: |
154 | 154 | ||
155 | 155 | ||
156 | signals: | 156 | signals: |
157 | 157 | ||
158 | protected sl_ots: | 158 | protected sl_ots: |
159 | 159 | ||
160 | 160 | ||
161 | protected: | 161 | protected: |
162 | LPDISPATCH getFolderFromID( LPDISPATCH parentFolder ); | 162 | LPDISPATCH getFolderFromID( LPDISPATCH parentFolder ); |
163 | LPDISPATCH getOLitemFromUid( QString uid ); | 163 | LPDISPATCH getOLitemFromUid( QString uid ); |
164 | void writeData2OLitem( KABC::Addressee a, _ContactItem * olitem ); | 164 | void writeData2OLitem( KABC::Addressee a, _ContactItem * olitem ); |
165 | private: | 165 | private: |
166 | QString mSelectedFolderID; | 166 | QString mSelectedFolderID; |
167 | LPDISPATCH mSelectedFolder; | 167 | LPDISPATCH mSelectedFolder; |