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
@@ -272,210 +272,210 @@ class KABCore : public QWidget, public KSyncInterface
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