19#ifndef JELLYFIN_QOBJECTSETTINGSWRAPPER_H
20#define JELLYFIN_QOBJECTSETTINGSWRAPPER_H
26using QObjectSettingsWrapper = MDConfGroup;
43#include <QScopedPointer>
47class QObjectSettingsWrapperPrivate;
78 Q_INVOKABLE QVariant
value(
const QString &key,
79 const QVariant &defaultValue = QVariant(),
80 int typeHint = QMetaType::UnknownType)
const;
81 Q_INVOKABLE
void setValue(
const QString &key,
const QVariant &
value);
92 void propertyChanged();
94 QScopedPointer<QObjectSettingsWrapperPrivate> d_ptr;
Almost-API reimplementation of https://github.com/sailfishos/mlite/blob/master/src/mdconfgroup....
Definition qobjectsettingswrapper.h:53
bool synchronous
Definition qobjectsettingswrapper.h:56
QObjectSettingsWrapper(QObject *parent=nullptr, BindOption option=DontBindProperties)
Definition qobjectsettingswrapper.cpp:59
void synchronousChanged()
Jellyfin::QObjectSettingsWrapper * scope
Definition qobjectsettingswrapper.h:58
QString path
Definition qobjectsettingswrapper.h:57
void resolveMetaObject(int propertyOffset=-1)
Definition qobjectsettingswrapper.cpp:170
BindOption
Definition qobjectsettingswrapper.h:60
@ DontBindProperties
Definition qobjectsettingswrapper.h:61
@ BindProperties
Definition qobjectsettingswrapper.h:62
void sync()
Definition qobjectsettingswrapper.cpp:160
void setSynchronous(bool synchronous)
Definition qobjectsettingswrapper.cpp:86
Q_INVOKABLE void setValue(const QString &key, const QVariant &value)
Definition qobjectsettingswrapper.cpp:150
virtual ~QObjectSettingsWrapper()
Definition qobjectsettingswrapper.cpp:80
void setPath(const QString &path)
Definition qobjectsettingswrapper.cpp:91
void setScope(QObjectSettingsWrapper *scope)
Definition qobjectsettingswrapper.cpp:120
Q_INVOKABLE QVariant value(const QString &key, const QVariant &defaultValue=QVariant(), int typeHint=QMetaType::UnknownType) const
Definition qobjectsettingswrapper.cpp:140
bool isSynchronous() const
Definition qobjectsettingswrapper.cpp:82
void clear()
Definition qobjectsettingswrapper.cpp:164