Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::Persistent Class Reference

Class to multiple inherit which adds functions to read and write properties from a given object. The object can be the class itself or a child instance. More...

#include <Persistent.h>

Inheritance diagram for sf::Persistent:

Public Member Functions

 Persistent (QObject *obj)
 Constructor.
 
void setSourceObject (QObject *obj)
 
QStringList getProperties () const
 Gets the properties from the object as a string list to store as settings.
 
void setProperties (const QStringList &) const
 Sets the properties of the object as a string list settings.
 

Protected Member Functions

QMap< int, const char * > getObjectProperties (const QObject *obj) const
 Gets a mapped property list af all properties of the object.
 

Detailed Description

Class to multiple inherit which adds functions to read and write properties from a given object. The object can be the class itself or a child instance.

Constructor & Destructor Documentation

◆ Persistent()

sf::Persistent::Persistent ( QObject *  obj)
explicit

Constructor.

Parameters
objObject to get or set properties from or to.

Member Function Documentation

◆ getObjectProperties()

QMap< int, const char * > sf::Persistent::getObjectProperties ( const QObject *  obj) const
protected

Gets a mapped property list af all properties of the object.

◆ getProperties()

QStringList sf::Persistent::getProperties ( ) const

Gets the properties from the object as a string list to store as settings.

◆ setProperties()

void sf::Persistent::setProperties ( const QStringList &  ) const

Sets the properties of the object as a string list settings.

◆ setSourceObject()

void sf::Persistent::setSourceObject ( QObject *  obj)
Parameters
objSets the object for the source of the properties.

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