kmail

composer.h
1/*
2 * KMComposeWin Header File
3 * Author: Markus Wuebben <markus.wuebben@kde.org>
4 */
5#ifndef __KMAIL_COMPOSER_H__
6#define __KMAIL_COMPOSER_H__
7
8#include "secondarywindow.h"
9
10#include <kurl.h>
11#include <tdeglobalsettings.h>
12
13#include <tqstring.h>
14#include <tqcstring.h>
15
16class KMMessage;
17class KMFolder;
18class KMMessagePart;
19class TQListViewItem;
21
22namespace TDEIO {
23 class Job;
24}
25
26namespace GpgME {
27 class Error;
28}
29
30namespace KMail {
31
32 class Composer;
33
34 Composer * makeComposer( KMMessage * msg=0, uint identity=0 );
35
36 class Composer : public KMail::SecondaryWindow {
37 TQ_OBJECT
38
39 protected:
40 Composer( const char * name=0 ) : KMail::SecondaryWindow( name ) {}
41 public: // mailserviceimpl
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;
56 public: // kmcommand
57 virtual void setBody( TQString body ) = 0;
58
59 virtual const MailComposerIface * asMailComposerIFace() const = 0;
60 virtual MailComposerIface * asMailComposerIFace() = 0;
61
62 public: // kmkernel, kmcommands, callback
67 virtual void setMsg( KMMessage * newMsg, bool mayAutoSign=true,
68 bool allowDecryption=false, bool isModified=false) = 0;
69
73 virtual bool isComposing() const = 0;
74
75 public: // kmkernel
79 virtual void setAutoSaveFilename( const TQString & filename ) = 0;
80
81
82
83 public: // kmkernel, callback
88 virtual void setAutoDelete( bool f ) = 0;
89
94 virtual void setAutoDeleteWindow( bool f ) = 0;
95
96 public: // kmcommand
101 virtual void setFolder( KMFolder * aFolder ) = 0;
102
103 public: // kmkernel, kmcommand, mailserviceimpl
107 virtual void setCharset( const TQCString & aCharset, bool forceDefault=false ) = 0;
108
109 public: // kmcommand
115 virtual void setReplyFocus( bool hasMessage=true ) = 0;
116
121 virtual void setFocusToSubject() = 0;
122
123 public: // callback
125 virtual void setSigningAndEncryptionDisabled( bool v ) = 0;
126
127 public slots: // kmkernel, callback
128 virtual void slotSendNow() = 0;
129
130 public slots: // kmkernel
137 virtual void slotSetAlwaysSend( bool bAlwaysSend ) = 0;
138 public slots: // kmkernel, callback
142 virtual void slotWordWrapToggled(bool) = 0;
143
144 public slots: // kmkernel
145 virtual void autoSaveMessage() = 0;
146
147 public: // kmkernel, attachmentlistview
148 virtual bool addAttach( const KURL url ) = 0;
149
150 virtual void disableWordWrap() = 0;
151
152 virtual void disableRecipientNumberCheck() = 0;
153
154 virtual void disableForgottenAttachmentsCheck() = 0;
155
156 virtual void ignoreStickyFields() = 0;
157
158 public: // kmcommand
162 virtual void addAttach( const KMMessagePart * msgPart ) = 0;
163 };
164
165}
166
167#endif // __KMAIL_COMPOSER_H__
Mail folder.
Definition: kmfolder.h:69
This is a Mime Message.
Definition: kmmessage.h:68
Window class for secondary KMail window like the composer window and the separate message window.
DCOP interface for mail composer window.
folderdiaquotatab.h
Definition: aboutdata.cpp:40