Desktop client for Nextcloud to edit your notes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
NNotes/config.h

39 lines
671 B

#ifndef CONFIG_H
#define CONFIG_H
// STL includes
#include <map>
#include <string>
#include <vector>
// Qt includes
#include <QString>
// external includes
#include "config4cpp/Configuration.h"
// project includes
#include "log.h"
namespace tai {
class config
{
public:
config() = delete;
explicit config(std::vector<QString> const& options);
~config();
inline QString const& options(QString const& o) { return _options.at(o); };
void insert(QString const& scope, QString const& localName, QString const& strValue);
QString getNextcloudFolder();
private:
std::map<QString, QString> _options;
config4cpp::Configuration* _config;
};
}
#endif // CONFIG_H