diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-08-09 08:16:50 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2015-08-09 08:16:50 +0300 |
commit | 704bf55df5fae51bf0e8d86679ee7f34e22553d2 (patch) | |
tree | 68385079dec7204d8c646d4937e93d68cd4cbd42 /server/include/config.h | |
parent | 5a4cbe950cd653385fc6e93aa860542b01bdf1bc (diff) |
client-qt:
socket wraper to work with both ssl and plain connection
server:
socket wraper to work with both ssl and plain connection
bit of config related changes
ssl support (untested)
Diffstat (limited to 'server/include/config.h')
-rw-r--r-- | server/include/config.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/server/include/config.h b/server/include/config.h new file mode 100644 index 0000000..2afbde3 --- /dev/null +++ b/server/include/config.h @@ -0,0 +1,55 @@ +/* + 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 <http://www.gnu.org/licenses/>. + +*/ + + +#ifndef CONFIG_H_INCLUDED +#define CONFIG_H_INCLUDED + +#include <boost/property_tree/ptree.hpp> +#include <boost/property_tree/info_parser.hpp> + +namespace bpt = boost::property_tree; + +class module_metadata_storage; + +struct settings_s +{ + settings_s() + { + verbosity = 0; + } + short verbosity; +}; + +struct runtime_config_s +{ + //TODO: define metadata and data storage modules per module alongside with default ones + bpt::ptree config_file; + module_metadata_storage *default_metadata_storage; + settings_s settings; + runtime_config_s() + { + default_metadata_storage = nullptr; + } +}; + + + +#endif |