kmail
composer.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __KMAIL_COMPOSER_H__
00021 #define __KMAIL_COMPOSER_H__
00022
00023 #include "secondarywindow.h"
00024
00025 #include <kurl.h>
00026 #include <kglobalsettings.h>
00027
00028 #include <QString>
00029
00030 class KMMessage;
00031 class KMFolder;
00032 class KMMessagePart;
00033 class MailComposerIface;
00034
00035 namespace KMail {
00036
00037 class Composer;
00038
00039 Composer *makeComposer( KMMessage *msg=0, uint identity=0 );
00040
00041 class Composer : public KMail::SecondaryWindow
00042 {
00043 Q_OBJECT
00044 protected:
00045 Composer( const char *name=0 ) : KMail::SecondaryWindow( name ) {}
00046
00047 public:
00051 virtual void send( int how ) = 0;
00052 virtual void addAttachmentsAndSend( const KUrl::List &urls,
00053 const QString &comment, int how) = 0;
00054 virtual void addAttachment( const KUrl &url, const QString &comment ) = 0;
00055 virtual void addAttachment( const QString &name,
00056 const QByteArray &cte,
00057 const QByteArray &data,
00058 const QByteArray &type,
00059 const QByteArray &subType,
00060 const QByteArray ¶mAttr,
00061 const QString ¶mValue,
00062 const QByteArray &contDisp ) = 0;
00063 public:
00064 virtual QString dbusObjectPath() const = 0;
00065 public:
00070 virtual void setMsg( KMMessage *newMsg, bool mayAutoSign=true,
00071 bool allowDecryption=false, bool isModified=false ) = 0;
00072
00073 public:
00077 virtual void setAutoSaveFilename( const QString &filename ) = 0;
00078
00079 public:
00084 virtual void setAutoDelete( bool f ) = 0;
00085
00086 public:
00091 virtual void setFolder( KMFolder *aFolder ) = 0;
00092
00093 public:
00097 virtual void setCharset( const QByteArray &aCharset, bool forceDefault=false ) = 0;
00098
00099 public:
00105 virtual void setReplyFocus( bool hasMessage=true ) = 0;
00106
00111 virtual void setFocusToSubject() = 0;
00112
00113 public:
00115 virtual void setSigningAndEncryptionDisabled( bool v ) = 0;
00116
00117 public slots:
00118 virtual void slotSendNow() = 0;
00119
00120 public slots:
00127 virtual void slotSetAlwaysSend( bool bAlwaysSend ) = 0;
00128
00129 public slots:
00133 virtual void slotWordWrapToggled( bool ) = 0;
00134
00135 public slots:
00136 virtual void autoSaveMessage() = 0;
00137
00138 public:
00139 virtual bool addAttach( const KUrl &url ) = 0;
00140
00141 virtual void disableWordWrap() = 0;
00142
00143 public:
00147 virtual void addAttach( KMMessagePart *msgPart ) = 0;
00148 };
00149
00150 }
00151
00152 #endif // __KMAIL_COMPOSER_H__