summaryrefslogtreecommitdiffabout
path: root/kaddressbook/kabcore.h
Unidiff
Diffstat (limited to 'kaddressbook/kabcore.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabcore.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/kaddressbook/kabcore.h b/kaddressbook/kabcore.h
index 1bdae5f..bf5398b 100644
--- a/kaddressbook/kabcore.h
+++ b/kaddressbook/kabcore.h
@@ -222,48 +222,49 @@ class KABCore : public QWidget, public KSyncInterface
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 247
247 /** 248 /**
248 Sets the field list of the Incremental Search Widget. 249 Sets the field list of the Incremental Search Widget.
249 */ 250 */
250 void setSearchFields( const KABC::Field::List &fields ); 251 void setSearchFields( const KABC::Field::List &fields );
251 252
252 /** 253 /**
253 Search with the current search field for a contact, that matches 254 Search with the current search field for a contact, that matches
254 the given text, and selects it in the view. 255 the given text, and selects it in the view.
255 */ 256 */
256 void incrementalSearch( const QString& text ); 257 void incrementalSearch( const QString& text );
257 258
258 /** 259 /**
259 Marks the address book as modified. 260 Marks the address book as modified.
260 */ 261 */
261 void setModified(); 262 void setModified();
262 /** 263 /**
263 Marks the address book as modified without refreshing the view. 264 Marks the address book as modified without refreshing the view.
264 */ 265 */
265 void setModifiedWOrefresh(); 266 void setModifiedWOrefresh();
266 267
267 /** 268 /**
268 Marks the address book as modified concerning the argument. 269 Marks the address book as modified concerning the argument.
269 */ 270 */
@@ -349,51 +350,48 @@ class KABCore : public QWidget, public KSyncInterface
349 350
350 signals: 351 signals:
351 void contactSelected( const QString &name ); 352 void contactSelected( const QString &name );
352 void contactSelected( const QPixmap &pixmap ); 353 void contactSelected( const QPixmap &pixmap );
353 public slots: 354 public slots:
354 void recieve(QString cmsg ); 355 void recieve(QString cmsg );
355 void getFile( bool success ); 356 void getFile( bool success );
356 void syncFileRequest(); 357 void syncFileRequest();
357 void setDetailsVisible( bool visible ); 358 void setDetailsVisible( bool visible );
358 void setDetailsToState(); 359 void setDetailsToState();
359 // void slotSyncMenu( int ); 360 // void slotSyncMenu( int );
360 private slots: 361 private slots:
361 void receive( const QCString& cmsg, const QByteArray& data ); 362 void receive( const QCString& cmsg, const QByteArray& data );
362 void toggleBeamReceive( ); 363 void toggleBeamReceive( );
363 void disableBR(bool); 364 void disableBR(bool);
364 void setJumpButtonBarVisible( bool visible ); 365 void setJumpButtonBarVisible( bool visible );
365 void setCaptionBack(); 366 void setCaptionBack();
366 void importFromOL(); 367 void importFromOL();
367 void extensionModified( const KABC::Addressee::List &list ); 368 void extensionModified( const KABC::Addressee::List &list );
368 void extensionChanged( int id ); 369 void extensionChanged( int id );
369 void clipboardDataChanged(); 370 void clipboardDataChanged();
370 void updateActionMenu(); 371 void updateActionMenu();
371 void configureKeyBindings(); 372 void configureKeyBindings();
372 void removeVoice(); 373 void removeVoice();
373 void setCat();
374 void addCat();
375 void setCategories( bool removeOld );
376#ifdef KAB_EMBEDDED 374#ifdef KAB_EMBEDDED
377 void configureResources(); 375 void configureResources();
378#endif //KAB_EMBEDDED 376#endif //KAB_EMBEDDED
379 377
380 void slotEditorDestroyed( const QString &uid ); 378 void slotEditorDestroyed( const QString &uid );
381 void configurationChanged(); 379 void configurationChanged();
382 void addressBookChanged(); 380 void addressBookChanged();
383 381
384 private: 382 private:
385 bool mBRdisabled; 383 bool mBRdisabled;
386#ifndef DESKTOP_VERSION 384#ifndef DESKTOP_VERSION
387 QCopChannel* infrared; 385 QCopChannel* infrared;
388#endif 386#endif
389 QTimer *mMessageTimer; 387 QTimer *mMessageTimer;
390 void initGUI(); 388 void initGUI();
391 void initActions(); 389 void initActions();
392 QString getPhoneFile(); 390 QString getPhoneFile();
393 391
394 AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent, 392 AddresseeEditorDialog *createAddresseeEditorDialog( QWidget *parent,
395 const char *name = 0 ); 393 const char *name = 0 );
396 394
397 KXMLGUIClient *mGUIClient; 395 KXMLGUIClient *mGUIClient;
398 396
399 KABC::AddressBook *mAddressBook; 397 KABC::AddressBook *mAddressBook;
@@ -433,69 +431,68 @@ class KABCore : public QWidget, public KSyncInterface
433 KAction *mActionMailVCard; 431 KAction *mActionMailVCard;
434 KAction *mActionBeamVCard; 432 KAction *mActionBeamVCard;
435 433
436 KAction *mActionQuit; 434 KAction *mActionQuit;
437 435
438 //US edit menu 436 //US edit menu
439 KAction *mActionCopy; 437 KAction *mActionCopy;
440 KAction *mActionCut; 438 KAction *mActionCut;
441 KAction *mActionPaste; 439 KAction *mActionPaste;
442 KAction *mActionSelectAll; 440 KAction *mActionSelectAll;
443 KAction *mActionUndo; 441 KAction *mActionUndo;
444 KAction *mActionRedo; 442 KAction *mActionRedo;
445 KAction *mActionDelete; 443 KAction *mActionDelete;
446 444
447 //US settings menu 445 //US settings menu
448 KAction *mActionConfigResources; 446 KAction *mActionConfigResources;
449 KAction *mActionConfigKAddressbook; 447 KAction *mActionConfigKAddressbook;
450 KAction *mActionConfigShortcuts; 448 KAction *mActionConfigShortcuts;
451 KAction *mActionConfigureToolbars; 449 KAction *mActionConfigureToolbars;
452 KAction *mActionKeyBindings; 450 KAction *mActionKeyBindings;
453 KToggleAction *mActionJumpBar; 451 KToggleAction *mActionJumpBar;
454 KToggleAction *mActionDetails; 452 KToggleAction *mActionDetails;
455 KAction *mActionWhoAmI; 453 KAction *mActionWhoAmI;
456 KAction *mActionCategories; 454 KAction *mActionCategories;
455 KAction *mActionManageCategories;
457 KAction *mActionAboutKAddressbook; 456 KAction *mActionAboutKAddressbook;
458 KAction *mActionLicence; 457 KAction *mActionLicence;
459 KAction *mActionFaq; 458 KAction *mActionFaq;
460 KAction *mActionWN; 459 KAction *mActionWN;
461 KAction *mActionSyncHowto; 460 KAction *mActionSyncHowto;
462 KAction *mActionKdeSyncHowto; 461 KAction *mActionKdeSyncHowto;
463 KAction *mActionMultiSyncHowto; 462 KAction *mActionMultiSyncHowto;
464 463
465 KAction *mActionDeleteView; 464 KAction *mActionDeleteView;
466 465
467 QPopupMenu *viewMenu; 466 QPopupMenu *viewMenu;
468 QPopupMenu *filterMenu; 467 QPopupMenu *filterMenu;
469 QPopupMenu *settingsMenu; 468 QPopupMenu *settingsMenu;
470 QPopupMenu *changeMenu; 469 QPopupMenu *changeMenu;
471//US QAction *mActionSave; 470//US QAction *mActionSave;
472 QPopupMenu *ImportMenu; 471 QPopupMenu *ImportMenu;
473 QPopupMenu *ExportMenu; 472 QPopupMenu *ExportMenu;
474 //LR additional methods 473 //LR additional methods
475 KAction *mActionRemoveVoice; 474 KAction *mActionRemoveVoice;
476 KAction *mActionSetCat;
477 KAction *mActionAddCat;
478 KAction * mActionImportOL; 475 KAction * mActionImportOL;
479 476
480#ifndef KAB_EMBEDDED 477#ifndef KAB_EMBEDDED
481 KAddressBookService *mAddressBookService; 478 KAddressBookService *mAddressBookService;
482#endif //KAB_EMBEDDED 479#endif //KAB_EMBEDDED
483 480
484 class KABCorePrivate; 481 class KABCorePrivate;
485 KABCorePrivate *d; 482 KABCorePrivate *d;
486 //US bool mBlockSaveFlag; 483 //US bool mBlockSaveFlag;
487 484
488#ifdef KAB_EMBEDDED 485#ifdef KAB_EMBEDDED
489 KAddressBookMain *mMainWindow; // should be the same like mGUIClient 486 KAddressBookMain *mMainWindow; // should be the same like mGUIClient
490#endif //KAB_EMBEDDED 487#endif //KAB_EMBEDDED
491 488
492 //this are the overwritten callbackmethods from the syncinterface 489 //this are the overwritten callbackmethods from the syncinterface
493 virtual bool sync(KSyncManager* manager, QString filename, int mode); 490 virtual bool sync(KSyncManager* manager, QString filename, int mode);
494 virtual bool syncExternal(KSyncManager* manager, QString resource); 491 virtual bool syncExternal(KSyncManager* manager, QString resource);
495 virtual void removeSyncInfo( QString syncProfile); 492 virtual void removeSyncInfo( QString syncProfile);
496 bool syncPhone(); 493 bool syncPhone();
497 void message( QString m ); 494 void message( QString m );
498 495
499 // LR ******************************* 496 // LR *******************************
500 // sync stuff! 497 // sync stuff!
501 QString sentSyncFile(); 498 QString sentSyncFile();