summaryrefslogtreecommitdiffabout
path: root/libkdepim/ol_access.h
Unidiff
Diffstat (limited to 'libkdepim/ol_access.h') (more/less context) (ignore whitespace changes)
-rwxr-xr-xlibkdepim/ol_access.h4
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
@@ -16,49 +16,49 @@
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
39class QDateTime; 39class QDateTime;
40class QListView; 40class Q3ListView;
41class OLEListViewItem; 41class OLEListViewItem;
42class _ContactItem; 42class _ContactItem;
43class OL_access : public QObject 43class 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 );
@@ -111,49 +111,49 @@ class KAImportOLdialog : public KDialogBase
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};
143class KAwritebackOL : public QObject 143class 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