QElectroTech  0.8-dev
Public Member Functions | List of all members
PropertiesInterface Class Referenceabstract

The PropertiesInterface class This class is an interface for have common way to use properties in QElectroTech. More...

#include <propertiesinterface.h>

Inheritance diagram for PropertiesInterface:
Inheritance graph
Collaboration diagram for PropertiesInterface:
Collaboration graph

Public Member Functions

 PropertiesInterface ()
 PropertiesInterface::PropertiesInterface. More...
 
virtual ~PropertiesInterface ()
 PropertiesInterface::~PropertiesInterface. More...
 
virtual void toSettings (QSettings &settings, const QString=QString()) const =0
 toSettings Save properties to setting file. More...
 
virtual void fromSettings (const QSettings &settings, const QString=QString())=0
 fromSettings load properties to setting file. More...
 
virtual QDomElement toXml (QDomDocument &xml_document) const =0
 toXml Save properties to xml element More...
 
virtual bool fromXml (const QDomElement &xml_element)=0
 fromXml load properties to xml element More...
 

Detailed Description

The PropertiesInterface class This class is an interface for have common way to use properties in QElectroTech.

Constructor & Destructor Documentation

◆ PropertiesInterface()

PropertiesInterface::PropertiesInterface ( )

◆ ~PropertiesInterface()

PropertiesInterface::~PropertiesInterface ( )
virtual

Member Function Documentation

◆ fromSettings()

virtual void PropertiesInterface::fromSettings ( const QSettings &  settings,
const  QString = QString() 
)
pure virtual

fromSettings load properties to setting file.

Parameters
settings: is use for prefix a word befor the name of each paramètre
QString

Implemented in XRefProperties, and TerminalData.

◆ fromXml()

virtual bool PropertiesInterface::fromXml ( const QDomElement &  xml_element)
pure virtual

fromXml load properties to xml element

Parameters
xml_element
Returns
true / false

Implemented in XRefProperties, and TerminalData.

◆ toSettings()

virtual void PropertiesInterface::toSettings ( QSettings &  settings,
const  QString = QString() 
) const
pure virtual

toSettings Save properties to setting file.

Parameters
settings: is use for prefix a word befor the name of each paramètre
QString

Implemented in XRefProperties, and TerminalData.

◆ toXml()

virtual QDomElement PropertiesInterface::toXml ( QDomDocument &  xml_document) const
pure virtual

toXml Save properties to xml element

Parameters
xml_document
Returns
QDomElement

Implemented in TerminalData, and XRefProperties.


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