kmail

kmailIface.h

00001 #ifndef _KMCONTROLIFACE
00002 #define _KMCONTROLIFACE
00003 
00004 // no forward declarations - dcopidl2cpp won't work
00005 #include <dcopobject.h>
00006 #include <dcopref.h>
00007 #include <kurl.h>
00008 #include <qstringlist.h>
00009 
00017 class KMailIface : virtual public DCOPObject
00018 {
00019   K_DCOP
00020 
00021 k_dcop:
00022   virtual void checkMail() = 0;
00023   virtual QStringList accounts() = 0;
00024   virtual void checkAccount(const QString &account) = 0;
00025   virtual void openReader() = 0;
00026   virtual int openComposer(const QString &to, const QString &cc,
00027                            const QString &bcc, const QString &subject,
00028                            const QString &body, int hidden,
00029                            const KURL &messageFile) = 0;
00030   virtual int openComposer(const QString &to, const QString &cc,
00031                            const QString &bcc, const QString &subject,
00032                            const QString &body, int hidden,
00033                            const KURL &messageFile,
00034                            const KURL &attachURL) = 0;
00035   virtual int openComposer(const QString &to, const QString &cc,
00036                            const QString &bcc, const QString &subject,
00037                            const QString &body, int hidden,
00038                            const KURL &messageFile,
00039                            const KURL::List &attachURLs) = 0;
00040   virtual int openComposer (const QString &to, const QString &cc,
00041                             const QString &bcc, const QString &subject,
00042                             const QString &body, int hidden,
00043                             const QString &attachName,
00044                             const QCString &attachCte,
00045                             const QCString &attachData,
00046                             const QCString &attachType,
00047                             const QCString &attachSubType,
00048                             const QCString &attachParamAttr,
00049                             const QString &attachParamValue,
00050                             const QCString &attachContDisp) = 0;
00051   virtual int openComposer (const QString &to, const QString &cc,
00052                             const QString &bcc, const QString &subject,
00053                             const QString &body, int hidden,
00054                             const QString &attachName,
00055                             const QCString &attachCte,
00056                             const QCString &attachData,
00057                             const QCString &attachType,
00058                             const QCString &attachSubType,
00059                             const QCString &attachParamAttr,
00060                             const QString &attachParamValue,
00061                             const QCString &attachContDisp,
00062                             const QCString &attachCharset) = 0;
00063   virtual int openComposer (const QString &to, const QString &cc,
00064                             const QString &bcc, const QString &subject,
00065                             const QString &body, int hidden,
00066                             const QString &attachName,
00067                             const QCString &attachCte,
00068                             const QCString &attachData,
00069                             const QCString &attachType,
00070                             const QCString &attachSubType,
00071                             const QCString &attachParamAttr,
00072                             const QString &attachParamValue,
00073                             const QCString &attachContDisp,
00074                             const QCString &attachCharset,
00075                             uint identity) = 0;
00080   virtual DCOPRef openComposer(const QString &to, const QString &cc,
00081                                const QString &bcc, const QString &subject,
00082                                const QString &body, bool hidden) = 0;
00083 
00091     virtual int sendCertificate( const QString& to,
00092                                  const QByteArray& certData ) = 0;
00093 
00094 
00095   virtual void compactAllFolders() = 0;
00096 
00112   virtual int dcopAddMessage(const QString & foldername,
00113                              const QString & messagefile,
00114                              const QString & MsgStatusFlags = QString()) = 0;
00115   virtual int dcopAddMessage(const QString & foldername,
00116                              const KURL & messagefile,
00117                              const QString & MsgStatusFlags = QString()) = 0;
00118 
00119   virtual QStringList folderList() const =0;
00120   virtual DCOPRef getFolder( const QString& vpath ) =0;
00121   virtual void selectFolder( QString folder ) =0;
00122   virtual bool canQueryClose() =0;
00123 
00129   virtual void setDefaultTransport( const QString & transport ) =0;
00130 
00131   virtual int timeOfLastMessageCountChange() const =0;
00132 
00137   virtual void pauseBackgroundJobs() = 0;
00138 
00142   virtual void resumeBackgroundJobs() = 0;
00143 
00147   virtual void stopNetworkJobs() = 0;
00148 
00152   virtual void resumeNetworkJobs() = 0;
00153 
00154 k_dcop_signals:
00155   void unreadCountChanged();
00156 
00157   void unreadCountChanged( const QString& folderURL, int numUnread );
00158 
00159 k_dcop_hidden:
00165   virtual DCOPRef newMessage(const QString &to,
00166                              const QString &cc,
00167                              const QString& bcc,
00168                              bool hidden,
00169                              bool useFolderId,
00170                              const KURL &messageFile,
00171                              const KURL &attachURL) = 0;
00172 
00177   /*  @TODO Get rid of the messageId parameter.  */
00178   virtual bool showMail( Q_UINT32 serialNumber, QString messageId ) = 0;
00179 
00189   virtual bool handleCommandLine( bool noArgsOpensReader ) = 0;
00190   virtual bool firstStart() = 0;
00195   virtual QString getFrom( Q_UINT32 serialNumber ) = 0;
00196   virtual QString debugScheduler() = 0;
00197   virtual QString debugSernum( Q_UINT32 serialNumber ) = 0;
00198 
00217   virtual int dcopAddMessage_fastImport(const QString & foldername,
00218                                         const QString & messagefile,
00219                                         const QString & MsgStatusFlags = QString()) = 0;
00220   virtual int dcopAddMessage_fastImport(const QString & foldername,
00221                                         const KURL & messagefile,
00222                                         const QString & MsgStatusFlags = QString()) = 0;
00223 
00226   virtual void dcopResetAddMessage() = 0;
00227 
00228   virtual void loadProfile( const QString& path ) = 0;
00229   virtual void saveToProfile( const QString& path ) const = 0;
00230 };
00231 
00232 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys