QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlSettings.h File Reference

Declare the class QtlSettings, a base class for application settings. More...

Classes

class  QtlSettings
 A base class for application settings. More...
 

Macros

#define QTL_SETTINGS_BOOL(getter, setter, defaultValue)
 Create getter and setter for a boolean setting. More...
 
#define QTL_SETTINGS_ENUM(getter, setter, enumType, defaultValue)
 Create getter and setter for an enumeration setting. More...
 
#define QTL_SETTINGS_INT(getter, setter, defaultValue)
 Create getter and setter for an integer setting. More...
 
#define QTL_SETTINGS_STRING(getter, setter, defaultValue)
 Create getter and setter for a string setting. More...
 

Detailed Description

Declare the class QtlSettings, a base class for application settings.

Qtl, Qt utility library.

Macro Definition Documentation

◆ QTL_SETTINGS_STRING

#define QTL_SETTINGS_STRING (   getter,
  setter,
  defaultValue 
)

Create getter and setter for a string setting.

The getter and setter definitions are inlined. These accessors simply load and store the option without further processing.

Parameters
getterName of the getter method (also used as setting name).
setterName of the setter method.
defaultValueDefault value when the setting is unset.

◆ QTL_SETTINGS_INT

#define QTL_SETTINGS_INT (   getter,
  setter,
  defaultValue 
)

Create getter and setter for an integer setting.

The getter and setter definitions are inlined. These accessors simply load and store the option without further processing.

Parameters
getterName of the getter method (also used as setting name).
setterName of the setter method.
defaultValueDefault value when the setting is unset.

◆ QTL_SETTINGS_ENUM

#define QTL_SETTINGS_ENUM (   getter,
  setter,
  enumType,
  defaultValue 
)

Create getter and setter for an enumeration setting.

The getter and setter definitions are inlined. These accessors simply load and store the option without further processing. The enumeration values are stored as integer value. Be sure to preserve the order of enumeration values in the various versions of the application so that the settings from version N-1 can be safely loaded in version N.

Parameters
getterName of the getter method (also used as setting name).
setterName of the setter method.
enumTypeEnumeration type name.
defaultValueDefault value when the setting is unset.

◆ QTL_SETTINGS_BOOL

#define QTL_SETTINGS_BOOL (   getter,
  setter,
  defaultValue 
)

Create getter and setter for a boolean setting.

The getter and setter definitions are inlined. These accessors simply load and store the option without further processing.

Parameters
getterName of the getter method (also used as setting name).
setterName of the setter method.
defaultValueDefault value when the setting is unset.