kmail

kmailIface.h
1#ifndef _KMCONTROLIFACE
2#define _KMCONTROLIFACE
3
4// no forward declarations - dcopidl2cpp won't work
5#include <dcopobject.h>
6#include <dcopref.h>
7#include <kurl.h>
8#include <tqstringlist.h>
9
17class KMailIface : virtual public DCOPObject
18{
19 K_DCOP
20
21k_dcop:
22 virtual void checkMail() = 0;
23 virtual TQStringList accounts() = 0;
24 virtual void checkAccount(const TQString &account) = 0;
25 virtual void openReader() = 0;
26 virtual int openComposer(const TQString &to, const TQString &cc,
27 const TQString &bcc, const TQString &subject,
28 const TQString &body, int hidden,
29 const KURL &messageFile) = 0;
30 virtual int openComposer(const TQString &to, const TQString &cc,
31 const TQString &bcc, const TQString &subject,
32 const TQString &body, int hidden,
33 const KURL &messageFile,
34 const KURL &attachURL) = 0;
35 virtual int openComposer(const TQString &to, const TQString &cc,
36 const TQString &bcc, const TQString &subject,
37 const TQString &body, int hidden,
38 const KURL &messageFile,
39 const KURL::List &attachURLs) = 0;
40 virtual int openComposer (const TQString &to, const TQString &cc,
41 const TQString &bcc, const TQString &subject,
42 const TQString &body, int hidden,
43 const TQString &attachName,
44 const TQCString &attachCte,
45 const TQCString &attachData,
46 const TQCString &attachType,
47 const TQCString &attachSubType,
48 const TQCString &attachParamAttr,
49 const TQString &attachParamValue,
50 const TQCString &attachContDisp) = 0;
51 virtual int openComposer (const TQString &to, const TQString &cc,
52 const TQString &bcc, const TQString &subject,
53 const TQString &body, int hidden,
54 const TQString &attachName,
55 const TQCString &attachCte,
56 const TQCString &attachData,
57 const TQCString &attachType,
58 const TQCString &attachSubType,
59 const TQCString &attachParamAttr,
60 const TQString &attachParamValue,
61 const TQCString &attachContDisp,
62 const TQCString &attachCharset) = 0;
63 virtual int openComposer (const TQString &to, const TQString &cc,
64 const TQString &bcc, const TQString &subject,
65 const TQString &body, int hidden,
66 const TQString &attachName,
67 const TQCString &attachCte,
68 const TQCString &attachData,
69 const TQCString &attachType,
70 const TQCString &attachSubType,
71 const TQCString &attachParamAttr,
72 const TQString &attachParamValue,
73 const TQCString &attachContDisp,
74 const TQCString &attachCharset,
75 uint identity) = 0;
80 virtual DCOPRef openComposer(const TQString &to, const TQString &cc,
81 const TQString &bcc, const TQString &subject,
82 const TQString &body, bool hidden) = 0;
83
91 virtual int sendCertificate( const TQString& to,
92 const TQByteArray& certData ) = 0;
93
94
95 virtual void compactAllFolders() = 0;
96
112 virtual int dcopAddMessage(const TQString & foldername,
113 const TQString & messagefile,
114 const TQString & MsgStatusFlags = TQString()) = 0;
115 virtual int dcopAddMessage(const TQString & foldername,
116 const KURL & messagefile,
117 const TQString & MsgStatusFlags = TQString()) = 0;
118 virtual void showImportArchiveDialog() = 0;
119
120 virtual TQStringList folderList() const =0;
121 virtual DCOPRef getFolder( const TQString& vpath ) =0;
122 virtual void selectFolder( TQString folder ) =0;
123 virtual bool canQueryClose() =0;
124
130 virtual void setDefaultTransport( const TQString & transport ) =0;
131
132 virtual int timeOfLastMessageCountChange() const =0;
133
138 virtual void pauseBackgroundJobs() = 0;
139
143 virtual void resumeBackgroundJobs() = 0;
144
148 virtual void stopNetworkJobs() = 0;
149
153 virtual void resumeNetworkJobs() = 0;
154
155k_dcop_signals:
156 void unreadCountChanged();
157
158 void unreadCountChanged( const TQString& folderURL, int numUnread );
159
160k_dcop_hidden:
166 virtual DCOPRef newMessage(const TQString &to,
167 const TQString &cc,
168 const TQString& bcc,
169 bool hidden,
170 bool useFolderId,
171 const KURL &messageFile,
172 const KURL &attachURL) = 0;
173
178 /* @TODO Get rid of the messageId parameter. */
179 virtual bool showMail( TQ_UINT32 serialNumber, TQString messageId ) = 0;
180
190 virtual bool handleCommandLine( bool noArgsOpensReader ) = 0;
191 virtual bool firstStart() = 0;
196 virtual TQString getFrom( TQ_UINT32 serialNumber ) = 0;
197 virtual TQString debugScheduler() = 0;
198 virtual TQString debugSernum( TQ_UINT32 serialNumber ) = 0;
199
218 virtual int dcopAddMessage_fastImport(const TQString & foldername,
219 const TQString & messagefile,
220 const TQString & MsgStatusFlags = TQString()) = 0;
221 virtual int dcopAddMessage_fastImport(const TQString & foldername,
222 const KURL & messagefile,
223 const TQString & MsgStatusFlags = TQString()) = 0;
224
227 virtual void dcopResetAddMessage() = 0;
228
229 virtual void loadProfile( const TQString& path ) = 0;
230 virtual void saveToProfile( const TQString& path ) const = 0;
231};
232
233#endif
checkMail wont show reader but will check mail.
Definition: kmailIface.h:18
virtual void setDefaultTransport(const TQString &transport)=0
Set the KMail Default transport.
virtual void dcopResetAddMessage()=0
Clears the list of added message ids which is used to filter out duplicates.
virtual void resumeBackgroundJobs()=0
Resume compaction/expiry, and allow launching new ones.
virtual void pauseBackgroundJobs()=0
Abort any running compaction/expiry, and don't launch any new ones until resumeBackgroundJobs() is ca...
virtual int dcopAddMessage_fastImport(const TQString &foldername, const TQString &messagefile, const TQString &MsgStatusFlags=TQString())=0
Does essentially the same as dcopAddMessage except that it doesn't reject duplicate messages.
virtual bool showMail(TQ_UINT32 serialNumber, TQString messageId)=0
Shows the specified message in a separate message window.
virtual bool handleCommandLine(bool noArgsOpensReader)=0
DCOP-enabled for KMailUniqueAppHandler in the kontact plugin.
virtual int dcopAddMessage(const TQString &foldername, const TQString &messagefile, const TQString &MsgStatusFlags=TQString())=0
virtual int sendCertificate(const TQString &to, const TQByteArray &certData)=0
Send a certificate request to the CA specified in to.
virtual void stopNetworkJobs()=0
Stop all network related jobs and enter offline mode.
virtual void resumeNetworkJobs()=0
Resume all network related jobs and enter online mode.
virtual DCOPRef openComposer(const TQString &to, const TQString &cc, const TQString &bcc, const TQString &subject, const TQString &body, bool hidden)=0
Open composer and return reference to DCOP interface of composer window.
virtual TQString getFrom(TQ_UINT32 serialNumber)=0
DCOP-enabled for use in kaddressbook drop.