Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::QObjectSettingsWrapper Class Reference

Almost-API reimplementation of https://github.com/sailfishos/mlite/blob/master/src/mdconfgroup.h that uses QSettings as a backend. More...

#include <qobjectsettingswrapper.h>

Inheritance diagram for Jellyfin::QObjectSettingsWrapper:
Jellyfin::ViewModel::Settings

Public Types

enum  BindOption { DontBindProperties , BindProperties }
 

Public Slots

void sync ()
 
void clear ()
 

Signals

void synchronousChanged ()
 
void pathChanged ()
 
void scopeChanged ()
 

Public Member Functions

 QObjectSettingsWrapper (QObject *parent=nullptr, BindOption option=DontBindProperties)
 
 QObjectSettingsWrapper (const QString &path, QObject *parent=nullptr, BindOption option=DontBindProperties)
 
virtual ~QObjectSettingsWrapper ()
 
bool isSynchronous () const
 
void setSynchronous (bool synchronous)
 
QString path () const
 
void setPath (const QString &path)
 
QObjectSettingsWrapperscope () const
 
void setScope (QObjectSettingsWrapper *scope)
 
Q_INVOKABLE QVariant value (const QString &key, const QVariant &defaultValue=QVariant(), int typeHint=QMetaType::UnknownType) const
 
Q_INVOKABLE void setValue (const QString &key, const QVariant &value)
 

Protected Member Functions

void resolveMetaObject (int propertyOffset=-1)
 

Properties

bool synchronous
 
QString path
 
Jellyfin::QObjectSettingsWrapperscope
 

Detailed Description

Almost-API reimplementation of https://github.com/sailfishos/mlite/blob/master/src/mdconfgroup.h that uses QSettings as a backend.

Member Enumeration Documentation

◆ BindOption

Enumerator
DontBindProperties 
BindProperties 

Constructor & Destructor Documentation

◆ QObjectSettingsWrapper() [1/2]

Jellyfin::QObjectSettingsWrapper::QObjectSettingsWrapper ( QObject * parent = nullptr,
BindOption option = DontBindProperties )
explicit

◆ QObjectSettingsWrapper() [2/2]

Jellyfin::QObjectSettingsWrapper::QObjectSettingsWrapper ( const QString & path,
QObject * parent = nullptr,
BindOption option = DontBindProperties )
explicit

◆ ~QObjectSettingsWrapper()

Jellyfin::QObjectSettingsWrapper::~QObjectSettingsWrapper ( )
virtual

Member Function Documentation

◆ clear

void Jellyfin::QObjectSettingsWrapper::clear ( )
slot

◆ isSynchronous()

bool Jellyfin::QObjectSettingsWrapper::isSynchronous ( ) const

◆ path()

QString Jellyfin::QObjectSettingsWrapper::path ( ) const

◆ pathChanged

void Jellyfin::QObjectSettingsWrapper::pathChanged ( )
signal

◆ resolveMetaObject()

void Jellyfin::QObjectSettingsWrapper::resolveMetaObject ( int propertyOffset = -1)
protected

◆ scope()

QObjectSettingsWrapper * Jellyfin::QObjectSettingsWrapper::scope ( ) const

◆ scopeChanged

void Jellyfin::QObjectSettingsWrapper::scopeChanged ( )
signal

◆ setPath()

void Jellyfin::QObjectSettingsWrapper::setPath ( const QString & path)

◆ setScope()

void Jellyfin::QObjectSettingsWrapper::setScope ( QObjectSettingsWrapper * scope)

◆ setSynchronous()

void Jellyfin::QObjectSettingsWrapper::setSynchronous ( bool synchronous)

◆ setValue()

void Jellyfin::QObjectSettingsWrapper::setValue ( const QString & key,
const QVariant & value )

◆ sync

void Jellyfin::QObjectSettingsWrapper::sync ( )
slot

◆ synchronousChanged

void Jellyfin::QObjectSettingsWrapper::synchronousChanged ( )
signal

◆ value()

QVariant Jellyfin::QObjectSettingsWrapper::value ( const QString & key,
const QVariant & defaultValue = QVariant(),
int typeHint = QMetaType::UnknownType ) const

Property Documentation

◆ path

QString Jellyfin::QObjectSettingsWrapper::path
readwrite

◆ scope

Jellyfin::QObjectSettingsWrapper * Jellyfin::QObjectSettingsWrapper::scope
readwrite

◆ synchronous

bool Jellyfin::QObjectSettingsWrapper::synchronous
readwrite

The documentation for this class was generated from the following files: