-rw-r--r-- | kaddressbook/kabcore.h | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index ec6a9ec..4351720 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h | |||
@@ -1,171 +1,175 @@ | |||
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 <q3dict.h> |
32 | #include <qtimer.h> | 32 | #include <qtimer.h> |
33 | 33 | ||
34 | #include <qwidget.h> | 34 | #include <qwidget.h> |
35 | #include <qpopupmenu.h> | 35 | #include <q3popupmenu.h> |
36 | //Added by qt3to4: | ||
37 | #include <Q3CString> | ||
38 | #include <QPixmap> | ||
39 | #include <QResizeEvent> | ||
36 | #include <ksyncmanager.h> | 40 | #include <ksyncmanager.h> |
37 | #ifndef DESKTOP_VERSION | 41 | #ifndef DESKTOP_VERSION |
38 | #include <qcopchannel_qws.h> | 42 | #include <qcopchannel_qws.h> |
39 | #endif | 43 | #endif |
40 | 44 | ||
41 | namespace KABC { | 45 | namespace KABC { |
42 | class AddressBook; | 46 | class AddressBook; |
43 | } | 47 | } |
44 | 48 | ||
45 | #ifndef KAB_EMBEDDED | 49 | #ifndef KAB_EMBEDDED |
46 | class KAboutData; | 50 | class KAboutData; |
47 | class KConfig; | 51 | class KConfig; |
48 | 52 | ||
49 | class KAddressBookService; | 53 | class KAddressBookService; |
50 | class LDAPSearchDialog; | 54 | class LDAPSearchDialog; |
51 | #else //KAB_EMBEDDED | 55 | #else //KAB_EMBEDDED |
52 | class KAddressBookMain; | 56 | class KAddressBookMain; |
53 | //US class QAction; | 57 | //US class QAction; |
54 | #endif //KAB_EMBEDDED | 58 | #endif //KAB_EMBEDDED |
55 | class KCMultiDialog; | 59 | class KCMultiDialog; |
56 | class KXMLGUIClient; | 60 | class KXMLGUIClient; |
57 | class ExtensionManager; | 61 | class ExtensionManager; |
58 | class XXPortManager; | 62 | class XXPortManager; |
59 | class JumpButtonBar; | 63 | class JumpButtonBar; |
60 | class IncSearchWidget; | 64 | class IncSearchWidget; |
61 | class KDGanttMinimizeSplitter; | 65 | class KDGanttMinimizeSplitter; |
62 | class KAction; | 66 | class KAction; |
63 | class KActionCollection; | 67 | class KActionCollection; |
64 | class KToggleAction; | 68 | class KToggleAction; |
65 | class KSyncProfile; | 69 | class KSyncProfile; |
66 | 70 | ||
67 | class QAction; | 71 | class QAction; |
68 | class QMenuBar; | 72 | class QMenuBar; |
69 | class QSplitter; | 73 | class QSplitter; |
70 | class ViewContainer; | 74 | class ViewContainer; |
71 | class ViewManager; | 75 | class ViewManager; |
72 | class AddresseeEditorDialog; | 76 | class AddresseeEditorDialog; |
73 | class Ir; | 77 | class Ir; |
74 | 78 | ||
75 | class KABCore : public QWidget, public KSyncInterface | 79 | class KABCore : public QWidget, public KSyncInterface |
76 | { | 80 | { |
77 | Q_OBJECT | 81 | Q_OBJECT |
78 | 82 | ||
79 | public: | 83 | public: |
80 | KABCore( KAddressBookMain *client, bool readWrite, QWidget *parent, const char *name = 0 ); | 84 | KABCore( KAddressBookMain *client, bool readWrite, QWidget *parent, const char *name = 0 ); |
81 | 85 | ||
82 | 86 | ||
83 | ~KABCore(); | 87 | ~KABCore(); |
84 | 88 | ||
85 | 89 | ||
86 | #ifdef KAB_EMBEDDED | 90 | #ifdef KAB_EMBEDDED |
87 | //US added functionality | 91 | //US added functionality |
88 | QPopupMenu* getViewMenu() {return viewMenu;} | 92 | Q3PopupMenu* getViewMenu() {return viewMenu;} |
89 | QPopupMenu* getFilterMenu() {return filterMenu;} | 93 | Q3PopupMenu* getFilterMenu() {return filterMenu;} |
90 | QPopupMenu* getSettingsMenu() {return settingsMenu;} | 94 | Q3PopupMenu* getSettingsMenu() {return settingsMenu;} |
91 | void addActionsManually(); | 95 | void addActionsManually(); |
92 | #endif //KAB_EMBEDDED | 96 | #endif //KAB_EMBEDDED |
93 | /** | 97 | /** |
94 | Restores the global settings. | 98 | Restores the global settings. |
95 | */ | 99 | */ |
96 | void restoreSettings(); | 100 | void restoreSettings(); |
97 | 101 | ||
98 | 102 | ||
99 | 103 | ||
100 | /** | 104 | /** |
101 | Returns a pointer to the StdAddressBook of the application. | 105 | Returns a pointer to the StdAddressBook of the application. |
102 | */ | 106 | */ |
103 | KABC::AddressBook *addressBook() const; | 107 | KABC::AddressBook *addressBook() const; |
104 | 108 | ||
105 | /** | 109 | /** |
106 | Returns a pointer to the KConfig object of the application. | 110 | Returns a pointer to the KConfig object of the application. |
107 | */ | 111 | */ |
108 | static KConfig *config(); | 112 | static KConfig *config(); |
109 | 113 | ||
110 | /** | 114 | /** |
111 | Returns a pointer to the global KActionCollection object. So | 115 | Returns a pointer to the global KActionCollection object. So |
112 | other classes can register their actions easily. | 116 | other classes can register their actions easily. |
113 | */ | 117 | */ |
114 | KActionCollection *actionCollection() const; | 118 | KActionCollection *actionCollection() const; |
115 | 119 | ||
116 | /** | 120 | /** |
117 | Returns the current search field of the Incremental Search Widget. | 121 | Returns the current search field of the Incremental Search Widget. |
118 | */ | 122 | */ |
119 | KABC::Field *currentSearchField() const; | 123 | KABC::Field *currentSearchField() const; |
120 | 124 | ||
121 | /** | 125 | /** |
122 | Returns the uid list of the currently selected contacts. | 126 | Returns the uid list of the currently selected contacts. |
123 | */ | 127 | */ |
124 | QStringList selectedUIDs() const; | 128 | QStringList selectedUIDs() const; |
125 | 129 | ||
126 | /** | 130 | /** |
127 | Displays the ResourceSelectDialog and returns the selected | 131 | Displays the ResourceSelectDialog and returns the selected |
128 | resource or a null pointer if no resource was selected by | 132 | resource or a null pointer if no resource was selected by |
129 | the user. | 133 | the user. |
130 | */ | 134 | */ |
131 | KABC::Resource *requestResource( QWidget *parent ); | 135 | KABC::Resource *requestResource( QWidget *parent ); |
132 | 136 | ||
133 | #ifndef KAB_EMBEDDED | 137 | #ifndef KAB_EMBEDDED |
134 | static KAboutData *createAboutData(); | 138 | static KAboutData *createAboutData(); |
135 | #endif //KAB_EMBEDDED | 139 | #endif //KAB_EMBEDDED |
136 | 140 | ||
137 | #ifdef KAB_EMBEDDED | 141 | #ifdef KAB_EMBEDDED |
138 | inline QPopupMenu* getImportMenu() { return ImportMenu;} | 142 | inline Q3PopupMenu* getImportMenu() { return ImportMenu;} |
139 | inline QPopupMenu* getExportMenu() { return ExportMenu;} | 143 | inline Q3PopupMenu* getExportMenu() { return ExportMenu;} |
140 | #endif //KAB_EMBEDDED | 144 | #endif //KAB_EMBEDDED |
141 | 145 | ||
142 | public slots: | 146 | public slots: |
143 | #ifdef KAB_EMBEDDED | 147 | #ifdef KAB_EMBEDDED |
144 | void createAboutData(); | 148 | void createAboutData(); |
145 | #endif //KAB_EMBEDDED | 149 | #endif //KAB_EMBEDDED |
146 | void setDetailsToggle(); | 150 | void setDetailsToggle(); |
147 | 151 | ||
148 | void showLicence(); | 152 | void showLicence(); |
149 | void faq(); | 153 | void faq(); |
150 | void whatsnew() ; | 154 | void whatsnew() ; |
151 | void synchowto() ; | 155 | void synchowto() ; |
152 | void storagehowto() ; | 156 | void storagehowto() ; |
153 | void multisynchowto() ; | 157 | void multisynchowto() ; |
154 | void kdesynchowto() ; | 158 | void kdesynchowto() ; |
155 | void writeToPhone(); | 159 | void writeToPhone(); |
156 | 160 | ||
157 | /** | 161 | /** |
158 | Is called whenever a contact is selected in the view. | 162 | Is called whenever a contact is selected in the view. |
159 | */ | 163 | */ |
160 | void setContactSelected( const QString &uid ); | 164 | void setContactSelected( const QString &uid ); |
161 | 165 | ||
162 | /** | 166 | /** |
163 | Opens the preferred mail composer with all selected contacts as | 167 | Opens the preferred mail composer with all selected contacts as |
164 | arguments. | 168 | arguments. |
165 | */ | 169 | */ |
166 | void sendMail(); | 170 | void sendMail(); |
167 | 171 | ||
168 | /** | 172 | /** |
169 | Opens the preferred mail composer with the given contacts as | 173 | Opens the preferred mail composer with the given contacts as |
170 | arguments. | 174 | arguments. |
171 | */ | 175 | */ |
@@ -337,93 +341,93 @@ class KABCore : public QWidget, public KSyncInterface | |||
337 | /** | 341 | /** |
338 | Creates a KAddressBookPrinter, which will display the print | 342 | Creates a KAddressBookPrinter, which will display the print |
339 | dialog and do the printing. | 343 | dialog and do the printing. |
340 | */ | 344 | */ |
341 | void print(); | 345 | void print(); |
342 | 346 | ||
343 | /** | 347 | /** |
344 | Registers a new GUI client, so plugins can register its actions. | 348 | Registers a new GUI client, so plugins can register its actions. |
345 | */ | 349 | */ |
346 | void addGUIClient( KXMLGUIClient *client ); | 350 | void addGUIClient( KXMLGUIClient *client ); |
347 | 351 | ||
348 | void requestForNameEmailUidList(const QString& sourceChannel, const QString& sessionuid); | 352 | void requestForNameEmailUidList(const QString& sourceChannel, const QString& sessionuid); |
349 | void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid); | 353 | void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid); |
350 | void requestForBirthdayList(const QString& sourceChannel, const QString& sessionuid); | 354 | void requestForBirthdayList(const QString& sourceChannel, const QString& sessionuid); |
351 | 355 | ||
352 | 356 | ||
353 | signals: | 357 | signals: |
354 | void contactSelected( const QString &name ); | 358 | void contactSelected( const QString &name ); |
355 | void contactSelected( const QPixmap &pixmap ); | 359 | void contactSelected( const QPixmap &pixmap ); |
356 | public slots: | 360 | public slots: |
357 | void loadDataAfterStart(); | 361 | void loadDataAfterStart(); |
358 | void recieve(QString cmsg ); | 362 | void recieve(QString cmsg ); |
359 | void getFile( bool success,const QString & ); | 363 | void getFile( bool success,const QString & ); |
360 | void syncFileRequest(const QString &); | 364 | void syncFileRequest(const QString &); |
361 | void setDetailsVisible( bool visible ); | 365 | void setDetailsVisible( bool visible ); |
362 | void setDetailsToState(); | 366 | void setDetailsToState(); |
363 | 367 | ||
364 | void saveSettings(); | 368 | void saveSettings(); |
365 | 369 | ||
366 | private slots: | 370 | private slots: |
367 | void updateToolBar(); | 371 | void updateToolBar(); |
368 | void updateMainWindow(); | 372 | void updateMainWindow(); |
369 | void receive( const QCString& cmsg, const QByteArray& data ); | 373 | void receive( const Q3CString& cmsg, const QByteArray& data ); |
370 | void receiveStart( const QCString& cmsg, const QByteArray& data ); | 374 | void receiveStart( const Q3CString& cmsg, const QByteArray& data ); |
371 | void toggleBeamReceive( ); | 375 | void toggleBeamReceive( ); |
372 | void disableBR(bool); | 376 | void disableBR(bool); |
373 | void setJumpButtonBarVisible( bool visible ); | 377 | void setJumpButtonBarVisible( bool visible ); |
374 | void setJumpButtonBar( bool visible ); | 378 | void setJumpButtonBar( bool visible ); |
375 | void setCaptionBack(); | 379 | void setCaptionBack(); |
376 | void resizeAndCallContactdialog(); | 380 | void resizeAndCallContactdialog(); |
377 | void callContactdialog(); | 381 | void callContactdialog(); |
378 | void doRingSync(); | 382 | void doRingSync(); |
379 | 383 | ||
380 | void importFromOL(); | 384 | void importFromOL(); |
381 | void extensionModified( const KABC::Addressee::List &list ); | 385 | void extensionModified( const KABC::Addressee::List &list ); |
382 | void extensionChanged( int id ); | 386 | void extensionChanged( int id ); |
383 | void clipboardDataChanged(); | 387 | void clipboardDataChanged(); |
384 | void updateActionMenu(); | 388 | void updateActionMenu(); |
385 | void configureKeyBindings(); | 389 | void configureKeyBindings(); |
386 | void removeVoice(); | 390 | void removeVoice(); |
387 | void setFormattedName(); | 391 | void setFormattedName(); |
388 | #ifdef KAB_EMBEDDED | 392 | #ifdef KAB_EMBEDDED |
389 | void configureResources(); | 393 | void configureResources(); |
390 | #endif //KAB_EMBEDDED | 394 | #endif //KAB_EMBEDDED |
391 | 395 | ||
392 | void slotEditorDestroyed( const QString &uid ); | 396 | void slotEditorDestroyed( const QString &uid ); |
393 | void configurationChanged(); | 397 | void configurationChanged(); |
394 | void addressBookChanged(); | 398 | void addressBookChanged(); |
395 | 399 | ||
396 | private: | 400 | private: |
397 | QCString mCStringMess; | 401 | Q3CString mCStringMess; |
398 | QByteArray mByteData; | 402 | QByteArray mByteData; |
399 | QString mEmailSourceChannel; | 403 | QString mEmailSourceChannel; |
400 | QString mEmailSourceUID; | 404 | QString mEmailSourceUID; |
401 | void resizeEvent(QResizeEvent* e ); | 405 | void resizeEvent(QResizeEvent* e ); |
402 | bool mBRdisabled; | 406 | bool mBRdisabled; |
403 | #ifndef DESKTOP_VERSION | 407 | #ifndef DESKTOP_VERSION |
404 | QCopChannel* infrared; | 408 | QCopChannel* infrared; |
405 | #endif | 409 | #endif |
406 | QTimer *mMessageTimer; | 410 | QTimer *mMessageTimer; |
407 | void initGUI(); | 411 | void initGUI(); |
408 | void initActions(); | 412 | void initActions(); |
409 | QString getPhoneFile(); | 413 | QString getPhoneFile(); |
410 | 414 | ||
411 | AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent, | 415 | AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent, |
412 | const char *name = 0 ); | 416 | const char *name = 0 ); |
413 | 417 | ||
414 | KXMLGUIClient *mGUIClient; | 418 | KXMLGUIClient *mGUIClient; |
415 | 419 | ||
416 | KABC::AddressBook *mAddressBook; | 420 | KABC::AddressBook *mAddressBook; |
417 | 421 | ||
418 | ViewManager *mViewManager; | 422 | ViewManager *mViewManager; |
419 | // QSplitter *mDetailsSplitter; | 423 | // QSplitter *mDetailsSplitter; |
420 | KDGanttMinimizeSplitter *mExtensionBarSplitter; | 424 | KDGanttMinimizeSplitter *mExtensionBarSplitter; |
421 | ViewContainer *mDetails; | 425 | ViewContainer *mDetails; |
422 | KDGanttMinimizeSplitter* mMiniSplitter; | 426 | KDGanttMinimizeSplitter* mMiniSplitter; |
423 | XXPortManager *mXXPortManager; | 427 | XXPortManager *mXXPortManager; |
424 | JumpButtonBar *mJumpButtonBar; | 428 | JumpButtonBar *mJumpButtonBar; |
425 | IncSearchWidget *mIncSearchWidget; | 429 | IncSearchWidget *mIncSearchWidget; |
426 | ExtensionManager *mExtensionManager; | 430 | ExtensionManager *mExtensionManager; |
427 | 431 | ||
428 | KCMultiDialog *mConfigureDialog; | 432 | KCMultiDialog *mConfigureDialog; |
429 | 433 | ||
@@ -457,84 +461,84 @@ class KABCore : public QWidget, public KSyncInterface | |||
457 | KAction *mActionCopy; | 461 | KAction *mActionCopy; |
458 | KAction *mActionCut; | 462 | KAction *mActionCut; |
459 | KAction *mActionPaste; | 463 | KAction *mActionPaste; |
460 | KAction *mActionSelectAll; | 464 | KAction *mActionSelectAll; |
461 | KAction *mActionUndo; | 465 | KAction *mActionUndo; |
462 | KAction *mActionRedo; | 466 | KAction *mActionRedo; |
463 | KAction *mActionDelete; | 467 | KAction *mActionDelete; |
464 | 468 | ||
465 | //US settings menu | 469 | //US settings menu |
466 | KAction *mActionConfigResources; | 470 | KAction *mActionConfigResources; |
467 | KAction *mActionConfigGlobal; | 471 | KAction *mActionConfigGlobal; |
468 | KAction *mActionConfigKAddressbook; | 472 | KAction *mActionConfigKAddressbook; |
469 | KAction *mActionConfigShortcuts; | 473 | KAction *mActionConfigShortcuts; |
470 | KAction *mActionConfigureToolbars; | 474 | KAction *mActionConfigureToolbars; |
471 | KAction *mActionKeyBindings; | 475 | KAction *mActionKeyBindings; |
472 | KToggleAction *mActionJumpBar; | 476 | KToggleAction *mActionJumpBar; |
473 | KToggleAction *mActionDetails; | 477 | KToggleAction *mActionDetails; |
474 | KAction *mActionWhoAmI; | 478 | KAction *mActionWhoAmI; |
475 | KAction *mActionCategories; | 479 | KAction *mActionCategories; |
476 | KAction *mActionEditCategories; | 480 | KAction *mActionEditCategories; |
477 | KAction *mActionManageCategories; | 481 | KAction *mActionManageCategories; |
478 | KAction *mActionAboutKAddressbook; | 482 | KAction *mActionAboutKAddressbook; |
479 | KAction *mActionLicence; | 483 | KAction *mActionLicence; |
480 | KAction *mActionFaq; | 484 | KAction *mActionFaq; |
481 | KAction *mActionWN; | 485 | KAction *mActionWN; |
482 | KAction *mActionSyncHowto; | 486 | KAction *mActionSyncHowto; |
483 | KAction *mActionStorageHowto; | 487 | KAction *mActionStorageHowto; |
484 | KAction *mActionKdeSyncHowto; | 488 | KAction *mActionKdeSyncHowto; |
485 | KAction *mActionMultiSyncHowto; | 489 | KAction *mActionMultiSyncHowto; |
486 | 490 | ||
487 | KAction *mActionDeleteView; | 491 | KAction *mActionDeleteView; |
488 | 492 | ||
489 | QPopupMenu *viewMenu; | 493 | Q3PopupMenu *viewMenu; |
490 | QPopupMenu *filterMenu; | 494 | Q3PopupMenu *filterMenu; |
491 | QPopupMenu *settingsMenu; | 495 | Q3PopupMenu *settingsMenu; |
492 | QPopupMenu *changeMenu; | 496 | Q3PopupMenu *changeMenu; |
493 | QPopupMenu *beamMenu; | 497 | Q3PopupMenu *beamMenu; |
494 | //US QAction *mActionSave; | 498 | //US QAction *mActionSave; |
495 | QPopupMenu *ImportMenu; | 499 | Q3PopupMenu *ImportMenu; |
496 | QPopupMenu *ExportMenu; | 500 | Q3PopupMenu *ExportMenu; |
497 | //LR additional methods | 501 | //LR additional methods |
498 | KAction *mActionRemoveVoice; | 502 | KAction *mActionRemoveVoice; |
499 | KAction *mActionSetFormattedName; | 503 | KAction *mActionSetFormattedName; |
500 | KAction * mActionImportOL; | 504 | KAction * mActionImportOL; |
501 | 505 | ||
502 | #ifndef KAB_EMBEDDED | 506 | #ifndef KAB_EMBEDDED |
503 | KAddressBookService *mAddressBookService; | 507 | KAddressBookService *mAddressBookService; |
504 | #endif //KAB_EMBEDDED | 508 | #endif //KAB_EMBEDDED |
505 | 509 | ||
506 | class KABCorePrivate; | 510 | class KABCorePrivate; |
507 | KABCorePrivate *d; | 511 | KABCorePrivate *d; |
508 | //US bool mBlockSaveFlag; | 512 | //US bool mBlockSaveFlag; |
509 | 513 | ||
510 | #ifdef KAB_EMBEDDED | 514 | #ifdef KAB_EMBEDDED |
511 | KAddressBookMain *mMainWindow; // should be the same like mGUIClient | 515 | KAddressBookMain *mMainWindow; // should be the same like mGUIClient |
512 | #endif //KAB_EMBEDDED | 516 | #endif //KAB_EMBEDDED |
513 | 517 | ||
514 | //this are the overwritten callbackmethods from the syncinterface | 518 | //this are the overwritten callbackmethods from the syncinterface |
515 | virtual bool sync(KSyncManager* manager, QString filename, int mode,QString resource); | 519 | virtual bool sync(KSyncManager* manager, QString filename, int mode,QString resource); |
516 | virtual bool syncExternal(KSyncManager* manager, QString resource); | 520 | virtual bool syncExternal(KSyncManager* manager, QString resource); |
517 | virtual void removeSyncInfo( QString syncProfile); | 521 | virtual void removeSyncInfo( QString syncProfile); |
518 | bool readOLdata( KABC::AddressBook* local ); | 522 | bool readOLdata( KABC::AddressBook* local ); |
519 | bool writeOLdata( KABC::AddressBook* local ); | 523 | bool writeOLdata( KABC::AddressBook* local ); |
520 | bool syncOL(); | 524 | bool syncOL(); |
521 | bool syncPhone(); | 525 | bool syncPhone(); |
522 | void message( QString m , bool startTimer = true); | 526 | void message( QString m , bool startTimer = true); |
523 | 527 | ||
524 | // LR ******************************* | 528 | // LR ******************************* |
525 | // sync stuff! | 529 | // sync stuff! |
526 | QString sentSyncFile(); | 530 | QString sentSyncFile(); |
527 | QPopupMenu *syncMenu; | 531 | Q3PopupMenu *syncMenu; |
528 | KSyncManager* syncManager; | 532 | KSyncManager* syncManager; |
529 | int mGlobalSyncMode; | 533 | int mGlobalSyncMode; |
530 | bool synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBook* remote,int mode); | 534 | bool synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBook* remote,int mode); |
531 | KABC::Addressee getLastSyncAddressee(); | 535 | KABC::Addressee getLastSyncAddressee(); |
532 | QDateTime mLastAddressbookSync; | 536 | QDateTime mLastAddressbookSync; |
533 | int takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, int mode , bool full ); | 537 | int takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, int mode , bool full ); |
534 | // ********************* | 538 | // ********************* |
535 | //OL sync stuff | 539 | //OL sync stuff |
536 | QString mOLsyncFolderID; | 540 | QString mOLsyncFolderID; |
537 | 541 | ||
538 | }; | 542 | }; |
539 | 543 | ||
540 | #endif | 544 | #endif |