QCSDataEngine Class

The QCSDataEngine class defines the interface of data engine. More...

Header: #include <QCSDataEngine>
Inherits: QObject
Inherited By:

QCSDataEngineCA, QCSDataEngineLocal, and QCSDataEngineSim

Properties

  • 1 property inherited from QObject

Public Functions

QCSDataEngine(QObject *parent)
virtual ~QCSDataEngine()
virtual ObjectModel *allData() = 0
virtual void close(QCSData *data) = 0
virtual void create(QCSData *data) = 0
virtual QString description() = 0
virtual QString name() = 0
virtual void setValue(QCSData *data, const QVariant value) = 0
  • 32 public functions inherited from QObject

Signals

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QCSDataEngine class defines the interface of data engine.

This is the base class for data engines, which define the interface to create, delete and interact with QCSData objects.

Data engines are loaded as plugins on demand and provide zero, one or more data sources which are identified by name.

Property Documentation

allData : ObjectModel * const

ObjectModel that contains all QCSData objects created by this data engine.

Access functions:

virtual ObjectModel *allData() = 0

Notifier signal:

void allDataChanged()

description : const QString

Descriptive text of this data engine.

Access functions:

virtual QString description() = 0

name : const QString

Name of the data engine as used in the data source scheme.

Access functions:

virtual QString name() = 0

See also QCSData::source.

Member Function Documentation

QCSDataEngine::QCSDataEngine(QObject *parent)

Default constructs an instance of QCSDataEngine.

[virtual] QCSDataEngine::~QCSDataEngine()

Destroys the instance of QCSDataEngine. The destructor is virtual.

[pure virtual] void QCSDataEngine::close(QCSData *data)

Closes the data object's connection to the source.

The data engine must implements this to release the connection to the source and remove it from allData.

[pure virtual] void QCSDataEngine::create(QCSData *data)

Connects the source to the data object.

The data engine must implements this to check whether the data source is valid, and if so add it to allData. The data engine possibly retrieves the information from the source and populates data properties.

[pure virtual] void QCSDataEngine::setValue(QCSData *data, const QVariant value)

Sets a new value for the data's source.

The data engine must implements this to accept requests to change the data source's value.