Changeset View
Changeset View
Standalone View
Standalone View
src/core/ddpapi/ddpclient.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
90 | void subscribe(const QString &collection, const QJsonArray ¶ms); | 90 | void subscribe(const QString &collection, const QJsonArray ¶ms); | ||
91 | 91 | | |||
92 | /** | 92 | /** | ||
93 | * @brief Calls method to log in the user with valid username and password | 93 | * @brief Calls method to log in the user with valid username and password | ||
94 | */ | 94 | */ | ||
95 | Q_INVOKABLE void login(); | 95 | Q_INVOKABLE void login(); | ||
96 | 96 | | |||
97 | /** | 97 | /** | ||
98 | * @brief Closes the websocket connection | | |||
99 | */ | | |||
100 | void logOut(); | | |||
101 | | ||||
102 | /** | | |||
103 | * @brief Check whether websocket is connected at url | 98 | * @brief Check whether websocket is connected at url | ||
104 | * | 99 | * | ||
105 | * @return true if connected, else false | 100 | * @return true if connected, else false | ||
106 | */ | 101 | */ | ||
107 | Q_REQUIRED_RESULT bool isConnected() const; | 102 | Q_REQUIRED_RESULT bool isConnected() const; | ||
108 | 103 | | |||
109 | /** | 104 | /** | ||
110 | * @brief Check whether user is logged in | 105 | * @brief Check whether user is logged in | ||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |