Changeset View
Changeset View
Standalone View
Standalone View
src/core/rocketchataccount.cpp
Show First 20 Lines • Show All 357 Lines • ▼ Show 20 Line(s) | 357 | { | |||
---|---|---|---|---|---|
358 | return mRoomModel->inputMessage(roomId); | 358 | return mRoomModel->inputMessage(roomId); | ||
359 | } | 359 | } | ||
360 | 360 | | |||
361 | void RocketChatAccount::setUserCurrentMessage(const QString &message, const QString &roomId) | 361 | void RocketChatAccount::setUserCurrentMessage(const QString &message, const QString &roomId) | ||
362 | { | 362 | { | ||
363 | mRoomModel->setInputMessage(roomId, message); | 363 | mRoomModel->setInputMessage(roomId, message); | ||
364 | } | 364 | } | ||
365 | 365 | | |||
366 | void RocketChatAccount::setInputTextChanged(const QString &str, int position) | | |||
367 | { | | |||
368 | mInputTextManager->setInputTextChanged(str, position); | | |||
369 | } | | |||
370 | | ||||
371 | QString RocketChatAccount::replaceWord(const QString &newWord, const QString &str, int position) | | |||
372 | { | | |||
373 | return mInputTextManager->replaceWord(newWord, str, position); | | |||
374 | } | | |||
375 | | ||||
376 | void RocketChatAccount::textEditing(const QString &roomId, bool clearNotification) | 366 | void RocketChatAccount::textEditing(const QString &roomId, bool clearNotification) | ||
377 | { | 367 | { | ||
378 | mTypingNotification->textNotificationChanged(roomId, clearNotification); | 368 | mTypingNotification->textNotificationChanged(roomId, clearNotification); | ||
379 | } | 369 | } | ||
380 | 370 | | |||
381 | void RocketChatAccount::reactOnMessage(const QString &messageId, const QString &emoji, bool shouldReact) | 371 | void RocketChatAccount::reactOnMessage(const QString &messageId, const QString &emoji, bool shouldReact) | ||
382 | { | 372 | { | ||
383 | restApi()->reactOnMessage(messageId, emoji, shouldReact); | 373 | restApi()->reactOnMessage(messageId, emoji, shouldReact); | ||
▲ Show 20 Lines • Show All 985 Lines • ▼ Show 20 Line(s) | 1329 | { | |||
1369 | //TODO fill ??? or store QVector<AuthenticationInfo> | 1359 | //TODO fill ??? or store QVector<AuthenticationInfo> | ||
1370 | } | 1360 | } | ||
1371 | 1361 | | |||
1372 | PluginAuthenticationInterface *RocketChatAccount::defaultAuthenticationInterface() const | 1362 | PluginAuthenticationInterface *RocketChatAccount::defaultAuthenticationInterface() const | ||
1373 | { | 1363 | { | ||
1374 | return mDefaultAuthenticationInterface; | 1364 | return mDefaultAuthenticationInterface; | ||
1375 | } | 1365 | } | ||
1376 | 1366 | | |||
1377 | InputCompleterModel *RocketChatAccount::inputThreadMessageCompleterModel() const | | |||
1378 | { | | |||
1379 | return mInputThreadMessageTextManager->inputCompleterModel(); | | |||
1380 | } | | |||
1381 | | ||||
1382 | InputCompleterModel *RocketChatAccount::inputCompleterModel() const | | |||
1383 | { | | |||
1384 | return mInputTextManager->inputCompleterModel(); | | |||
1385 | } | | |||
1386 | | ||||
1387 | LoginMethodModel *RocketChatAccount::loginMethodModel() const | 1367 | LoginMethodModel *RocketChatAccount::loginMethodModel() const | ||
1388 | { | 1368 | { | ||
1389 | return mLoginMethodModel; | 1369 | return mLoginMethodModel; | ||
1390 | } | 1370 | } | ||
1391 | 1371 | | |||
1392 | QString RocketChatAccount::authToken() const | 1372 | QString RocketChatAccount::authToken() const | ||
1393 | { | 1373 | { | ||
1394 | return settings()->authToken(); | 1374 | return settings()->authToken(); | ||
▲ Show 20 Lines • Show All 380 Lines • ▼ Show 20 Line(s) | 1746 | { | |||
1775 | } | 1755 | } | ||
1776 | } | 1756 | } | ||
1777 | 1757 | | |||
1778 | AutotranslateLanguagesModel *RocketChatAccount::autoTranslateLanguagesModel() const | 1758 | AutotranslateLanguagesModel *RocketChatAccount::autoTranslateLanguagesModel() const | ||
1779 | { | 1759 | { | ||
1780 | return mAutoTranslateLanguagesModel; | 1760 | return mAutoTranslateLanguagesModel; | ||
1781 | } | 1761 | } | ||
1782 | 1762 | | |||
1783 | void RocketChatAccount::inputTextCompleter(const QJsonObject &obj) | | |||
1784 | { | | |||
1785 | mInputTextManager->inputTextCompleter(obj); | | |||
1786 | } | | |||
1787 | | ||||
1788 | void RocketChatAccount::updateUser(const QJsonObject &object) | 1763 | void RocketChatAccount::updateUser(const QJsonObject &object) | ||
1789 | { | 1764 | { | ||
1790 | mUserModel->updateUser(object); | 1765 | mUserModel->updateUser(object); | ||
1791 | } | 1766 | } | ||
1792 | 1767 | | |||
1793 | void RocketChatAccount::userStatusChanged(User *user) | 1768 | void RocketChatAccount::userStatusChanged(User *user) | ||
1794 | { | 1769 | { | ||
1795 | if (user->userId() == userID()) { | 1770 | if (user->userId() == userID()) { | ||
▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines |