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 | 208 | InputTextManager *inputTextManager() const | ||
211 | { | 209 | { | ||
212 | return mInputTextManager; | 210 | return mInputTextManager; | ||
213 | } | 211 | } | ||
214 | 212 | InputTextManager *inputThreadMessageTextManager() const | |||
213 | { | ||||
214 | return mInputThreadMessageTextManager; | ||||
215 | } | ||||
215 | Q_INVOKABLE void blockUser(const QString &userId, bool block); | 216 | Q_INVOKABLE void blockUser(const QString &userId, bool block); | ||
216 | Q_INVOKABLE Q_REQUIRED_RESULT QString avatarUrlFromDirectChannel(const QString &rid); | 217 | Q_INVOKABLE Q_REQUIRED_RESULT QString avatarUrlFromDirectChannel(const QString &rid); | ||
217 | Q_INVOKABLE void deleteFileMessage(const QString &roomId, const QString &fileId, const QString &channelType); | 218 | Q_INVOKABLE void deleteFileMessage(const QString &roomId, const QString &fileId, const QString &channelType); | ||
218 | Q_INVOKABLE void openDocumentation(); | 219 | Q_INVOKABLE void openDocumentation(); | ||
219 | Q_INVOKABLE void clearSearchModel(); | 220 | Q_INVOKABLE void clearSearchModel(); | ||
220 | Q_INVOKABLE void reactOnMessage(const QString &messageId, const QString &emoji, bool shouldReact); | 221 | Q_INVOKABLE void reactOnMessage(const QString &messageId, const QString &emoji, bool shouldReact); | ||
221 | Q_INVOKABLE void ignoreUser(const QString &rid, const QString &userId, bool ignore); | 222 | Q_INVOKABLE void ignoreUser(const QString &rid, const QString &userId, bool ignore); | ||
222 | Q_INVOKABLE void channelInfo(const QString &roomId); | 223 | Q_INVOKABLE void channelInfo(const QString &roomId); | ||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | |||||
269 | MessageModel *threadMessageModel() const; | 270 | MessageModel *threadMessageModel() const; | ||
270 | EmoticonModel *emoticonModel() const; | 271 | EmoticonModel *emoticonModel() const; | ||
271 | SearchChannelFilterProxyModel *searchChannelFilterProxyModel() const; | 272 | SearchChannelFilterProxyModel *searchChannelFilterProxyModel() const; | ||
272 | AutotranslateLanguagesModel *autoTranslateLanguagesModel() const; | 273 | AutotranslateLanguagesModel *autoTranslateLanguagesModel() const; | ||
273 | DiscussionsFilterProxyModel *discussionsFilterProxyModel() const; | 274 | DiscussionsFilterProxyModel *discussionsFilterProxyModel() const; | ||
274 | SearchChannelModel *searchChannelModel() const; | 275 | SearchChannelModel *searchChannelModel() const; | ||
275 | UserCompleterModel *userCompleterModel() const; | 276 | UserCompleterModel *userCompleterModel() const; | ||
276 | RocketChatAccountSettings *settings() const; | 277 | RocketChatAccountSettings *settings() const; | ||
277 | InputCompleterModel *inputCompleterModel() const; | | |||
278 | InputCompleterModel *inputThreadMessageCompleterModel() const; | | |||
279 | ThreadsFilterProxyModel *threadsFilterProxyModel() const; | 278 | ThreadsFilterProxyModel *threadsFilterProxyModel() const; | ||
280 | 279 | | |||
281 | DDPClient *ddp(); | 280 | DDPClient *ddp(); | ||
282 | RoomModel *roomModel() const; | 281 | RoomModel *roomModel() const; | ||
283 | LoginMethodModel *loginMethodModel() const; | 282 | LoginMethodModel *loginMethodModel() const; | ||
284 | Q_REQUIRED_RESULT bool editingMode() const; | 283 | Q_REQUIRED_RESULT bool editingMode() const; | ||
285 | Q_REQUIRED_RESULT QString serverVersionStr() const; | 284 | Q_REQUIRED_RESULT QString serverVersionStr() const; | ||
286 | Q_REQUIRED_RESULT bool sortUnreadOnTop() const; | 285 | Q_REQUIRED_RESULT bool sortUnreadOnTop() const; | ||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
331 | 330 | | |||
332 | void membersInRoom(const QString &roomId, const QString &roomType); | 331 | void membersInRoom(const QString &roomId, const QString &roomType); | ||
333 | void parseUsersForRooms(const QJsonObject &obj, const QString &roomId); | 332 | void parseUsersForRooms(const QJsonObject &obj, const QString &roomId); | ||
334 | 333 | | |||
335 | void loadAutoCompleteChannel(const QJsonObject &obj); | 334 | void loadAutoCompleteChannel(const QJsonObject &obj); | ||
336 | 335 | | |||
337 | void insertCompleterUsers(); | 336 | void insertCompleterUsers(); | ||
338 | 337 | | |||
339 | void inputTextCompleter(const QJsonObject &obj); | | |||
340 | PluginAuthenticationInterface *defaultAuthenticationInterface() const; | 338 | PluginAuthenticationInterface *defaultAuthenticationInterface() const; | ||
341 | 339 | | |||
342 | SearchMessageModel *searchMessageModel() const; | 340 | SearchMessageModel *searchMessageModel() const; | ||
343 | 341 | | |||
344 | void updateUser(const QJsonObject &object); | 342 | void updateUser(const QJsonObject &object); | ||
345 | 343 | | |||
346 | void removeSettings(); | 344 | void removeSettings(); | ||
347 | 345 | | |||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |