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