Changeset View
Changeset View
Standalone View
Standalone View
src/matrix-sdk.hpp
| Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | Q_SIGNALS: | ||||
| void discoverFailed(QString errorCode, QString errorMsg); | void discoverFailed(QString errorCode, QString errorMsg); | ||||
| void logoutSuccessful(); | void logoutSuccessful(); | ||||
| void logoutFailed(QString errorCode, QString errorMsg); | void logoutFailed(QString errorCode, QString errorMsg); | ||||
| void receivedMessage(QString roomId, QString eventId); | void receivedMessage(QString roomId, QString eventId); | ||||
| void sessionChanged(); | void sessionChanged(); | ||||
| void loadSessionFinished(QString sessionName, MatrixSdk::LoadSessionResult result); | |||||
| public Q_SLOTS: | public Q_SLOTS: | ||||
| void login(const QString &userId, const QString &password, const QString &homeserverUrl); | void login(const QString &userId, const QString &password, const QString &homeserverUrl); | ||||
| void logout(); | void logout(); | ||||
| /** | /** | ||||
| * Serialize data to <AppDataDir>/sessions/<userid>/<deviceid>/ | * Serialize data to <AppDataDir>/sessions/<userid>/<deviceid>/ | ||||
| * | * | ||||
| * If not logged in, do nothing. | * If not logged in, do nothing. | ||||
| */ | */ | ||||
| void serializeToFile() const; | void serializeToFile() const; | ||||
| /** | /** | ||||
| * Load session at <AppDataDir>/sessions/<sessionName> . | * Load session at <AppDataDir>/sessions/<sessionName> asynchronously. | ||||
| * | * | ||||
| * @param sessionName A string in the form of <userid>/<deviceid> . | * When the session is loaded or when there is an error, loadSessionFinished | ||||
| * will be called with the result. | |||||
| * | * | ||||
| * @return true if successful, false otherwise. | * @param sessionName A string in the form of <userid>/<deviceid> . | ||||
| */ | */ | ||||
| LoadSessionResult loadSession(QString sessionName); | void loadSession(QString sessionName); | ||||
| /** | /** | ||||
| * Delete session at <AppDataDir>/sessions/<sessionName> . | * Delete session at <AppDataDir>/sessions/<sessionName> . | ||||
| * | * | ||||
| * @param sessionName A string in the form of <userid>/<deviceid> . | * @param sessionName A string in the form of <userid>/<deviceid> . | ||||
| * | * | ||||
| * @return true if successful, false otherwise. | * @return true if successful, false otherwise. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines | |||||