Changeset View
Changeset View
Standalone View
Standalone View
kmail/editor/composer.h
Show All 14 Lines | 1 | /* | |||
---|---|---|---|---|---|
15 | You should have received a copy of the GNU General Public License along | 15 | You should have received a copy of the GNU General Public License along | ||
16 | with this program; if not, write to the Free Software Foundation, Inc., | 16 | with this program; if not, write to the Free Software Foundation, Inc., | ||
17 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef __KMAIL_COMPOSER_H__ | 20 | #ifndef __KMAIL_COMPOSER_H__ | ||
21 | #define __KMAIL_COMPOSER_H__ | 21 | #define __KMAIL_COMPOSER_H__ | ||
22 | 22 | | |||
23 | #include "kmail_export.h" | ||||
23 | #include "secondarywindow.h" | 24 | #include "secondarywindow.h" | ||
24 | 25 | | |||
25 | #include <qurl.h> | 26 | #include <qurl.h> | ||
26 | #include <kmime/kmime_message.h> | 27 | #include <kmime/kmime_message.h> | ||
27 | #include <AkonadiCore/collection.h> | 28 | #include <AkonadiCore/collection.h> | ||
28 | 29 | | |||
29 | namespace KMime | 30 | namespace KMime | ||
30 | { | 31 | { | ||
31 | class Content; | 32 | class Content; | ||
32 | } | 33 | } | ||
33 | 34 | | |||
34 | namespace KMail | 35 | namespace KMail | ||
35 | { | 36 | { | ||
36 | 37 | | |||
37 | class Composer : public KMail::SecondaryWindow | 38 | class KMAIL_EXPORT Composer : public KMail::SecondaryWindow | ||
38 | { | 39 | { | ||
39 | Q_OBJECT | 40 | Q_OBJECT | ||
40 | protected: | 41 | protected: | ||
41 | Composer(const char *name = Q_NULLPTR) : KMail::SecondaryWindow(name) {} | 42 | Composer(const char *name = Q_NULLPTR) : KMail::SecondaryWindow(name) {} | ||
42 | 43 | | |||
43 | public: | 44 | public: | ||
44 | enum TemplateContext { New, Reply, ReplyToAll, Forward, NoTemplate }; | 45 | enum TemplateContext { New, Reply, ReplyToAll, Forward, NoTemplate }; | ||
45 | enum VisibleHeaderFlag { | 46 | enum VisibleHeaderFlag { | ||
▲ Show 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | |||||
145 | 146 | | |||
146 | public: // kmcommand | 147 | public: // kmcommand | ||
147 | /** | 148 | /** | ||
148 | * Add an attachment to the list. | 149 | * Add an attachment to the list. | ||
149 | */ | 150 | */ | ||
150 | virtual void addAttach(KMime::Content *msgPart) = 0; | 151 | virtual void addAttach(KMime::Content *msgPart) = 0; | ||
151 | }; | 152 | }; | ||
152 | 153 | | |||
153 | Composer *makeComposer(const KMime::Message::Ptr &msg = KMime::Message::Ptr(), bool lastSignState = false, bool lastEncryptState = false, | 154 | KMAIL_EXPORT Composer *makeComposer(const KMime::Message::Ptr &msg = KMime::Message::Ptr(), bool lastSignState = false, bool lastEncryptState = false, | ||
154 | Composer::TemplateContext context = Composer::NoTemplate, | 155 | Composer::TemplateContext context = Composer::NoTemplate, | ||
155 | uint identity = 0, const QString &textSelection = QString(), | 156 | uint identity = 0, const QString &textSelection = QString(), | ||
156 | const QString &customTemplate = QString()); | 157 | const QString &customTemplate = QString()); | ||
157 | 158 | | |||
158 | } | 159 | } | ||
159 | 160 | | |||
160 | #endif // __KMAIL_COMPOSER_H__ | 161 | #endif // __KMAIL_COMPOSER_H__ |