diff options
Diffstat (limited to 'accounts/maildir/maildirsettings.h')
-rw-r--r-- | accounts/maildir/maildirsettings.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/accounts/maildir/maildirsettings.h b/accounts/maildir/maildirsettings.h index f79208db..be69ffb8 100644 --- a/accounts/maildir/maildirsettings.h +++ b/accounts/maildir/maildirsettings.h | |||
@@ -29,6 +29,10 @@ class MaildirSettings : public QObject | |||
29 | Q_PROPERTY(QValidator* pathValidator READ pathValidator CONSTANT) | 29 | Q_PROPERTY(QValidator* pathValidator READ pathValidator CONSTANT) |
30 | Q_PROPERTY(QString icon MEMBER mIcon NOTIFY changed) | 30 | Q_PROPERTY(QString icon MEMBER mIcon NOTIFY changed) |
31 | Q_PROPERTY(QString accountName MEMBER mName NOTIFY changed) | 31 | Q_PROPERTY(QString accountName MEMBER mName NOTIFY changed) |
32 | Q_PROPERTY(QString smtpServer MEMBER mSmtpServer NOTIFY smtpResourceChanged) | ||
33 | Q_PROPERTY(QValidator* smtpServerValidator READ smtpServerValidator CONSTANT) | ||
34 | Q_PROPERTY(QString smtpUsername MEMBER mSmtpUsername NOTIFY smtpResourceChanged) | ||
35 | Q_PROPERTY(QString smtpPassword MEMBER mSmtpPassword NOTIFY smtpResourceChanged) | ||
32 | 36 | ||
33 | public: | 37 | public: |
34 | MaildirSettings(QObject *parent = 0); | 38 | MaildirSettings(QObject *parent = 0); |
@@ -40,17 +44,24 @@ public: | |||
40 | QUrl path() const; | 44 | QUrl path() const; |
41 | QValidator *pathValidator() const; | 45 | QValidator *pathValidator() const; |
42 | 46 | ||
47 | QValidator *smtpServerValidator() const; | ||
48 | |||
43 | Q_INVOKABLE void save(); | 49 | Q_INVOKABLE void save(); |
44 | Q_INVOKABLE void remove(); | 50 | Q_INVOKABLE void remove(); |
45 | 51 | ||
46 | signals: | 52 | signals: |
47 | void pathChanged(); | 53 | void pathChanged(); |
54 | void smtpResourceChanged(); | ||
48 | void changed(); | 55 | void changed(); |
49 | 56 | ||
50 | private: | 57 | private: |
51 | QByteArray mIdentifier; | 58 | QByteArray mIdentifier; |
52 | QByteArray mAccountIdentifier; | 59 | QByteArray mAccountIdentifier; |
60 | QByteArray mMailtransportIdentifier; | ||
53 | QString mPath; | 61 | QString mPath; |
54 | QString mIcon; | 62 | QString mIcon; |
55 | QString mName; | 63 | QString mName; |
64 | QString mSmtpServer; | ||
65 | QString mSmtpUsername; | ||
66 | QString mSmtpPassword; | ||
56 | }; | 67 | }; |