summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-03 02:47:37 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-03 02:47:37 +0200
commit914bdecc0b8e57a3b4e75b218b02909172ada7e3 (patch)
tree115c7d85758e503921cd5443af9e007b07849625 /include
parentf4f78b1d8a0e5f7065b50ae40766acb6521131b1 (diff)
Initial integration with matrix-structs
Diffstat (limited to 'include')
-rw-r--r--include/Login.h15
-rw-r--r--include/Profile.h36
-rw-r--r--include/Versions.h41
3 files changed, 0 insertions, 92 deletions
diff --git a/include/Login.h b/include/Login.h
index 2f74fab2..1c8b7898 100644
--- a/include/Login.h
+++ b/include/Login.h
@@ -36,18 +36,3 @@ private:
QString user_;
QString password_;
};
-
-class LoginResponse : public Deserializable
-{
-public:
- void deserialize(const QJsonDocument &data) override;
-
- QString getAccessToken() { return access_token_; };
- QString getHomeServer() { return home_server_; };
- QString getUserId() { return user_id_; };
-
-private:
- QString access_token_;
- QString home_server_;
- QString user_id_;
-};
diff --git a/include/Profile.h b/include/Profile.h
deleted file mode 100644
index d640db02..00000000
--- a/include/Profile.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * nheko Copyright (C) 2017 Konstantinos Sideris <siderisk@auth.gr>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#include <QJsonDocument>
-#include <QUrl>
-
-class Deserializable;
-
-class ProfileResponse : public Deserializable
-{
-public:
- void deserialize(const QJsonDocument &data) override;
-
- QUrl getAvatarUrl() { return avatar_url_; };
- QString getDisplayName() { return display_name_; };
-
-private:
- QUrl avatar_url_;
- QString display_name_;
-};
diff --git a/include/Versions.h b/include/Versions.h
deleted file mode 100644
index a603e391..00000000
--- a/include/Versions.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * nheko Copyright (C) 2017 Konstantinos Sideris <siderisk@auth.gr>
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#pragma once
-
-#include <QJsonDocument>
-#include <QVector>
-
-class Deserializable;
-
-class VersionsResponse : public Deserializable
-{
-public:
- void deserialize(const QJsonDocument &data) override;
-
- bool isVersionSupported(unsigned int major, unsigned int minor, unsigned int patch);
-
-private:
- struct Version_
- {
- unsigned int major_;
- unsigned int minor_;
- unsigned int patch_;
- };
-
- QVector<Version_> supported_versions_;
-};