-rw-r--r-- | kaddressbook/kabcore.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index bf5398b..d2ee45d 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h | |||
@@ -199,96 +199,97 @@ class KABCore : public QWidget, public KSyncInterface | |||
199 | void selectAllContacts(); | 199 | void selectAllContacts(); |
200 | 200 | ||
201 | /** | 201 | /** |
202 | Deletes all selected contacts from the address book. | 202 | Deletes all selected contacts from the address book. |
203 | */ | 203 | */ |
204 | void deleteContacts(); | 204 | void deleteContacts(); |
205 | 205 | ||
206 | /** | 206 | /** |
207 | Deletes given contacts from the address book. | 207 | Deletes given contacts from the address book. |
208 | 208 | ||
209 | @param uids The uids of the contacts, which shall be deleted. | 209 | @param uids The uids of the contacts, which shall be deleted. |
210 | */ | 210 | */ |
211 | void deleteContacts( const QStringList &uids ); | 211 | void deleteContacts( const QStringList &uids ); |
212 | 212 | ||
213 | /** | 213 | /** |
214 | Copys the selected contacts into clipboard for later pasting. | 214 | Copys the selected contacts into clipboard for later pasting. |
215 | */ | 215 | */ |
216 | void copyContacts(); | 216 | void copyContacts(); |
217 | 217 | ||
218 | /** | 218 | /** |
219 | Cuts the selected contacts and stores them for later pasting. | 219 | Cuts the selected contacts and stores them for later pasting. |
220 | */ | 220 | */ |
221 | void cutContacts(); | 221 | void cutContacts(); |
222 | 222 | ||
223 | /** | 223 | /** |
224 | Paste contacts from clipboard into the address book. | 224 | Paste contacts from clipboard into the address book. |
225 | */ | 225 | */ |
226 | void pasteContacts(); | 226 | void pasteContacts(); |
227 | 227 | ||
228 | /** | 228 | /** |
229 | Paste given contacts into the address book. | 229 | Paste given contacts into the address book. |
230 | 230 | ||
231 | @param list The list of addressee, which shall be pasted. | 231 | @param list The list of addressee, which shall be pasted. |
232 | */ | 232 | */ |
233 | void pasteContacts( KABC::Addressee::List &list ); | 233 | void pasteContacts( KABC::Addressee::List &list ); |
234 | 234 | ||
235 | /** | 235 | /** |
236 | Sets the whoAmI contact, that is used by many other programs to | 236 | Sets the whoAmI contact, that is used by many other programs to |
237 | get personal information about the current user. | 237 | get personal information about the current user. |
238 | */ | 238 | */ |
239 | void setWhoAmI(); | 239 | void setWhoAmI(); |
240 | 240 | ||
241 | /** | 241 | /** |
242 | Displays the category dialog and applies the result to all | 242 | Displays the category dialog and applies the result to all |
243 | selected contacts. | 243 | selected contacts. |
244 | */ | 244 | */ |
245 | void setCategories(); | 245 | void setCategories(); |
246 | void manageCategories(); | 246 | void manageCategories(); |
247 | void editCategories(); | ||
247 | 248 | ||
248 | /** | 249 | /** |
249 | Sets the field list of the Incremental Search Widget. | 250 | Sets the field list of the Incremental Search Widget. |
250 | */ | 251 | */ |
251 | void setSearchFields( const KABC::Field::List &fields ); | 252 | void setSearchFields( const KABC::Field::List &fields ); |
252 | 253 | ||
253 | /** | 254 | /** |
254 | Search with the current search field for a contact, that matches | 255 | Search with the current search field for a contact, that matches |
255 | the given text, and selects it in the view. | 256 | the given text, and selects it in the view. |
256 | */ | 257 | */ |
257 | void incrementalSearch( const QString& text ); | 258 | void incrementalSearch( const QString& text ); |
258 | 259 | ||
259 | /** | 260 | /** |
260 | Marks the address book as modified. | 261 | Marks the address book as modified. |
261 | */ | 262 | */ |
262 | void setModified(); | 263 | void setModified(); |
263 | /** | 264 | /** |
264 | Marks the address book as modified without refreshing the view. | 265 | Marks the address book as modified without refreshing the view. |
265 | */ | 266 | */ |
266 | void setModifiedWOrefresh(); | 267 | void setModifiedWOrefresh(); |
267 | 268 | ||
268 | /** | 269 | /** |
269 | Marks the address book as modified concerning the argument. | 270 | Marks the address book as modified concerning the argument. |
270 | */ | 271 | */ |
271 | void setModified( bool modified ); | 272 | void setModified( bool modified ); |
272 | 273 | ||
273 | /** | 274 | /** |
274 | Returns whether the address book is modified. | 275 | Returns whether the address book is modified. |
275 | */ | 276 | */ |
276 | bool modified() const; | 277 | bool modified() const; |
277 | 278 | ||
278 | /** | 279 | /** |
279 | Called whenever an contact is modified in the contact editor | 280 | Called whenever an contact is modified in the contact editor |
280 | dialog or the quick edit. | 281 | dialog or the quick edit. |
281 | */ | 282 | */ |
282 | void contactModified( const KABC::Addressee &addr ); | 283 | void contactModified( const KABC::Addressee &addr ); |
283 | 284 | ||
284 | /** | 285 | /** |
285 | DCOP METHODS. | 286 | DCOP METHODS. |
286 | */ | 287 | */ |
287 | void addEmail( QString addr ); | 288 | void addEmail( QString addr ); |
288 | void importVCard( const KURL& url, bool showPreview ); | 289 | void importVCard( const KURL& url, bool showPreview ); |
289 | void importVCard( const QString& vCard, bool showPreview ); | 290 | void importVCard( const QString& vCard, bool showPreview ); |
290 | void newContact(); | 291 | void newContact(); |
291 | QString getNameByPhone( const QString& phone ); | 292 | QString getNameByPhone( const QString& phone ); |
292 | /** | 293 | /** |
293 | END DCOP METHODS | 294 | END DCOP METHODS |
294 | */ | 295 | */ |
@@ -407,96 +408,97 @@ class KABCore : public QWidget, public KSyncInterface | |||
407 | ExtensionManager *mExtensionManager; | 408 | ExtensionManager *mExtensionManager; |
408 | 409 | ||
409 | KCMultiDialog *mConfigureDialog; | 410 | KCMultiDialog *mConfigureDialog; |
410 | 411 | ||
411 | #ifndef KAB_EMBEDDED | 412 | #ifndef KAB_EMBEDDED |
412 | LDAPSearchDialog *mLdapSearchDialog; | 413 | LDAPSearchDialog *mLdapSearchDialog; |
413 | #endif //KAB_EMBEDDED | 414 | #endif //KAB_EMBEDDED |
414 | // QDict<AddresseeEditorDialog> mEditorDict; | 415 | // QDict<AddresseeEditorDialog> mEditorDict; |
415 | AddresseeEditorDialog *mEditorDialog; | 416 | AddresseeEditorDialog *mEditorDialog; |
416 | bool mReadWrite; | 417 | bool mReadWrite; |
417 | bool mModified; | 418 | bool mModified; |
418 | bool mIsPart; | 419 | bool mIsPart; |
419 | bool mMultipleViewsAtOnce; | 420 | bool mMultipleViewsAtOnce; |
420 | 421 | ||
421 | 422 | ||
422 | //US file menu | 423 | //US file menu |
423 | KAction *mActionMail; | 424 | KAction *mActionMail; |
424 | KAction *mActionBeam; | 425 | KAction *mActionBeam; |
425 | KToggleAction *mActionBR; | 426 | KToggleAction *mActionBR; |
426 | KAction *mActionExport2phone; | 427 | KAction *mActionExport2phone; |
427 | KAction* mActionPrint; | 428 | KAction* mActionPrint; |
428 | KAction* mActionNewContact; | 429 | KAction* mActionNewContact; |
429 | KAction *mActionSave; | 430 | KAction *mActionSave; |
430 | KAction *mActionEditAddressee; | 431 | KAction *mActionEditAddressee; |
431 | KAction *mActionMailVCard; | 432 | KAction *mActionMailVCard; |
432 | KAction *mActionBeamVCard; | 433 | KAction *mActionBeamVCard; |
433 | 434 | ||
434 | KAction *mActionQuit; | 435 | KAction *mActionQuit; |
435 | 436 | ||
436 | //US edit menu | 437 | //US edit menu |
437 | KAction *mActionCopy; | 438 | KAction *mActionCopy; |
438 | KAction *mActionCut; | 439 | KAction *mActionCut; |
439 | KAction *mActionPaste; | 440 | KAction *mActionPaste; |
440 | KAction *mActionSelectAll; | 441 | KAction *mActionSelectAll; |
441 | KAction *mActionUndo; | 442 | KAction *mActionUndo; |
442 | KAction *mActionRedo; | 443 | KAction *mActionRedo; |
443 | KAction *mActionDelete; | 444 | KAction *mActionDelete; |
444 | 445 | ||
445 | //US settings menu | 446 | //US settings menu |
446 | KAction *mActionConfigResources; | 447 | KAction *mActionConfigResources; |
447 | KAction *mActionConfigKAddressbook; | 448 | KAction *mActionConfigKAddressbook; |
448 | KAction *mActionConfigShortcuts; | 449 | KAction *mActionConfigShortcuts; |
449 | KAction *mActionConfigureToolbars; | 450 | KAction *mActionConfigureToolbars; |
450 | KAction *mActionKeyBindings; | 451 | KAction *mActionKeyBindings; |
451 | KToggleAction *mActionJumpBar; | 452 | KToggleAction *mActionJumpBar; |
452 | KToggleAction *mActionDetails; | 453 | KToggleAction *mActionDetails; |
453 | KAction *mActionWhoAmI; | 454 | KAction *mActionWhoAmI; |
454 | KAction *mActionCategories; | 455 | KAction *mActionCategories; |
456 | KAction *mActionEditCategories; | ||
455 | KAction *mActionManageCategories; | 457 | KAction *mActionManageCategories; |
456 | KAction *mActionAboutKAddressbook; | 458 | KAction *mActionAboutKAddressbook; |
457 | KAction *mActionLicence; | 459 | KAction *mActionLicence; |
458 | KAction *mActionFaq; | 460 | KAction *mActionFaq; |
459 | KAction *mActionWN; | 461 | KAction *mActionWN; |
460 | KAction *mActionSyncHowto; | 462 | KAction *mActionSyncHowto; |
461 | KAction *mActionKdeSyncHowto; | 463 | KAction *mActionKdeSyncHowto; |
462 | KAction *mActionMultiSyncHowto; | 464 | KAction *mActionMultiSyncHowto; |
463 | 465 | ||
464 | KAction *mActionDeleteView; | 466 | KAction *mActionDeleteView; |
465 | 467 | ||
466 | QPopupMenu *viewMenu; | 468 | QPopupMenu *viewMenu; |
467 | QPopupMenu *filterMenu; | 469 | QPopupMenu *filterMenu; |
468 | QPopupMenu *settingsMenu; | 470 | QPopupMenu *settingsMenu; |
469 | QPopupMenu *changeMenu; | 471 | QPopupMenu *changeMenu; |
470 | //US QAction *mActionSave; | 472 | //US QAction *mActionSave; |
471 | QPopupMenu *ImportMenu; | 473 | QPopupMenu *ImportMenu; |
472 | QPopupMenu *ExportMenu; | 474 | QPopupMenu *ExportMenu; |
473 | //LR additional methods | 475 | //LR additional methods |
474 | KAction *mActionRemoveVoice; | 476 | KAction *mActionRemoveVoice; |
475 | KAction * mActionImportOL; | 477 | KAction * mActionImportOL; |
476 | 478 | ||
477 | #ifndef KAB_EMBEDDED | 479 | #ifndef KAB_EMBEDDED |
478 | KAddressBookService *mAddressBookService; | 480 | KAddressBookService *mAddressBookService; |
479 | #endif //KAB_EMBEDDED | 481 | #endif //KAB_EMBEDDED |
480 | 482 | ||
481 | class KABCorePrivate; | 483 | class KABCorePrivate; |
482 | KABCorePrivate *d; | 484 | KABCorePrivate *d; |
483 | //US bool mBlockSaveFlag; | 485 | //US bool mBlockSaveFlag; |
484 | 486 | ||
485 | #ifdef KAB_EMBEDDED | 487 | #ifdef KAB_EMBEDDED |
486 | KAddressBookMain *mMainWindow; // should be the same like mGUIClient | 488 | KAddressBookMain *mMainWindow; // should be the same like mGUIClient |
487 | #endif //KAB_EMBEDDED | 489 | #endif //KAB_EMBEDDED |
488 | 490 | ||
489 | //this are the overwritten callbackmethods from the syncinterface | 491 | //this are the overwritten callbackmethods from the syncinterface |
490 | virtual bool sync(KSyncManager* manager, QString filename, int mode); | 492 | virtual bool sync(KSyncManager* manager, QString filename, int mode); |
491 | virtual bool syncExternal(KSyncManager* manager, QString resource); | 493 | virtual bool syncExternal(KSyncManager* manager, QString resource); |
492 | virtual void removeSyncInfo( QString syncProfile); | 494 | virtual void removeSyncInfo( QString syncProfile); |
493 | bool syncPhone(); | 495 | bool syncPhone(); |
494 | void message( QString m ); | 496 | void message( QString m ); |
495 | 497 | ||
496 | // LR ******************************* | 498 | // LR ******************************* |
497 | // sync stuff! | 499 | // sync stuff! |
498 | QString sentSyncFile(); | 500 | QString sentSyncFile(); |
499 | QPopupMenu *syncMenu; | 501 | QPopupMenu *syncMenu; |
500 | KSyncManager* syncManager; | 502 | KSyncManager* syncManager; |
501 | int mGlobalSyncMode; | 503 | int mGlobalSyncMode; |
502 | bool synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBook* remote,int mode); | 504 | bool synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBook* remote,int mode); |