diff options
Diffstat (limited to 'framework/accounts/accountsmodel.h')
-rw-r--r-- | framework/accounts/accountsmodel.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/framework/accounts/accountsmodel.h b/framework/accounts/accountsmodel.h index 3a2dd712..a32e2c79 100644 --- a/framework/accounts/accountsmodel.h +++ b/framework/accounts/accountsmodel.h | |||
@@ -34,6 +34,14 @@ class AccountsModel : public QIdentityProxyModel | |||
34 | 34 | ||
35 | Q_PROPERTY (QByteArray accountId READ accountId WRITE setAccountId) | 35 | Q_PROPERTY (QByteArray accountId READ accountId WRITE setAccountId) |
36 | public: | 36 | public: |
37 | enum Status { | ||
38 | OfflineStatus, | ||
39 | ConnectedStatus, | ||
40 | BusyStatus, | ||
41 | ErrorStatus | ||
42 | }; | ||
43 | Q_ENUMS(Status) | ||
44 | |||
37 | AccountsModel(QObject *parent = Q_NULLPTR); | 45 | AccountsModel(QObject *parent = Q_NULLPTR); |
38 | ~AccountsModel(); | 46 | ~AccountsModel(); |
39 | 47 | ||
@@ -43,9 +51,7 @@ public: | |||
43 | Name = Qt::UserRole + 1, | 51 | Name = Qt::UserRole + 1, |
44 | Icon, | 52 | Icon, |
45 | AccountId, | 53 | AccountId, |
46 | Status, | 54 | Status |
47 | StatusIcon, | ||
48 | ShowStatus | ||
49 | }; | 55 | }; |
50 | Q_ENUMS(Roles) | 56 | Q_ENUMS(Roles) |
51 | 57 | ||