29 #include <tdeabc/field.h>
36 #include <tdemacros.h>
45 class CategoryEditDialog;
46 class CategorySelectDialog;
51 class TDEActionCollection;
55 class TDEToggleAction;
62 class AddresseeEditorDialog;
63 class ExtensionManager;
65 class IncSearchWidget;
67 class KAddressBookIface;
68 class KAddressBookService;
70 class LDAPSearchDialog;
75 class DistributionListEntryView;
79 TDEABC::Ticket *ticket;
83 class TDE_EXPORT KABCore :
public KAB::Core
89 KABCore( KXMLGUIClient *client,
bool readWrite, TQWidget *parent,
90 const TQString &file = TQString(),
const char *name = 0 );
96 void restoreSettings();
106 TDEABC::AddressBook *addressBook()
const;
111 TDEConfig *config()
const;
117 TDEActionCollection *actionCollection()
const;
122 TDEABC::Field *currentSortField()
const;
127 TQStringList selectedUIDs()
const;
134 TDEABC::Resource *requestResource( TQWidget *parent );
139 TQWidget *widget()
const;
141 static TDEAboutData *createAboutData();
143 void setStatusBar( KStatusBar *statusBar );
145 KStatusBar *statusBar()
const;
147 KAB::SearchManager *searchManager()
const {
return mSearchManager; }
149 KCommandHistory *commandHistory()
const {
return mCommandHistory; }
151 #ifdef TDEPIM_NEW_DISTRLISTS
155 virtual KPIM::DistributionList::List distributionLists()
const;
160 virtual TQStringList distributionListNames()
const;
166 virtual void setSelectedDistributionList(
const TQString &name );
173 void setContactSelected(
const TQString &uid );
185 void sendMail(
const TQString& email );
189 void mailVCard(
const TQStringList& uids);
199 void browse(
const TQString& url );
204 void selectAllContacts();
209 void deleteContacts();
216 void deleteContacts(
const TQStringList &uids );
223 void deleteDistributionLists(
const TQStringList &names );
239 void pasteContacts();
246 void pasteContacts( TDEABC::Addressee::List &list );
252 void mergeContacts();
264 void setCategories();
270 void incrementalTextSearch(
const TQString& text );
272 void incrementalJumpButtonSearch(
const TQString& characters );
282 void setModified(
bool modified );
287 bool modified()
const;
293 void contactModified(
const TDEABC::Addressee &addr );
298 virtual void addEmail(
const TQString& addr );
303 virtual void importVCard(
const KURL& url );
308 virtual void importVCardFromData(
const TQString& vCard );
313 virtual void newContact();
318 virtual void newDistributionList();
324 virtual TQString getNameByPhone(
const TQString& phone );
330 bool handleCommandLine( KAddressBookIface* iface );
347 void editContact(
const TQString &uid = TQString() );
353 void storeContactIn(
const TQString &uid = TQString(),
bool copy =
false );
359 void copySelectedContactToResource();
365 void moveSelectedContactToResource();
370 void openLDAPDialog();
383 void detailsHighlighted(
const TQString& );
385 void showContactsAddress(
const TQString &uid );
387 void configurationChanged();
398 #ifdef TDEPIM_NEW_DISTRLISTS
399 void editDistributionList(
const KPIM::DistributionList &list );
400 void showDistributionListEntry(
const TQString &uid );
404 void setJumpButtonBarVisible(
bool visible );
405 void setDetailsVisible(
bool visible );
407 void extensionModified(
const TDEABC::Addressee::List &list );
408 void extensionDeleted(
const TQStringList &uidList );
409 void clipboardDataChanged();
410 void updateIncSearchWidget();
412 void slotEditorDestroyed(
const TQString &uid );
413 void delayedAddressBookChanged();
414 void addressBookChanged();
416 void categoriesSelected(
const TQStringList& );
417 void editCategories();
418 void slotClearSearchBar();
419 void slotContactsUpdated();
421 void activateDetailsWidget( TQWidget *widget );
422 void deactivateDetailsWidget( TQWidget *widget );
424 void editDistributionList(
const TQString &name );
426 void removeSelectedContactsFromDistList();
427 void editSelectedDistributionList();
428 void sendMailToDistributionList(
const TQString &
id );
432 void createJumpButtonBar();
435 void updateCategories();
436 TQStringList allCategories()
const;
438 AddresseeEditorDialog *createAddresseeEditorDialog( TQWidget *parent,
439 const char *name = 0 );
442 TDEABC::AddressBook *mAddressBook;
443 KStatusBar *mStatusBar;
446 TQLabel *mViewHeaderLabel;
448 #ifdef TDEPIM_NEW_DISTRLISTS
449 TQString mSelectedDistributionList;
450 KPushButton *mAddDistListButton;
451 KPushButton *mRemoveDistListButton;
452 TQWidget *mDistListButtonWidget;
455 ExtensionManager *mExtensionManager;
456 XXPortManager *mXXPortManager;
460 IncSearchWidget *mIncSearchWidget;
461 KAB::DistributionListEntryView* mDistListEntryView;
462 KPIM::AddresseeView *mDetailsViewer;
463 KPIM::CategorySelectDialog *mCategorySelectDialog;
464 KPIM::CategoryEditDialog *mCategoryEditDialog;
465 TQWidget *mDetailsPage;
466 TQWidget *mDetailsWidget;
467 TQHBoxLayout *mDetailsLayout;
468 TQSplitter *mDetailsSplitter;
469 TQSplitter *mLeftSplitter;
470 TQWidgetStack *mDetailsStack;
471 LDAPSearchDialog *mLdapSearchDialog;
472 TQDict<AddresseeEditorDialog> mEditorDict;
478 TQTimer *mAddressBookChangedTimer;
480 TDEAction *mActionPaste;
481 TDEAction *mActionCut;
482 TDEAction *mActionDelete;
483 TDEAction *mActionCopy;
484 TDEAction *mActionEditAddressee;
485 TDEAction *mActionMoveAddresseeTo;
486 TDEAction *mActionCopyAddresseeTo;
487 TDEAction *mActionMerge;
488 TDEAction *mActionMail;
489 TDEAction *mActionMailVCard;
490 TDEAction *mActionChat;
491 TDEAction *mActionSave;
492 TDEAction *mActionDeleteView;
493 TDEAction *mActionWhoAmI;
494 TDEAction *mActionCategories;
495 TDEToggleAction *mActionJumpBar;
496 TDEToggleAction *mActionDetails;
497 KCommandHistory *mCommandHistory;
499 KAddressBookService *mAddressBookService;
501 KAB::SearchManager *mSearchManager;
503 ::KIMProxy *mKIMProxy;
504 class KABCorePrivate;
The view manager manages the views and everything related to them.