5 #ifndef __KMAIL_COMPOSER_H__
6 #define __KMAIL_COMPOSER_H__
8 #include "secondarywindow.h"
11 #include <tdeglobalsettings.h>
14 #include <tqcstring.h>
34 Composer * makeComposer( KMMessage * msg=0, uint identity=0 );
40 Composer( const char * name=0 ) : KMail::SecondaryWindow( name ) {}
45 virtual void send( int how ) = 0;
46 virtual void addAttachmentsAndSend( const KURL::List &urls, const TQString &comment, int how) = 0;
47 virtual void addAttachment( KURL url, TQString comment ) = 0;
48 virtual void addAttachment( const TQString & name,
49 const TQCString & cte,
50 const TQByteArray & data,
51 const TQCString & type,
52 const TQCString & subType,
53 const TQCString & paramAttr,
54 const TQString & paramValue,
55 const TQCString & contDisp) = 0;
57 virtual void setBody( TQString body ) = 0;
67 virtual void setMsg( KMMessage * newMsg, bool mayAutoSign= true,
68 bool allowDecryption= false, bool isModified= false) = 0;
73 virtual bool isComposing() const = 0;
79 virtual void setAutoSaveFilename( const TQString & filename ) = 0;
88 virtual void setAutoDelete( bool f ) = 0;
94 virtual void setAutoDeleteWindow( bool f ) = 0;
101 virtual void setFolder( KMFolder * aFolder ) = 0;
107 virtual void setCharset( const TQCString & aCharset, bool forceDefault= false ) = 0;
115 virtual void setReplyFocus( bool hasMessage= true ) = 0;
121 virtual void setFocusToSubject() = 0;
125 virtual void setSigningAndEncryptionDisabled( bool v ) = 0;
128 virtual void slotSendNow() = 0;
137 virtual void slotSetAlwaysSend( bool bAlwaysSend ) = 0;
142 virtual void slotWordWrapToggled( bool) = 0;
145 virtual void autoSaveMessage() = 0;
148 virtual bool addAttach( const KURL url ) = 0;
150 virtual void disableWordWrap() = 0;
152 virtual void disableRecipientNumberCheck() = 0;
154 virtual void disableForgottenAttachmentsCheck() = 0;
156 virtual void ignoreStickyFields() = 0;
162 virtual void addAttach( const KMMessagePart * msgPart ) = 0;
Window class for secondary KMail window like the composer window and the separate message window.
DCOP interface for mail composer window.
|