diff options
Diffstat (limited to 'framework/domain/composercontroller.h')
-rw-r--r-- | framework/domain/composercontroller.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/framework/domain/composercontroller.h b/framework/domain/composercontroller.h index b7ff0757..11da517e 100644 --- a/framework/domain/composercontroller.h +++ b/framework/domain/composercontroller.h | |||
@@ -33,10 +33,20 @@ namespace KMime { | |||
33 | class Message; | 33 | class Message; |
34 | } | 34 | } |
35 | 35 | ||
36 | class ComposerContext : public Kube::Context { | ||
37 | Q_OBJECT | ||
38 | KUBE_CONTEXT_PROPERTY(QString, To, to) | ||
39 | KUBE_CONTEXT_PROPERTY(QString, Cc, cc) | ||
40 | KUBE_CONTEXT_PROPERTY(QString, Bcc, bcc) | ||
41 | KUBE_CONTEXT_PROPERTY(QString, From, from) | ||
42 | KUBE_CONTEXT_PROPERTY(QString, Subject, subject) | ||
43 | KUBE_CONTEXT_PROPERTY(QString, Body, body) | ||
44 | }; | ||
45 | |||
36 | class ComposerController : public QObject | 46 | class ComposerController : public QObject |
37 | { | 47 | { |
38 | Q_OBJECT | 48 | Q_OBJECT |
39 | Q_PROPERTY (Kube::Context* mailContext READ mailContext WRITE setMailContext) | 49 | Q_PROPERTY (Kube::Context* mailContext READ mailContext CONSTANT) |
40 | Q_PROPERTY (int currentIdentityIndex READ currentIdentityIndex WRITE setCurrentIdentityIndex) | 50 | Q_PROPERTY (int currentIdentityIndex READ currentIdentityIndex WRITE setCurrentIdentityIndex) |
41 | 51 | ||
42 | Q_PROPERTY (QString recepientSearchString READ recepientSearchString WRITE setRecepientSearchString) | 52 | Q_PROPERTY (QString recepientSearchString READ recepientSearchString WRITE setRecepientSearchString) |
@@ -49,8 +59,7 @@ class ComposerController : public QObject | |||
49 | public: | 59 | public: |
50 | explicit ComposerController(QObject *parent = Q_NULLPTR); | 60 | explicit ComposerController(QObject *parent = Q_NULLPTR); |
51 | 61 | ||
52 | Kube::Context* mailContext() const; | 62 | Kube::Context* mailContext(); |
53 | void setMailContext(Kube::Context *context); | ||
54 | 63 | ||
55 | QString recepientSearchString() const; | 64 | QString recepientSearchString() const; |
56 | void setRecepientSearchString(const QString &body); | 65 | void setRecepientSearchString(const QString &body); |
@@ -78,5 +87,5 @@ private: | |||
78 | void setMessage(const QSharedPointer<KMime::Message> &msg); | 87 | void setMessage(const QSharedPointer<KMime::Message> &msg); |
79 | 88 | ||
80 | int m_currentAccountIndex = -1; | 89 | int m_currentAccountIndex = -1; |
81 | Kube::Context *mContext; | 90 | ComposerContext mContext; |
82 | }; | 91 | }; |