/* * WiVRn VR streaming * Copyright (C) 2024 Guillaume Meunier * * 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 . */ #pragma once #include #include #include #include #include #include class QProcess; class adb { public: class device { std::string _serial; std::string _state; std::map _properties; friend class adb; public: device() = default; device(const device &) = default; device(device &&) = default; device & operator=(const device &) = default; device & operator=(device &&) = default; const auto & serial() const { return _serial; }; const auto & state() const { return _state; }; const auto & properties() const { return _properties; }; bool operator==(const device & other) const { return _serial == other._serial; } std::unique_ptr install(const std::filesystem::path & path); std::unique_ptr uninstall(const std::string & app); // void start(const std::string& app); // void stop(const std::string& app); // void start(const std::string& app, const std::string& action, const std::string& uri); }; std::shared_ptr>> devices(); };