Changeset View
Changeset View
Standalone View
Standalone View
src/core/model/rocketchataccountmodel.h
Show All 27 Lines | |||||
28 | { | 28 | { | ||
29 | Q_OBJECT | 29 | Q_OBJECT | ||
30 | Q_PROPERTY(int accountNumber READ accountNumber NOTIFY accountNumberChanged) | 30 | Q_PROPERTY(int accountNumber READ accountNumber NOTIFY accountNumberChanged) | ||
31 | public: | 31 | public: | ||
32 | enum AccountRoles { | 32 | enum AccountRoles { | ||
33 | Name = Qt::UserRole + 1, | 33 | Name = Qt::UserRole + 1, | ||
34 | SiteUrl, | 34 | SiteUrl, | ||
35 | UserName, | 35 | UserName, | ||
36 | Account | ||||
36 | }; | 37 | }; | ||
37 | Q_ENUM(AccountRoles) | 38 | Q_ENUM(AccountRoles) | ||
38 | 39 | | |||
39 | explicit RocketChatAccountModel(QObject *parent = nullptr); | 40 | explicit RocketChatAccountModel(QObject *parent = nullptr); | ||
40 | ~RocketChatAccountModel() override; | 41 | ~RocketChatAccountModel() override; | ||
41 | 42 | | |||
42 | Q_REQUIRED_RESULT int rowCount(const QModelIndex &parent = {}) const override; | 43 | Q_REQUIRED_RESULT int rowCount(const QModelIndex &parent = {}) const override; | ||
43 | Q_REQUIRED_RESULT QVariant data(const QModelIndex &index, int role) const override; | 44 | Q_REQUIRED_RESULT QVariant data(const QModelIndex &index, int role) const override; | ||
Show All 25 Lines |