summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabcore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h
index ef61d6d..941458d 100644
--- a/kaddressbook/kabcore.h
+++ b/kaddressbook/kabcore.h
@@ -1,481 +1,481 @@
1/* 1/*
2 This file is part of KAddressbook. 2 This file is part of KAddressbook.
3 Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> 3 Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
4 4
5 This program is free software; you can redistribute it and/or modify 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 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 7 the Free Software Foundation; either version 2 of the License, or
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 23
24#ifndef KABCORE_H 24#ifndef KABCORE_H
25#define KABCORE_H 25#define KABCORE_H
26 26
27#include <kabc/field.h> 27#include <kabc/field.h>
28 28
29#ifndef KAB_EMBEDDED 29#ifndef KAB_EMBEDDED
30#endif //KAB_EMBEDDED 30#endif //KAB_EMBEDDED
31#include <qdict.h> 31#include <qdict.h>
32 32
33#include <qwidget.h> 33#include <qwidget.h>
34#include <qpopupmenu.h> 34#include <qpopupmenu.h>
35#include <ksyncmanager.h> 35#include <ksyncmanager.h>
36 36
37namespace KABC { 37namespace KABC {
38class AddressBook; 38class AddressBook;
39} 39}
40 40
41#ifndef KAB_EMBEDDED 41#ifndef KAB_EMBEDDED
42class KAboutData; 42class KAboutData;
43class KConfig; 43class KConfig;
44 44
45class KAddressBookService; 45class KAddressBookService;
46class LDAPSearchDialog; 46class LDAPSearchDialog;
47#else //KAB_EMBEDDED 47#else //KAB_EMBEDDED
48class KAddressBookMain; 48class KAddressBookMain;
49//US class QAction; 49//US class QAction;
50#endif //KAB_EMBEDDED 50#endif //KAB_EMBEDDED
51class KCMultiDialog; 51class KCMultiDialog;
52class KXMLGUIClient; 52class KXMLGUIClient;
53class ExtensionManager; 53class ExtensionManager;
54class XXPortManager; 54class XXPortManager;
55class JumpButtonBar; 55class JumpButtonBar;
56class IncSearchWidget; 56class IncSearchWidget;
57class KDGanttMinimizeSplitter; 57class KDGanttMinimizeSplitter;
58class KAction; 58class KAction;
59class KActionCollection; 59class KActionCollection;
60class KToggleAction; 60class KToggleAction;
61class KSyncProfile; 61class KSyncProfile;
62 62
63class QAction; 63class QAction;
64class QMenuBar; 64class QMenuBar;
65class QSplitter; 65class QSplitter;
66class ViewContainer; 66class ViewContainer;
67class ViewManager; 67class ViewManager;
68class AddresseeEditorDialog; 68class AddresseeEditorDialog;
69class Ir; 69class Ir;
70 70
71class KABCore : public QWidget, public KSyncInterface 71class KABCore : public QWidget, public KSyncInterface
72{ 72{
73 Q_OBJECT 73 Q_OBJECT
74 74
75 public: 75 public:
76 KABCore( KAddressBookMain *client, bool readWrite, QWidget *parent, const char *name = 0 ); 76 KABCore( KAddressBookMain *client, bool readWrite, QWidget *parent, const char *name = 0 );
77 77
78 78
79 ~KABCore(); 79 ~KABCore();
80 80
81 81
82#ifdef KAB_EMBEDDED 82#ifdef KAB_EMBEDDED
83 //US added functionality 83 //US added functionality
84 QPopupMenu* getViewMenu() {return viewMenu;} 84 QPopupMenu* getViewMenu() {return viewMenu;}
85 QPopupMenu* getFilterMenu() {return filterMenu;} 85 QPopupMenu* getFilterMenu() {return filterMenu;}
86 QPopupMenu* getSettingsMenu() {return settingsMenu;} 86 QPopupMenu* getSettingsMenu() {return settingsMenu;}
87 void addActionsManually(); 87 void addActionsManually();
88#endif //KAB_EMBEDDED 88#endif //KAB_EMBEDDED
89 /** 89 /**
90 Restores the global settings. 90 Restores the global settings.
91 */ 91 */
92 void restoreSettings(); 92 void restoreSettings();
93 93
94 /** 94 /**
95 Saves the global settings. 95 Saves the global settings.
96 */ 96 */
97 void saveSettings(); 97 void saveSettings();
98 98
99 /** 99 /**
100 Returns a pointer to the StdAddressBook of the application. 100 Returns a pointer to the StdAddressBook of the application.
101 */ 101 */
102 KABC::AddressBook *addressBook() const; 102 KABC::AddressBook *addressBook() const;
103 103
104 /** 104 /**
105 Returns a pointer to the KConfig object of the application. 105 Returns a pointer to the KConfig object of the application.
106 */ 106 */
107 static KConfig *config(); 107 static KConfig *config();
108 108
109 /** 109 /**
110 Returns a pointer to the global KActionCollection object. So 110 Returns a pointer to the global KActionCollection object. So
111 other classes can register their actions easily. 111 other classes can register their actions easily.
112 */ 112 */
113 KActionCollection *actionCollection() const; 113 KActionCollection *actionCollection() const;
114 114
115 /** 115 /**
116 Returns the current search field of the Incremental Search Widget. 116 Returns the current search field of the Incremental Search Widget.
117 */ 117 */
118 KABC::Field *currentSearchField() const; 118 KABC::Field *currentSearchField() const;
119 119
120 /** 120 /**
121 Returns the uid list of the currently selected contacts. 121 Returns the uid list of the currently selected contacts.
122 */ 122 */
123 QStringList selectedUIDs() const; 123 QStringList selectedUIDs() const;
124 124
125 /** 125 /**
126 Displays the ResourceSelectDialog and returns the selected 126 Displays the ResourceSelectDialog and returns the selected
127 resource or a null pointer if no resource was selected by 127 resource or a null pointer if no resource was selected by
128 the user. 128 the user.
129 */ 129 */
130 KABC::Resource *requestResource( QWidget *parent ); 130 KABC::Resource *requestResource( QWidget *parent );
131 131
132#ifndef KAB_EMBEDDED 132#ifndef KAB_EMBEDDED
133 static KAboutData *createAboutData(); 133 static KAboutData *createAboutData();
134#endif //KAB_EMBEDDED 134#endif //KAB_EMBEDDED
135 135
136#ifdef KAB_EMBEDDED 136#ifdef KAB_EMBEDDED
137 inline QPopupMenu* getImportMenu() { return ImportMenu;} 137 inline QPopupMenu* getImportMenu() { return ImportMenu;}
138 inline QPopupMenu* getExportMenu() { return ExportMenu;} 138 inline QPopupMenu* getExportMenu() { return ExportMenu;}
139#endif //KAB_EMBEDDED 139#endif //KAB_EMBEDDED
140 140
141 public slots: 141 public slots:
142#ifdef KAB_EMBEDDED 142#ifdef KAB_EMBEDDED
143 void createAboutData(); 143 void createAboutData();
144#endif //KAB_EMBEDDED 144#endif //KAB_EMBEDDED
145 145
146 void statusMessage(QString, int time = 0 ); 146 void statusMessage(QString, int time = 0 );
147 void showLicence(); 147 void showLicence();
148 void faq(); 148 void faq();
149 149
150 /** 150 /**
151 Is called whenever a contact is selected in the view. 151 Is called whenever a contact is selected in the view.
152 */ 152 */
153 void setContactSelected( const QString &uid ); 153 void setContactSelected( const QString &uid );
154 154
155 /** 155 /**
156 Opens the preferred mail composer with all selected contacts as 156 Opens the preferred mail composer with all selected contacts as
157 arguments. 157 arguments.
158 */ 158 */
159 void sendMail(); 159 void sendMail();
160 160
161 /** 161 /**
162 Opens the preferred mail composer with the given contacts as 162 Opens the preferred mail composer with the given contacts as
163 arguments. 163 arguments.
164 */ 164 */
165 void sendMail( const QString& email ); 165 void sendMail( const QString& email );
166 166
167 167
168 void mailVCard(); 168 void mailVCard();
169 void mailVCard(const QStringList& uids); 169 void mailVCard(const QStringList& uids);
170 170
171 /** 171 /**
172 Beams the "WhoAmI contact. 172 Beams the "WhoAmI contact.
173 */ 173 */
174 void beamMySelf(); 174 void beamMySelf();
175 175
176 void beamVCard(); 176 void beamVCard();
177 void beamVCard(const QStringList& uids); 177 void beamVCard(const QStringList& uids);
178 void beamDone( Ir *ir ); 178 void beamDone( Ir *ir );
179 179
180 180
181 /** 181 /**
182 Starts the preferred web browser with the given URL as argument. 182 Starts the preferred web browser with the given URL as argument.
183 */ 183 */
184 void browse( const QString& url ); 184 void browse( const QString& url );
185 185
186 /** 186 /**
187 Select all contacts in the view. 187 Select all contacts in the view.
188 */ 188 */
189 void selectAllContacts(); 189 void selectAllContacts();
190 190
191 /** 191 /**
192 Deletes all selected contacts from the address book. 192 Deletes all selected contacts from the address book.
193 */ 193 */
194 void deleteContacts(); 194 void deleteContacts();
195 195
196 /** 196 /**
197 Deletes given contacts from the address book. 197 Deletes given contacts from the address book.
198 198
199 @param uids The uids of the contacts, which shall be deleted. 199 @param uids The uids of the contacts, which shall be deleted.
200 */ 200 */
201 void deleteContacts( const QStringList &uids ); 201 void deleteContacts( const QStringList &uids );
202 202
203 /** 203 /**
204 Copys the selected contacts into clipboard for later pasting. 204 Copys the selected contacts into clipboard for later pasting.
205 */ 205 */
206 void copyContacts(); 206 void copyContacts();
207 207
208 /** 208 /**
209 Cuts the selected contacts and stores them for later pasting. 209 Cuts the selected contacts and stores them for later pasting.
210 */ 210 */
211 void cutContacts(); 211 void cutContacts();
212 212
213 /** 213 /**
214 Paste contacts from clipboard into the address book. 214 Paste contacts from clipboard into the address book.
215 */ 215 */
216 void pasteContacts(); 216 void pasteContacts();
217 217
218 /** 218 /**
219 Paste given contacts into the address book. 219 Paste given contacts into the address book.
220 220
221 @param list The list of addressee, which shall be pasted. 221 @param list The list of addressee, which shall be pasted.
222 */ 222 */
223 void pasteContacts( KABC::Addressee::List &list ); 223 void pasteContacts( KABC::Addressee::List &list );
224 224
225 /** 225 /**
226 Sets the whoAmI contact, that is used by many other programs to 226 Sets the whoAmI contact, that is used by many other programs to
227 get personal information about the current user. 227 get personal information about the current user.
228 */ 228 */
229 void setWhoAmI(); 229 void setWhoAmI();
230 230
231 /** 231 /**
232 Displays the category dialog and applies the result to all 232 Displays the category dialog and applies the result to all
233 selected contacts. 233 selected contacts.
234 */ 234 */
235 void setCategories(); 235 void setCategories();
236 236
237 /** 237 /**
238 Sets the field list of the Incremental Search Widget. 238 Sets the field list of the Incremental Search Widget.
239 */ 239 */
240 void setSearchFields( const KABC::Field::List &fields ); 240 void setSearchFields( const KABC::Field::List &fields );
241 241
242 /** 242 /**
243 Search with the current search field for a contact, that matches 243 Search with the current search field for a contact, that matches
244 the given text, and selects it in the view. 244 the given text, and selects it in the view.
245 */ 245 */
246 void incrementalSearch( const QString& text ); 246 void incrementalSearch( const QString& text );
247 247
248 /** 248 /**
249 Marks the address book as modified. 249 Marks the address book as modified.
250 */ 250 */
251 void setModified(); 251 void setModified();
252 /** 252 /**
253 Marks the address book as modified without refreshing the view. 253 Marks the address book as modified without refreshing the view.
254 */ 254 */
255 void setModifiedWOrefresh(); 255 void setModifiedWOrefresh();
256 256
257 /** 257 /**
258 Marks the address book as modified concerning the argument. 258 Marks the address book as modified concerning the argument.
259 */ 259 */
260 void setModified( bool modified ); 260 void setModified( bool modified );
261 261
262 /** 262 /**
263 Returns whether the address book is modified. 263 Returns whether the address book is modified.
264 */ 264 */
265 bool modified() const; 265 bool modified() const;
266 266
267 /** 267 /**
268 Called whenever an contact is modified in the contact editor 268 Called whenever an contact is modified in the contact editor
269 dialog or the quick edit. 269 dialog or the quick edit.
270 */ 270 */
271 void contactModified( const KABC::Addressee &addr ); 271 void contactModified( const KABC::Addressee &addr );
272 272
273 /** 273 /**
274 DCOP METHODS. 274 DCOP METHODS.
275 */ 275 */
276 void addEmail( QString addr ); 276 void addEmail( QString addr );
277 void importVCard( const KURL& url, bool showPreview ); 277 void importVCard( const KURL& url, bool showPreview );
278 void importVCard( const QString& vCard, bool showPreview ); 278 void importVCard( const QString& vCard, bool showPreview );
279 void newContact(); 279 void newContact();
280 QString getNameByPhone( const QString& phone ); 280 QString getNameByPhone( const QString& phone );
281 /** 281 /**
282 END DCOP METHODS 282 END DCOP METHODS
283 */ 283 */
284 284
285 /** 285 /**
286 Saves the contents of the AddressBook back to disk. 286 Saves the contents of the AddressBook back to disk.
287 */ 287 */
288 void save(); 288 void save();
289 289
290 /** 290 /**
291 Undos the last command using the undo stack. 291 Undos the last command using the undo stack.
292 */ 292 */
293 void undo(); 293 void undo();
294 294
295 /** 295 /**
296 Redos the last command that was undone, using the redo stack. 296 Redos the last command that was undone, using the redo stack.
297 */ 297 */
298 void redo(); 298 void redo();
299 299
300 /** 300 /**
301 Shows the edit dialog for the given uid. If the uid is QString::null, 301 Shows the edit dialog for the given uid. If the uid is QString::null,
302 the method will try to find a selected addressee in the view. 302 the method will try to find a selected addressee in the view.
303 */ 303 */
304 void editContact( const QString &uid /*US = QString::null*/ ); 304 void editContact( const QString &uid /*US = QString::null*/ );
305//US added a second method without defaultparameter 305//US added a second method without defaultparameter
306 void editContact2(); 306 void editContact2();
307 307
308 /** 308 /**
309 Shows or edits the detail view for the given uid. If the uid is QString::null, 309 Shows or edits the detail view for the given uid. If the uid is QString::null,
310 the method will try to find a selected addressee in the view. 310 the method will try to find a selected addressee in the view.
311 */ 311 */
312 void executeContact( const QString &uid /*US = QString::null*/ ); 312 void executeContact( const QString &uid /*US = QString::null*/ );
313 313
314 /** 314 /**
315 Launches the configuration dialog. 315 Launches the configuration dialog.
316 */ 316 */
317 void openConfigDialog(); 317 void openConfigDialog();
318 318
319 /** 319 /**
320 Launches the ldap search dialog. 320 Launches the ldap search dialog.
321 */ 321 */
322 void openLDAPDialog(); 322 void openLDAPDialog();
323 323
324 /** 324 /**
325 Creates a KAddressBookPrinter, which will display the print 325 Creates a KAddressBookPrinter, which will display the print
326 dialog and do the printing. 326 dialog and do the printing.
327 */ 327 */
328 void print(); 328 void print();
329 329
330 /** 330 /**
331 Registers a new GUI client, so plugins can register its actions. 331 Registers a new GUI client, so plugins can register its actions.
332 */ 332 */
333 void addGUIClient( KXMLGUIClient *client ); 333 void addGUIClient( KXMLGUIClient *client );
334 334
335 void requestForNameEmailUidList(const QString& sourceChannel, const QString& sessionuid); 335 void requestForNameEmailUidList(const QString& sourceChannel, const QString& sessionuid);
336 void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid); 336 void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid);
337 337
338 338
339 signals: 339 signals:
340 void contactSelected( const QString &name ); 340 void contactSelected( const QString &name );
341 void contactSelected( const QPixmap &pixmap ); 341 void contactSelected( const QPixmap &pixmap );
342 public slots: 342 public slots:
343 void setDetailsVisible( bool visible ); 343 void setDetailsVisible( bool visible );
344 void setDetailsToState(); 344 void setDetailsToState();
345 // void slotSyncMenu( int ); 345 // void slotSyncMenu( int );
346 private slots: 346 private slots:
347 void setJumpButtonBarVisible( bool visible ); 347 void setJumpButtonBarVisible( bool visible );
348 void importFromOL(); 348 void importFromOL();
349 void extensionModified( const KABC::Addressee::List &list ); 349 void extensionModified( const KABC::Addressee::List &list );
350 void extensionChanged( int id ); 350 void extensionChanged( int id );
351 void clipboardDataChanged(); 351 void clipboardDataChanged();
352 void updateActionMenu(); 352 void updateActionMenu();
353 void configureKeyBindings(); 353 void configureKeyBindings();
354 void removeVoice(); 354 void removeVoice();
355#ifdef KAB_EMBEDDED 355#ifdef KAB_EMBEDDED
356 void configureResources(); 356 void configureResources();
357#endif //KAB_EMBEDDED 357#endif //KAB_EMBEDDED
358 358
359 void slotEditorDestroyed( const QString &uid ); 359 void slotEditorDestroyed( const QString &uid );
360 void configurationChanged(); 360 void configurationChanged();
361 void addressBookChanged(); 361 void addressBookChanged();
362 362
363 private: 363 private:
364 void initGUI(); 364 void initGUI();
365 void initActions(); 365 void initActions();
366 366
367 AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent, 367 AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent,
368 const char *name = 0 ); 368 const char *name = 0 );
369 369
370 KXMLGUIClient *mGUIClient; 370 KXMLGUIClient *mGUIClient;
371 371
372 KABC::AddressBook *mAddressBook; 372 KABC::AddressBook *mAddressBook;
373 373
374 ViewManager *mViewManager; 374 ViewManager *mViewManager;
375 // QSplitter *mDetailsSplitter; 375 // QSplitter *mDetailsSplitter;
376 KDGanttMinimizeSplitter *mExtensionBarSplitter; 376 KDGanttMinimizeSplitter *mExtensionBarSplitter;
377 ViewContainer *mDetails; 377 ViewContainer *mDetails;
378 KDGanttMinimizeSplitter* mMiniSplitter; 378 KDGanttMinimizeSplitter* mMiniSplitter;
379 XXPortManager *mXXPortManager; 379 XXPortManager *mXXPortManager;
380 JumpButtonBar *mJumpButtonBar; 380 JumpButtonBar *mJumpButtonBar;
381 IncSearchWidget *mIncSearchWidget; 381 IncSearchWidget *mIncSearchWidget;
382 ExtensionManager *mExtensionManager; 382 ExtensionManager *mExtensionManager;
383 383
384 KCMultiDialog *mConfigureDialog; 384 KCMultiDialog *mConfigureDialog;
385 385
386#ifndef KAB_EMBEDDED 386#ifndef KAB_EMBEDDED
387 LDAPSearchDialog *mLdapSearchDialog; 387 LDAPSearchDialog *mLdapSearchDialog;
388#endif //KAB_EMBEDDED 388#endif //KAB_EMBEDDED
389 // QDict<AddresseeEditorDialog> mEditorDict; 389 // QDict<AddresseeEditorDialog> mEditorDict;
390 AddresseeEditorDialog *mEditorDialog; 390 AddresseeEditorDialog *mEditorDialog;
391 bool mReadWrite; 391 bool mReadWrite;
392 bool mModified; 392 bool mModified;
393 bool mIsPart; 393 bool mIsPart;
394 bool mMultipleViewsAtOnce; 394 bool mMultipleViewsAtOnce;
395 395
396 396
397 //US file menu 397 //US file menu
398 KAction *mActionMail; 398 KAction *mActionMail;
399 KAction *mActionBeam; 399 KAction *mActionBeam;
400 KAction* mActionPrint; 400 KAction* mActionPrint;
401 KAction* mActionNewContact; 401 KAction* mActionNewContact;
402 KAction *mActionSave; 402 KAction *mActionSave;
403 KAction *mActionEditAddressee; 403 KAction *mActionEditAddressee;
404 KAction *mActionMailVCard; 404 KAction *mActionMailVCard;
405 KAction *mActionBeamVCard; 405 KAction *mActionBeamVCard;
406 406
407 KAction *mActionQuit; 407 KAction *mActionQuit;
408 408
409 //US edit menu 409 //US edit menu
410 KAction *mActionCopy; 410 KAction *mActionCopy;
411 KAction *mActionCut; 411 KAction *mActionCut;
412 KAction *mActionPaste; 412 KAction *mActionPaste;
413 KAction *mActionSelectAll; 413 KAction *mActionSelectAll;
414 KAction *mActionUndo; 414 KAction *mActionUndo;
415 KAction *mActionRedo; 415 KAction *mActionRedo;
416 KAction *mActionDelete; 416 KAction *mActionDelete;
417 417
418 //US settings menu 418 //US settings menu
419 KAction *mActionConfigResources; 419 KAction *mActionConfigResources;
420 KAction *mActionConfigKAddressbook; 420 KAction *mActionConfigKAddressbook;
421 KAction *mActionConfigShortcuts; 421 KAction *mActionConfigShortcuts;
422 KAction *mActionConfigureToolbars; 422 KAction *mActionConfigureToolbars;
423 KAction *mActionKeyBindings; 423 KAction *mActionKeyBindings;
424 KToggleAction *mActionJumpBar; 424 KToggleAction *mActionJumpBar;
425 KToggleAction *mActionDetails; 425 KToggleAction *mActionDetails;
426 KAction *mActionWhoAmI; 426 KAction *mActionWhoAmI;
427 KAction *mActionCategories; 427 KAction *mActionCategories;
428 KAction *mActionAboutKAddressbook; 428 KAction *mActionAboutKAddressbook;
429 KAction *mActionLicence; 429 KAction *mActionLicence;
430 KAction *mActionFaq; 430 KAction *mActionFaq;
431 431
432 KAction *mActionDeleteView; 432 KAction *mActionDeleteView;
433 433
434 QPopupMenu *viewMenu; 434 QPopupMenu *viewMenu;
435 QPopupMenu *filterMenu; 435 QPopupMenu *filterMenu;
436 QPopupMenu *settingsMenu; 436 QPopupMenu *settingsMenu;
437 QPopupMenu *changeMenu; 437 QPopupMenu *changeMenu;
438//US QAction *mActionSave; 438//US QAction *mActionSave;
439 QPopupMenu *ImportMenu; 439 QPopupMenu *ImportMenu;
440 QPopupMenu *ExportMenu; 440 QPopupMenu *ExportMenu;
441 //LR additional methods 441 //LR additional methods
442 KAction *mActionRemoveVoice; 442 KAction *mActionRemoveVoice;
443 KAction * mActionImportOL; 443 KAction * mActionImportOL;
444 444
445#ifndef KAB_EMBEDDED 445#ifndef KAB_EMBEDDED
446 KAddressBookService *mAddressBookService; 446 KAddressBookService *mAddressBookService;
447#endif //KAB_EMBEDDED 447#endif //KAB_EMBEDDED
448 448
449 class KABCorePrivate; 449 class KABCorePrivate;
450 KABCorePrivate *d; 450 KABCorePrivate *d;
451 //US bool mBlockSaveFlag; 451 //US bool mBlockSaveFlag;
452 452
453#ifdef KAB_EMBEDDED 453#ifdef KAB_EMBEDDED
454 KAddressBookMain *mMainWindow; // should be the same like mGUIClient 454 KAddressBookMain *mMainWindow; // should be the same like mGUIClient
455#endif //KAB_EMBEDDED 455#endif //KAB_EMBEDDED
456 456
457 //this are the overwritten callbackmethods from the syncinterface 457 //this are the overwritten callbackmethods from the syncinterface
458 virtual bool sync(KSyncManager* manager, QString filename, int mode); 458 virtual bool sync(KSyncManager* manager, QString filename, int mode);
459 virtual bool syncExternal(KSyncManager* manager, QString resource); 459 virtual bool syncExternal(KSyncManager* manager, QString resource);
460 460
461 //called by the syncmanager to indicate that the work has to marked as dirty. 461 //called by the syncmanager to indicate that the work has to marked as dirty.
462 virtual void sync_setModified(); 462 virtual void sync_setModified();
463 //called by the syncmanager to ask if the dirty flag is set. 463 //called by the syncmanager to ask if the dirty flag is set.
464 virtual bool KABCore::sync_isModified(); 464 virtual bool sync_isModified();
465 //called by the syncmanager to indicate that the work has to be saved. 465 //called by the syncmanager to indicate that the work has to be saved.
466 virtual void sync_save(); 466 virtual void sync_save();
467 467
468 // LR ******************************* 468 // LR *******************************
469 // sync stuff! 469 // sync stuff!
470 QPopupMenu *syncMenu; 470 QPopupMenu *syncMenu;
471 KSyncManager* syncManager; 471 KSyncManager* syncManager;
472 int mGlobalSyncMode; 472 int mGlobalSyncMode;
473 bool synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBook* remote,int mode); 473 bool synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBook* remote,int mode);
474 KABC::Addressee getLastSyncAddressee(); 474 KABC::Addressee getLastSyncAddressee();
475 QDateTime mLastAddressbookSync; 475 QDateTime mLastAddressbookSync;
476 int takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, int mode , bool full ); 476 int takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, int mode , bool full );
477 // ********************* 477 // *********************
478 478
479}; 479};
480 480
481#endif 481#endif