Changeset View
Changeset View
Standalone View
Standalone View
src/core/rocketchataccount.h
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | 81 | { | |||
---|---|---|---|---|---|
107 | Q_PROPERTY(ServerConfigInfo* serverConfigInfo READ serverConfigInfo CONSTANT) | 107 | Q_PROPERTY(ServerConfigInfo* serverConfigInfo READ serverConfigInfo CONSTANT) | ||
108 | Q_PROPERTY(AutotranslateLanguagesModel* autoTranslateLanguagesModel READ autoTranslateLanguagesModel CONSTANT) | 108 | Q_PROPERTY(AutotranslateLanguagesModel* autoTranslateLanguagesModel READ autoTranslateLanguagesModel CONSTANT) | ||
109 | Q_PROPERTY(QString recordingVideoPath READ recordingVideoPath CONSTANT) | 109 | Q_PROPERTY(QString recordingVideoPath READ recordingVideoPath CONSTANT) | ||
110 | Q_PROPERTY(QString recordingImagePath READ recordingImagePath CONSTANT) | 110 | Q_PROPERTY(QString recordingImagePath READ recordingImagePath CONSTANT) | ||
111 | Q_PROPERTY(LoginMethodModel* loginMethodModel READ loginMethodModel CONSTANT) | 111 | Q_PROPERTY(LoginMethodModel* loginMethodModel READ loginMethodModel CONSTANT) | ||
112 | Q_PROPERTY(StatusModel* statusModel READ statusModel CONSTANT) | 112 | Q_PROPERTY(StatusModel* statusModel READ statusModel CONSTANT) | ||
113 | Q_PROPERTY(DiscussionsFilterProxyModel* discussionsFilterProxyModel READ discussionsFilterProxyModel CONSTANT) | 113 | Q_PROPERTY(DiscussionsFilterProxyModel* discussionsFilterProxyModel READ discussionsFilterProxyModel CONSTANT) | ||
114 | Q_PROPERTY(SearchChannelFilterProxyModel* searchChannelFilterProxyModel READ searchChannelFilterProxyModel CONSTANT) | 114 | Q_PROPERTY(SearchChannelFilterProxyModel* searchChannelFilterProxyModel READ searchChannelFilterProxyModel CONSTANT) | ||
115 | Q_PROPERTY(InputCompleterModel* inputCompleterModel READ inputCompleterModel CONSTANT) | 115 | Q_PROPERTY(InputTextManager* inputTextManager READ inputTextManager CONSTANT) | ||
116 | Q_PROPERTY(InputCompleterModel* inputThreadMessageCompleterModel READ inputThreadMessageCompleterModel CONSTANT) | 116 | Q_PROPERTY(InputTextManager* inputThreadMessageTextManager READ inputThreadMessageTextManager CONSTANT) | ||
117 | Q_PROPERTY(ThreadsFilterProxyModel* threadsFilterProxyModel READ threadsFilterProxyModel CONSTANT) | 117 | Q_PROPERTY(ThreadsFilterProxyModel* threadsFilterProxyModel READ threadsFilterProxyModel CONSTANT) | ||
118 | Q_PROPERTY(MessageModel* threadMessageModel READ threadMessageModel CONSTANT) | 118 | Q_PROPERTY(MessageModel* threadMessageModel READ threadMessageModel CONSTANT) | ||
119 | Q_PROPERTY(EmoticonModel* emoticonModel READ emoticonModel CONSTANT) | 119 | Q_PROPERTY(EmoticonModel* emoticonModel READ emoticonModel CONSTANT) | ||
120 | Q_PROPERTY(FilesForRoomFilterProxyModel* filesForRoomFilterProxyModel READ filesForRoomFilterProxyModel CONSTANT) | 120 | Q_PROPERTY(FilesForRoomFilterProxyModel* filesForRoomFilterProxyModel READ filesForRoomFilterProxyModel CONSTANT) | ||
121 | Q_PROPERTY(SearchMessageFilterProxyModel* searchMessageFilterProxyModel READ searchMessageFilterProxyModel CONSTANT) | 121 | Q_PROPERTY(SearchMessageFilterProxyModel* searchMessageFilterProxyModel READ searchMessageFilterProxyModel CONSTANT) | ||
122 | Q_PROPERTY(ListMessagesModelFilterProxyModel* listMessagesFilterProxyModel READ listMessagesFilterProxyModel CONSTANT) | 122 | Q_PROPERTY(ListMessagesModelFilterProxyModel* listMessagesFilterProxyModel READ listMessagesFilterProxyModel CONSTANT) | ||
123 | Q_PROPERTY(RoomFilterProxyModel* roomFilterProxyModel READ roomFilterProxyModel CONSTANT) | 123 | Q_PROPERTY(RoomFilterProxyModel* roomFilterProxyModel READ roomFilterProxyModel CONSTANT) | ||
124 | Q_PROPERTY(UsersModel* usersModel READ usersModel CONSTANT) | 124 | Q_PROPERTY(UsersModel* usersModel READ usersModel CONSTANT) | ||
▲ Show 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 127 | public: | |||
200 | Q_INVOKABLE Q_REQUIRED_RESULT QUrl attachmentUrl(const QString &url); | 200 | Q_INVOKABLE Q_REQUIRED_RESULT QUrl attachmentUrl(const QString &url); | ||
201 | Q_INVOKABLE void loadHistory(const QString &roomID, const QString &channelType = QString(), bool initial = false); | 201 | Q_INVOKABLE void loadHistory(const QString &roomID, const QString &channelType = QString(), bool initial = false); | ||
202 | Q_INVOKABLE void channelAndPrivateAutocomplete(const QString &pattern); | 202 | Q_INVOKABLE void channelAndPrivateAutocomplete(const QString &pattern); | ||
203 | 203 | | |||
204 | Q_INVOKABLE void roomFiles(const QString &roomId, const QString &channelType = QString()); | 204 | Q_INVOKABLE void roomFiles(const QString &roomId, const QString &channelType = QString()); | ||
205 | Q_INVOKABLE void addUserToRoom(const QString &username, const QString &roomId, const QString &channelType); | 205 | Q_INVOKABLE void addUserToRoom(const QString &username, const QString &roomId, const QString &channelType); | ||
206 | Q_INVOKABLE void changeDefaultAuthentication(int index); | 206 | Q_INVOKABLE void changeDefaultAuthentication(int index); | ||
207 | Q_INVOKABLE void messageSearch(const QString &pattern, const QString &rid); | 207 | Q_INVOKABLE void messageSearch(const QString &pattern, const QString &rid); | ||
208 | Q_INVOKABLE void setInputTextChanged(const QString &str, int position); | | |||
209 | Q_INVOKABLE Q_REQUIRED_RESULT QString replaceWord(const QString &newWord, const QString &str, int position); | | |||
210 | InputTextManager *inputTextManager() const { return mInputTextManager; } | 208 | InputTextManager *inputTextManager() const { return mInputTextManager; } | ||
209 | InputTextManager *inputThreadMessageTextManager() const { return mInputThreadMessageTextManager; } | ||||
211 | Q_INVOKABLE void blockUser(const QString &userId, bool block); | 210 | Q_INVOKABLE void blockUser(const QString &userId, bool block); | ||
212 | Q_INVOKABLE Q_REQUIRED_RESULT QString avatarUrlFromDirectChannel(const QString &rid); | 211 | Q_INVOKABLE Q_REQUIRED_RESULT QString avatarUrlFromDirectChannel(const QString &rid); | ||
213 | Q_INVOKABLE void deleteFileMessage(const QString &roomId, const QString &fileId, const QString &channelType); | 212 | Q_INVOKABLE void deleteFileMessage(const QString &roomId, const QString &fileId, const QString &channelType); | ||
214 | Q_INVOKABLE void openDocumentation(); | 213 | Q_INVOKABLE void openDocumentation(); | ||
215 | Q_INVOKABLE void clearSearchModel(); | 214 | Q_INVOKABLE void clearSearchModel(); | ||
216 | Q_INVOKABLE void reactOnMessage(const QString &messageId, const QString &emoji, bool shouldReact); | 215 | Q_INVOKABLE void reactOnMessage(const QString &messageId, const QString &emoji, bool shouldReact); | ||
217 | Q_INVOKABLE void ignoreUser(const QString &rid, const QString &userId, bool ignore); | 216 | Q_INVOKABLE void ignoreUser(const QString &rid, const QString &userId, bool ignore); | ||
218 | Q_INVOKABLE void channelInfo(const QString &roomId); | 217 | Q_INVOKABLE void channelInfo(const QString &roomId); | ||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
265 | MessageModel *threadMessageModel() const; | 264 | MessageModel *threadMessageModel() const; | ||
266 | EmoticonModel *emoticonModel() const; | 265 | EmoticonModel *emoticonModel() const; | ||
267 | SearchChannelFilterProxyModel *searchChannelFilterProxyModel() const; | 266 | SearchChannelFilterProxyModel *searchChannelFilterProxyModel() const; | ||
268 | AutotranslateLanguagesModel *autoTranslateLanguagesModel() const; | 267 | AutotranslateLanguagesModel *autoTranslateLanguagesModel() const; | ||
269 | DiscussionsFilterProxyModel *discussionsFilterProxyModel() const; | 268 | DiscussionsFilterProxyModel *discussionsFilterProxyModel() const; | ||
270 | SearchChannelModel *searchChannelModel() const; | 269 | SearchChannelModel *searchChannelModel() const; | ||
271 | UserCompleterModel *userCompleterModel() const; | 270 | UserCompleterModel *userCompleterModel() const; | ||
272 | RocketChatAccountSettings *settings() const; | 271 | RocketChatAccountSettings *settings() const; | ||
273 | InputCompleterModel *inputCompleterModel() const; | | |||
274 | InputCompleterModel *inputThreadMessageCompleterModel() const; | | |||
275 | ThreadsFilterProxyModel *threadsFilterProxyModel() const; | 272 | ThreadsFilterProxyModel *threadsFilterProxyModel() const; | ||
276 | 273 | | |||
277 | DDPClient *ddp(); | 274 | DDPClient *ddp(); | ||
278 | RoomModel *roomModel() const; | 275 | RoomModel *roomModel() const; | ||
279 | LoginMethodModel *loginMethodModel() const; | 276 | LoginMethodModel *loginMethodModel() const; | ||
280 | Q_REQUIRED_RESULT bool editingMode() const; | 277 | Q_REQUIRED_RESULT bool editingMode() const; | ||
281 | Q_REQUIRED_RESULT QString serverVersionStr() const; | 278 | Q_REQUIRED_RESULT QString serverVersionStr() const; | ||
282 | Q_REQUIRED_RESULT bool sortUnreadOnTop() const; | 279 | Q_REQUIRED_RESULT bool sortUnreadOnTop() const; | ||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
327 | 324 | | |||
328 | void membersInRoom(const QString &roomId, const QString &roomType); | 325 | void membersInRoom(const QString &roomId, const QString &roomType); | ||
329 | void parseUsersForRooms(const QJsonObject &obj, const QString &roomId); | 326 | void parseUsersForRooms(const QJsonObject &obj, const QString &roomId); | ||
330 | 327 | | |||
331 | void loadAutoCompleteChannel(const QJsonObject &obj); | 328 | void loadAutoCompleteChannel(const QJsonObject &obj); | ||
332 | 329 | | |||
333 | void insertCompleterUsers(); | 330 | void insertCompleterUsers(); | ||
334 | 331 | | |||
335 | void inputTextCompleter(const QJsonObject &obj); | | |||
336 | PluginAuthenticationInterface *defaultAuthenticationInterface() const; | 332 | PluginAuthenticationInterface *defaultAuthenticationInterface() const; | ||
337 | 333 | | |||
338 | SearchMessageModel *searchMessageModel() const; | 334 | SearchMessageModel *searchMessageModel() const; | ||
339 | 335 | | |||
340 | void updateUser(const QJsonObject &object); | 336 | void updateUser(const QJsonObject &object); | ||
341 | 337 | | |||
342 | void removeSettings(); | 338 | void removeSettings(); | ||
343 | 339 | | |||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |