mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +00:00
e40e495e11
Some more changes Changes Fix review items Rename init-settings to restore-native-settings Restore application name (thanks @churik !) Remove org name/domain setting for desktop Change organization name to include domain Re-use default values in :desktop/desktop Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
33 lines
774 B
C++
33 lines
774 B
C++
#ifndef DESKTOPCONFIG_H
|
|
#define DESKTOPCONFIG_H
|
|
|
|
#include "moduleinterface.h"
|
|
#include <QVariant>
|
|
#include <QLoggingCategory>
|
|
|
|
Q_DECLARE_LOGGING_CATEGORY(CONFIG)
|
|
|
|
class Bridge;
|
|
class DesktopConfig : public QObject, public ModuleInterface {
|
|
Q_OBJECT
|
|
Q_INTERFACES(ModuleInterface)
|
|
|
|
public:
|
|
Q_INVOKABLE DesktopConfig(QObject* parent = 0);
|
|
virtual ~DesktopConfig();
|
|
|
|
void setBridge(Bridge* bridge) override;
|
|
|
|
QString moduleName() override;
|
|
QList<ModuleMethod*> methodsToExport() override;
|
|
QVariantMap constantsToExport() override;
|
|
|
|
Q_INVOKABLE void getValue(const QString& name, double callback);
|
|
Q_INVOKABLE void setValue(const QString& name, const QVariant& value);
|
|
|
|
private:
|
|
Bridge* bridge = nullptr;
|
|
};
|
|
|
|
#endif // DESKTOPCONFIG_H
|