-rw-r--r-- | kaddressbook/kabcore.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h index c185117..47ea152 100644 --- a/kaddressbook/kabcore.h +++ b/kaddressbook/kabcore.h | |||
@@ -275,209 +275,213 @@ class KABCore : public QWidget, public KSyncInterface | |||
275 | 275 | ||
276 | /** | 276 | /** |
277 | Called whenever an contact is modified in the contact editor | 277 | Called whenever an contact is modified in the contact editor |
278 | dialog or the quick edit. | 278 | dialog or the quick edit. |
279 | */ | 279 | */ |
280 | void contactModified( const KABC::Addressee &addr ); | 280 | void contactModified( const KABC::Addressee &addr ); |
281 | void addrModified( const KABC::Addressee &addr, bool updateDetails = true ); | 281 | void addrModified( const KABC::Addressee &addr, bool updateDetails = true ); |
282 | 282 | ||
283 | /** | 283 | /** |
284 | DCOP METHODS. | 284 | DCOP METHODS. |
285 | */ | 285 | */ |
286 | void addEmail( QString addr ); | 286 | void addEmail( QString addr ); |
287 | void importVCard( const KURL& url, bool showPreview ); | 287 | void importVCard( const KURL& url, bool showPreview ); |
288 | void importVCard( const QString& vCard, bool showPreview ); | 288 | void importVCard( const QString& vCard, bool showPreview ); |
289 | void newContact(); | 289 | void newContact(); |
290 | QString getNameByPhone( const QString& phone ); | 290 | QString getNameByPhone( const QString& phone ); |
291 | /** | 291 | /** |
292 | END DCOP METHODS | 292 | END DCOP METHODS |
293 | */ | 293 | */ |
294 | 294 | ||
295 | /** | 295 | /** |
296 | Saves the contents of the AddressBook back to disk. | 296 | Saves the contents of the AddressBook back to disk. |
297 | */ | 297 | */ |
298 | void save(); | 298 | void save(); |
299 | 299 | ||
300 | /** | 300 | /** |
301 | Undos the last command using the undo stack. | 301 | Undos the last command using the undo stack. |
302 | */ | 302 | */ |
303 | void undo(); | 303 | void undo(); |
304 | 304 | ||
305 | /** | 305 | /** |
306 | Redos the last command that was undone, using the redo stack. | 306 | Redos the last command that was undone, using the redo stack. |
307 | */ | 307 | */ |
308 | void redo(); | 308 | void redo(); |
309 | 309 | ||
310 | /** | 310 | /** |
311 | Shows the edit dialog for the given uid. If the uid is QString::null, | 311 | Shows the edit dialog for the given uid. If the uid is QString::null, |
312 | the method will try to find a selected addressee in the view. | 312 | the method will try to find a selected addressee in the view. |
313 | */ | 313 | */ |
314 | void editContact( const QString &uid /*US = QString::null*/ ); | 314 | void editContact( const QString &uid /*US = QString::null*/ ); |
315 | //US added a second method without defaultparameter | 315 | //US added a second method without defaultparameter |
316 | void editContact2(); | 316 | void editContact2(); |
317 | 317 | ||
318 | /** | 318 | /** |
319 | Shows or edits the detail view for the given uid. If the uid is QString::null, | 319 | Shows or edits the detail view for the given uid. If the uid is QString::null, |
320 | the method will try to find a selected addressee in the view. | 320 | the method will try to find a selected addressee in the view. |
321 | */ | 321 | */ |
322 | void executeContact( const QString &uid /*US = QString::null*/ ); | 322 | void executeContact( const QString &uid /*US = QString::null*/ ); |
323 | 323 | ||
324 | /** | 324 | /** |
325 | Launches the configuration dialog. | 325 | Launches the configuration dialog. |
326 | */ | 326 | */ |
327 | void openConfigDialog(); | 327 | void openConfigDialog(); |
328 | 328 | ||
329 | /** | 329 | /** |
330 | Launches the ldap search dialog. | 330 | Launches the ldap search dialog. |
331 | */ | 331 | */ |
332 | void openLDAPDialog(); | 332 | void openLDAPDialog(); |
333 | 333 | ||
334 | /** | 334 | /** |
335 | Creates a KAddressBookPrinter, which will display the print | 335 | Creates a KAddressBookPrinter, which will display the print |
336 | dialog and do the printing. | 336 | dialog and do the printing. |
337 | */ | 337 | */ |
338 | void print(); | 338 | void print(); |
339 | 339 | ||
340 | /** | 340 | /** |
341 | Registers a new GUI client, so plugins can register its actions. | 341 | Registers a new GUI client, so plugins can register its actions. |
342 | */ | 342 | */ |
343 | void addGUIClient( KXMLGUIClient *client ); | 343 | void addGUIClient( KXMLGUIClient *client ); |
344 | 344 | ||
345 | void requestForNameEmailUidList(const QString& sourceChannel, const QString& sessionuid); | 345 | void requestForNameEmailUidList(const QString& sourceChannel, const QString& sessionuid); |
346 | void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid); | 346 | void requestForDetails(const QString& sourceChannel, const QString& sessionuid, const QString& name, const QString& email, const QString& uid); |
347 | void requestForBirthdayList(const QString& sourceChannel, const QString& sessionuid); | 347 | void requestForBirthdayList(const QString& sourceChannel, const QString& sessionuid); |
348 | 348 | ||
349 | 349 | ||
350 | signals: | 350 | signals: |
351 | void contactSelected( const QString &name ); | 351 | void contactSelected( const QString &name ); |
352 | void contactSelected( const QPixmap &pixmap ); | 352 | void contactSelected( const QPixmap &pixmap ); |
353 | public slots: | 353 | public slots: |
354 | void recieve(QString cmsg ); | 354 | void recieve(QString cmsg ); |
355 | void getFile( bool success ); | 355 | void getFile( bool success ); |
356 | void syncFileRequest(); | 356 | void syncFileRequest(); |
357 | void setDetailsVisible( bool visible ); | 357 | void setDetailsVisible( bool visible ); |
358 | void setDetailsToState(); | 358 | void setDetailsToState(); |
359 | 359 | ||
360 | void saveSettings(); | 360 | void saveSettings(); |
361 | 361 | ||
362 | private slots: | 362 | private slots: |
363 | void updateToolBar(); | 363 | void updateToolBar(); |
364 | void updateMainWindow(); | 364 | void updateMainWindow(); |
365 | void receive( const QCString& cmsg, const QByteArray& data ); | 365 | void receive( const QCString& cmsg, const QByteArray& data ); |
366 | void toggleBeamReceive( ); | 366 | void toggleBeamReceive( ); |
367 | void disableBR(bool); | 367 | void disableBR(bool); |
368 | void setJumpButtonBarVisible( bool visible ); | 368 | void setJumpButtonBarVisible( bool visible ); |
369 | void setJumpButtonBar( bool visible ); | 369 | void setJumpButtonBar( bool visible ); |
370 | void setCaptionBack(); | 370 | void setCaptionBack(); |
371 | void resizeAndCallContactdialog(); | ||
372 | void callContactdialog(); | ||
373 | |||
371 | void importFromOL(); | 374 | void importFromOL(); |
372 | void extensionModified( const KABC::Addressee::List &list ); | 375 | void extensionModified( const KABC::Addressee::List &list ); |
373 | void extensionChanged( int id ); | 376 | void extensionChanged( int id ); |
374 | void clipboardDataChanged(); | 377 | void clipboardDataChanged(); |
375 | void updateActionMenu(); | 378 | void updateActionMenu(); |
376 | void configureKeyBindings(); | 379 | void configureKeyBindings(); |
377 | void removeVoice(); | 380 | void removeVoice(); |
378 | void setFormattedName(); | 381 | void setFormattedName(); |
379 | #ifdef KAB_EMBEDDED | 382 | #ifdef KAB_EMBEDDED |
380 | void configureResources(); | 383 | void configureResources(); |
381 | #endif //KAB_EMBEDDED | 384 | #endif //KAB_EMBEDDED |
382 | 385 | ||
383 | void slotEditorDestroyed( const QString &uid ); | 386 | void slotEditorDestroyed( const QString &uid ); |
384 | void configurationChanged(); | 387 | void configurationChanged(); |
385 | void addressBookChanged(); | 388 | void addressBookChanged(); |
386 | 389 | ||
387 | private: | 390 | private: |
391 | QString mEmailSourceChannel; | ||
388 | void resizeEvent(QResizeEvent* e ); | 392 | void resizeEvent(QResizeEvent* e ); |
389 | bool mBRdisabled; | 393 | bool mBRdisabled; |
390 | #ifndef DESKTOP_VERSION | 394 | #ifndef DESKTOP_VERSION |
391 | QCopChannel* infrared; | 395 | QCopChannel* infrared; |
392 | #endif | 396 | #endif |
393 | QTimer *mMessageTimer; | 397 | QTimer *mMessageTimer; |
394 | void initGUI(); | 398 | void initGUI(); |
395 | void initActions(); | 399 | void initActions(); |
396 | QString getPhoneFile(); | 400 | QString getPhoneFile(); |
397 | 401 | ||
398 | AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent, | 402 | AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent, |
399 | const char *name = 0 ); | 403 | const char *name = 0 ); |
400 | 404 | ||
401 | KXMLGUIClient *mGUIClient; | 405 | KXMLGUIClient *mGUIClient; |
402 | 406 | ||
403 | KABC::AddressBook *mAddressBook; | 407 | KABC::AddressBook *mAddressBook; |
404 | 408 | ||
405 | ViewManager *mViewManager; | 409 | ViewManager *mViewManager; |
406 | // QSplitter *mDetailsSplitter; | 410 | // QSplitter *mDetailsSplitter; |
407 | KDGanttMinimizeSplitter *mExtensionBarSplitter; | 411 | KDGanttMinimizeSplitter *mExtensionBarSplitter; |
408 | ViewContainer *mDetails; | 412 | ViewContainer *mDetails; |
409 | KDGanttMinimizeSplitter* mMiniSplitter; | 413 | KDGanttMinimizeSplitter* mMiniSplitter; |
410 | XXPortManager *mXXPortManager; | 414 | XXPortManager *mXXPortManager; |
411 | JumpButtonBar *mJumpButtonBar; | 415 | JumpButtonBar *mJumpButtonBar; |
412 | IncSearchWidget *mIncSearchWidget; | 416 | IncSearchWidget *mIncSearchWidget; |
413 | ExtensionManager *mExtensionManager; | 417 | ExtensionManager *mExtensionManager; |
414 | 418 | ||
415 | KCMultiDialog *mConfigureDialog; | 419 | KCMultiDialog *mConfigureDialog; |
416 | 420 | ||
417 | #ifndef KAB_EMBEDDED | 421 | #ifndef KAB_EMBEDDED |
418 | LDAPSearchDialog *mLdapSearchDialog; | 422 | LDAPSearchDialog *mLdapSearchDialog; |
419 | #endif //KAB_EMBEDDED | 423 | #endif //KAB_EMBEDDED |
420 | // QDict<AddresseeEditorDialog> mEditorDict; | 424 | // QDict<AddresseeEditorDialog> mEditorDict; |
421 | AddresseeEditorDialog *mEditorDialog; | 425 | AddresseeEditorDialog *mEditorDialog; |
422 | bool mReadWrite; | 426 | bool mReadWrite; |
423 | bool mModified; | 427 | bool mModified; |
424 | bool mIsPart; | 428 | bool mIsPart; |
425 | bool mMultipleViewsAtOnce; | 429 | bool mMultipleViewsAtOnce; |
426 | 430 | ||
427 | 431 | ||
428 | //US file menu | 432 | //US file menu |
429 | KAction *mActionMail; | 433 | KAction *mActionMail; |
430 | KAction *mActionBeam; | 434 | KAction *mActionBeam; |
431 | KToggleAction *mActionBR; | 435 | KToggleAction *mActionBR; |
432 | KAction *mActionExport2phone; | 436 | KAction *mActionExport2phone; |
433 | KAction* mActionPrint; | 437 | KAction* mActionPrint; |
434 | KAction* mActionPrintDetails; | 438 | KAction* mActionPrintDetails; |
435 | KAction* mActionNewContact; | 439 | KAction* mActionNewContact; |
436 | KAction *mActionSave; | 440 | KAction *mActionSave; |
437 | KAction *mActionEditAddressee; | 441 | KAction *mActionEditAddressee; |
438 | KAction *mActionMailVCard; | 442 | KAction *mActionMailVCard; |
439 | KAction *mActionBeamVCard; | 443 | KAction *mActionBeamVCard; |
440 | 444 | ||
441 | KAction *mActionQuit; | 445 | KAction *mActionQuit; |
442 | 446 | ||
443 | //US edit menu | 447 | //US edit menu |
444 | KAction *mActionCopy; | 448 | KAction *mActionCopy; |
445 | KAction *mActionCut; | 449 | KAction *mActionCut; |
446 | KAction *mActionPaste; | 450 | KAction *mActionPaste; |
447 | KAction *mActionSelectAll; | 451 | KAction *mActionSelectAll; |
448 | KAction *mActionUndo; | 452 | KAction *mActionUndo; |
449 | KAction *mActionRedo; | 453 | KAction *mActionRedo; |
450 | KAction *mActionDelete; | 454 | KAction *mActionDelete; |
451 | 455 | ||
452 | //US settings menu | 456 | //US settings menu |
453 | KAction *mActionConfigResources; | 457 | KAction *mActionConfigResources; |
454 | KAction *mActionConfigKAddressbook; | 458 | KAction *mActionConfigKAddressbook; |
455 | KAction *mActionConfigShortcuts; | 459 | KAction *mActionConfigShortcuts; |
456 | KAction *mActionConfigureToolbars; | 460 | KAction *mActionConfigureToolbars; |
457 | KAction *mActionKeyBindings; | 461 | KAction *mActionKeyBindings; |
458 | KToggleAction *mActionJumpBar; | 462 | KToggleAction *mActionJumpBar; |
459 | KToggleAction *mActionDetails; | 463 | KToggleAction *mActionDetails; |
460 | KAction *mActionWhoAmI; | 464 | KAction *mActionWhoAmI; |
461 | KAction *mActionCategories; | 465 | KAction *mActionCategories; |
462 | KAction *mActionEditCategories; | 466 | KAction *mActionEditCategories; |
463 | KAction *mActionManageCategories; | 467 | KAction *mActionManageCategories; |
464 | KAction *mActionAboutKAddressbook; | 468 | KAction *mActionAboutKAddressbook; |
465 | KAction *mActionLicence; | 469 | KAction *mActionLicence; |
466 | KAction *mActionFaq; | 470 | KAction *mActionFaq; |
467 | KAction *mActionWN; | 471 | KAction *mActionWN; |
468 | KAction *mActionSyncHowto; | 472 | KAction *mActionSyncHowto; |
469 | KAction *mActionKdeSyncHowto; | 473 | KAction *mActionKdeSyncHowto; |
470 | KAction *mActionMultiSyncHowto; | 474 | KAction *mActionMultiSyncHowto; |
471 | 475 | ||
472 | KAction *mActionDeleteView; | 476 | KAction *mActionDeleteView; |
473 | 477 | ||
474 | QPopupMenu *viewMenu; | 478 | QPopupMenu *viewMenu; |
475 | QPopupMenu *filterMenu; | 479 | QPopupMenu *filterMenu; |
476 | QPopupMenu *settingsMenu; | 480 | QPopupMenu *settingsMenu; |
477 | QPopupMenu *changeMenu; | 481 | QPopupMenu *changeMenu; |
478 | QPopupMenu *beamMenu; | 482 | QPopupMenu *beamMenu; |
479 | //US QAction *mActionSave; | 483 | //US QAction *mActionSave; |
480 | QPopupMenu *ImportMenu; | 484 | QPopupMenu *ImportMenu; |
481 | QPopupMenu *ExportMenu; | 485 | QPopupMenu *ExportMenu; |
482 | //LR additional methods | 486 | //LR additional methods |
483 | KAction *mActionRemoveVoice; | 487 | KAction *mActionRemoveVoice; |