Add accept/reject and use .cache

This commit is contained in:
Black Hat
2018-08-17 12:55:57 +08:00
parent 6f527402e0
commit 43e0ccaf2f
8 changed files with 95 additions and 41 deletions

View File

@@ -7,6 +7,20 @@
using namespace QMatrixClient;
class RoomType : public QObject {
Q_OBJECT
public:
enum Types {
Invited = 1,
Favorite,
Normal,
Direct,
Deprioritized,
};
REGISTER_ENUM(Types)
};
class RoomListModel : public QAbstractListModel {
Q_OBJECT
Q_PROPERTY(Connection* connection READ getConnection WRITE setConnection)
@@ -17,8 +31,7 @@ class RoomListModel : public QAbstractListModel {
AvatarRole,
TopicRole,
CategoryRole,
HighlightRole,
UnreadCountRole
UnreadCountRole,
};
RoomListModel(QObject* parent = 0);