kmail Library API Documentation

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 QString &attachName,
00039                             const QCString &attachCte,
00040                             const QCString &attachData,
00041                             const QCString &attachType,
00042                             const QCString &attachSubType,
00043                             const QCString &attachParamAttr,
00044                             const QString &attachParamValue,
00045                             const QCString &attachContDisp) = 0;
00050   virtual DCOPRef openComposer(const QString &to, const QString &cc,
00051                                const QString &bcc, const QString &subject,
00052                                const QString &body, bool hidden) = 0;
00053 
00061     virtual int sendCertificate( const QString& to,
00062                                  const QByteArray& certData ) = 0;
00063 
00064 
00065   virtual void compactAllFolders() = 0;
00066 
00079   virtual int dcopAddMessage(const QString & foldername,
00080                              const QString & messagefile) = 0;
00081   virtual int dcopAddMessage(const QString & foldername,
00082                              const KURL & messagefile) = 0;
00083 
00089   virtual void requestAddresses( QString filename ) = 0;
00090 
00095   virtual bool storeAddresses( QString addresses, QStringList delUIDs ) = 0;
00096 
00097   virtual QStringList folderList() const =0;
00098   virtual DCOPRef getFolder( const QString& vpath ) =0;
00099 
00100 k_dcop_signals:
00101   void unreadCountChanged();
00102 
00103 k_dcop_hidden:
00104   virtual bool showMail( Q_UINT32 serialNumber, QString messageId ) = 0;
00114   virtual bool handleCommandLine( bool /*noArgsOpensReader*/ ) = 0;
00115 };
00116 
00117 #endif
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:19 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003