summary refs log tree commit diff
path: root/include/Versions.h
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/Versions.h
parentAdd basic support for m.video messages (diff)
downloadnheko-914bdecc0b8e57a3b4e75b218b02909172ada7e3.tar.xz
Initial integration with matrix-structs
Diffstat (limited to 'include/Versions.h')
-rw-r--r--include/Versions.h41
1 files changed, 0 insertions, 41 deletions
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_; -};