Changeset View
Changeset View
Standalone View
Standalone View
src/core/ruqola.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 58 | #endif | |||
---|---|---|---|---|---|
60 | Q_INVOKABLE RocketChatAccount *rocketChatAccount() const; | 60 | Q_INVOKABLE RocketChatAccount *rocketChatAccount() const; | ||
61 | 61 | | |||
62 | Q_INVOKABLE KAboutData applicationData() const; | 62 | Q_INVOKABLE KAboutData applicationData() const; | ||
63 | 63 | | |||
64 | Q_INVOKABLE AccountManager *accountManager() const; | 64 | Q_INVOKABLE AccountManager *accountManager() const; | ||
65 | 65 | | |||
66 | explicit Ruqola(QObject *parent = nullptr); | 66 | explicit Ruqola(QObject *parent = nullptr); | ||
67 | 67 | | |||
68 | void setCurrentAccount(const QString &accountName); | 68 | void setCurrentAccount(const QString &accountName, bool showLastRoom); | ||
69 | private: | 69 | private: | ||
70 | Q_DISABLE_COPY(Ruqola) | 70 | Q_DISABLE_COPY(Ruqola) | ||
71 | void updateNotification(bool hasAlert, int nbUnread, const QString &accountName); | 71 | void updateNotification(bool hasAlert, int nbUnread, const QString &accountName); | ||
72 | void logout(const QString &accountName); | 72 | void logout(const QString &accountName); | ||
73 | AccountManager *mAccountManager = nullptr; | 73 | AccountManager *mAccountManager = nullptr; | ||
74 | 74 | | |||
75 | #ifndef Q_OS_ANDROID | 75 | #ifndef Q_OS_ANDROID | ||
76 | Notification *mNotification = nullptr; | 76 | Notification *mNotification = nullptr; | ||
Show All 13 Lines |