29 #ifdef TDEPIM_NEW_DISTRLISTS
30 #include <libtdepim/distributionlist.h>
35 #include <tdeabc/field.h>
37 #include <kxmlguiclient.h>
38 #include <tdemacros.h>
47 class TDEActionCollection;
55 class TDE_EXPORT Core : public TQObject
61 Core( KXMLGUIClient *client, TQObject *parent, const char *name = 0 );
66 virtual TDEABC::AddressBook *addressBook() const = 0;
71 virtual TDEConfig *config() const = 0;
77 virtual TDEActionCollection *actionCollection() const = 0;
82 virtual KXMLGUIClient *guiClient() const { return mGUIClient; }
87 virtual TDEABC::Field *currentSortField() const = 0;
92 virtual TQStringList selectedUIDs() const = 0;
99 virtual TDEABC::Resource *requestResource( TQWidget *parent ) = 0;
104 virtual TQWidget *widget() const = 0;
111 virtual void deleteContacts( const TQStringList &uids ) = 0;
118 virtual void deleteDistributionLists( const TQStringList &uids ) = 0;
120 #ifdef TDEPIM_NEW_DISTRLISTS
124 virtual KPIM::DistributionList::List distributionLists() const = 0;
130 virtual TQStringList distributionListNames() const = 0;
136 virtual void setSelectedDistributionList( const TQString &name ) = 0;
140 virtual SearchManager *searchManager() const = 0;
142 virtual KCommandHistory *commandHistory() const = 0;
149 void contactsUpdated();
155 virtual void setContactSelected( const TQString &uid ) = 0;
160 virtual void addEmail( const TQString& addr ) = 0;
165 virtual void importVCard( const KURL& url ) = 0;
170 virtual void importVCardFromData( const TQString& vCard ) = 0;
175 virtual void newContact() = 0;
180 virtual void newDistributionList() = 0;
186 virtual TQString getNameByPhone( const TQString& phone ) = 0;
191 virtual void editContact( const TQString &uid = TQString() ) = 0;
196 virtual void editDistributionList( const TQString &name ) = 0;
199 KXMLGUIClient *mGUIClient;
|