Fixes https://github.com/audetto/AppleWin/issues/42 Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
26 lines
863 B
C++
26 lines
863 B
C++
#ifndef REGISTRY_H
|
|
#define REGISTRY_H
|
|
|
|
#include "linux/registry.h"
|
|
|
|
#include <QSettings>
|
|
|
|
class Configuration : public Registry
|
|
{
|
|
public:
|
|
std::string getString(const std::string & section, const std::string & key) const override;
|
|
DWORD getDWord(const std::string & section, const std::string & key) const override;
|
|
bool getBool(const std::string & section, const std::string & key) const override;
|
|
|
|
void putString(const std::string & section, const std::string & key, const std::string & value) override;
|
|
void putDWord(const std::string & section, const std::string & key, const DWORD value) override;
|
|
|
|
std::map<std::string, std::map<std::string, std::string>> getAllValues() const override;
|
|
|
|
private:
|
|
QSettings mySettings;
|
|
|
|
QVariant getVariant(const std::string & section, const std::string & key) const;
|
|
};
|
|
|
|
#endif // REGISTRY_H
|