/* Copyright © 2015 Gluzskiy Alexandr (sss) This file is part of Unknown Download Manager (UDM). UDM 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 2 of the License, or (at your option) any later version. UDM 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 UDM. If not, see . */ #ifndef API_CORE_H_INCLUDED #define API_CORE_H_INCLUDED #include #include #include #include "settings.h" class module_base; class core_api { public: //core virtual std::map get_module_settings(module_base *m); virtual std::map get_core_settings(); //metadata virtual bool metadata_set(module_base *m, const std::string &setting_name, const std::vector &data); virtual bool metadata_get(module_base *m, const std::string &setting_name, std::vector &data); virtual bool metadata_remove(module_base *m, const std::string &setting_name); virtual std::list metadata_setting_list(module_base *m); }; #endif // API_CORE_H_INCLUDED