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   virtual void showImportArchiveDialog() = 0;
00119 
00120   virtual QStringList folderList() const =0;
00121   virtual DCOPRef getFolder( const QString& vpath ) =0;
00122   virtual void selectFolder( QString folder ) =0;
00123   virtual bool canQueryClose() =0;
00124 
00130   virtual void setDefaultTransport( const QString & transport ) =0;
00131 
00132   virtual int timeOfLastMessageCountChange() const =0;
00133 
00138   virtual void pauseBackgroundJobs() = 0;
00139 
00143   virtual void resumeBackgroundJobs() = 0;
00144 
00148   virtual void stopNetworkJobs() = 0;
00149 
00153   virtual void resumeNetworkJobs() = 0;
00154 
00155 k_dcop_signals:
00156   void unreadCountChanged();
00157 
00158   void unreadCountChanged( const QString& folderURL, int numUnread );
00159 
00160 k_dcop_hidden:
00166   virtual DCOPRef newMessage(const QString &to,
00167                              const QString &cc,
00168                              const QString& bcc,
00169                              bool hidden,
00170                              bool useFolderId,
00171                              const KURL &messageFile,
00172                              const KURL &attachURL) = 0;
00173 
00178   /*  @TODO Get rid of the messageId parameter.  */
00179   virtual bool showMail( Q_UINT32 serialNumber, QString messageId ) = 0;
00180 
00190   virtual bool handleCommandLine( bool noArgsOpensReader ) = 0;
00191   virtual bool firstStart() = 0;
00196   virtual QString getFrom( Q_UINT32 serialNumber ) = 0;
00197   virtual QString debugScheduler() = 0;
00198   virtual QString debugSernum( Q_UINT32 serialNumber ) = 0;
00199 
00218   virtual int dcopAddMessage_fastImport(const QString & foldername,
00219                                         const QString & messagefile,
00220                                         const QString & MsgStatusFlags = QString()) = 0;
00221   virtual int dcopAddMessage_fastImport(const QString & foldername,
00222                                         const KURL & messagefile,
00223                                         const QString & MsgStatusFlags = QString()) = 0;
00224 
00227   virtual void dcopResetAddMessage() = 0;
00228 
00229   virtual void loadProfile( const QString& path ) = 0;
00230   virtual void saveToProfile( const QString& path ) const = 0;
00231 };
00232 
00233 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys