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 993 Lines • ▼ Show 20 Line(s) | 1337 | { | |||
1377 | //TODO fill ??? or store QVector<AuthenticationInfo> | 1367 | //TODO fill ??? or store QVector<AuthenticationInfo> | ||
1378 | } | 1368 | } | ||
1379 | 1369 | | |||
1380 | PluginAuthenticationInterface *RocketChatAccount::defaultAuthenticationInterface() const | 1370 | PluginAuthenticationInterface *RocketChatAccount::defaultAuthenticationInterface() const | ||
1381 | { | 1371 | { | ||
1382 | return mDefaultAuthenticationInterface; | 1372 | return mDefaultAuthenticationInterface; | ||
1383 | } | 1373 | } | ||
1384 | 1374 | | |||
1385 | InputCompleterModel *RocketChatAccount::inputThreadMessageCompleterModel() const | | |||
1386 | { | | |||
1387 | return mInputThreadMessageTextManager->inputCompleterModel(); | | |||
1388 | } | | |||
1389 | | ||||
1390 | InputCompleterModel *RocketChatAccount::inputCompleterModel() const | | |||
1391 | { | | |||
1392 | return mInputTextManager->inputCompleterModel(); | | |||
1393 | } | | |||
1394 | | ||||
1395 | LoginMethodModel *RocketChatAccount::loginMethodModel() const | 1375 | LoginMethodModel *RocketChatAccount::loginMethodModel() const | ||
1396 | { | 1376 | { | ||
1397 | return mLoginMethodModel; | 1377 | return mLoginMethodModel; | ||
1398 | } | 1378 | } | ||
1399 | 1379 | | |||
1400 | QString RocketChatAccount::authToken() const | 1380 | QString RocketChatAccount::authToken() const | ||
1401 | { | 1381 | { | ||
1402 | return settings()->authToken(); | 1382 | return settings()->authToken(); | ||
▲ Show 20 Lines • Show All 380 Lines • ▼ Show 20 Line(s) | 1754 | { | |||
1783 | } | 1763 | } | ||
1784 | } | 1764 | } | ||
1785 | 1765 | | |||
1786 | AutotranslateLanguagesModel *RocketChatAccount::autoTranslateLanguagesModel() const | 1766 | AutotranslateLanguagesModel *RocketChatAccount::autoTranslateLanguagesModel() const | ||
1787 | { | 1767 | { | ||
1788 | return mAutoTranslateLanguagesModel; | 1768 | return mAutoTranslateLanguagesModel; | ||
1789 | } | 1769 | } | ||
1790 | 1770 | | |||
1791 | void RocketChatAccount::inputTextCompleter(const QJsonObject &obj) | | |||
1792 | { | | |||
1793 | mInputTextManager->inputTextCompleter(obj); | | |||
1794 | } | | |||
1795 | | ||||
1796 | void RocketChatAccount::updateUser(const QJsonObject &object) | 1771 | void RocketChatAccount::updateUser(const QJsonObject &object) | ||
1797 | { | 1772 | { | ||
1798 | mUserModel->updateUser(object); | 1773 | mUserModel->updateUser(object); | ||
1799 | } | 1774 | } | ||
1800 | 1775 | | |||
1801 | void RocketChatAccount::userStatusChanged(User *user) | 1776 | void RocketChatAccount::userStatusChanged(User *user) | ||
1802 | { | 1777 | { | ||
1803 | if (user->userId() == userID()) { | 1778 | if (user->userId() == userID()) { | ||
▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines |