rocs/RocsCore
#include <DataStructureBackendManager.h>
Public Slots | |
void | setBackend (const QString &pluginIdentifier) |
Signals | |
void | backendChanged (const QString &pluginName) |
Public Member Functions | |
DataStructureBackendInterface * | activeBackend () const |
DataStructureBackendInterface * | backend (const QString &internalName) const |
KPluginInfo | backendInfo (DataStructureBackendInterface *plugin) const |
const QStringList | backends () const |
DataStructurePtr | createDataStructure (Document *parent, const QString &pluginName=QString()) |
DataStructurePtr | createDataStructure (const DataStructurePtr dataStructure, Document *parent) |
QLayout * | dataExtraProperties (DataPtr data, QWidget *parent) const |
QGraphicsItem * | dataItem (DataPtr data) const |
QLayout * | dataStructureExtraProperties (DataStructurePtr dataStructure, QWidget *parent) const |
QLayout * | pointerExtraProperties (PointerPtr pointer, QWidget *parent) const |
QGraphicsItem * | pointerItem (PointerPtr pointer) const |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Static Public Member Functions | |
static DataStructureBackendManager & | self () |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Additional Inherited Members | |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
This singelton class provides access to all available data structure backends.
Definition at line 43 of file DataStructureBackendManager.h.
Member Function Documentation
DataStructureBackendInterface * DataStructureBackendManager::activeBackend | ( | ) | const |
Returns the currently active data structure backend.
The return value is only '0' if
- See also
- DataStructureBackendManager::backends() returns an empty list.
- Returns
- data structure backend or '0' if no backend exists
Definition at line 275 of file DataStructureBackendManager.cpp.
DataStructureBackendInterface * DataStructureBackendManager::backend | ( | const QString & | internalName | ) | const |
Returns data structure backend identified by its identifier internalName
.
- Parameters
-
internalName the unique identifier for backend
- Returns
- the requested backend or '0' if backend is not found
Definition at line 280 of file DataStructureBackendManager.cpp.
|
signal |
Emitted if the active backend is changed.
KPluginInfo DataStructureBackendManager::backendInfo | ( | DataStructureBackendInterface * | plugin | ) | const |
Returns KPluginInfo object representing the plugin information for plugin
.
- Parameters
-
plugin the data structure plugin object
- Returns
- plugin information
Definition at line 265 of file DataStructureBackendManager.cpp.
const QStringList DataStructureBackendManager::backends | ( | ) | const |
Returns list of loaded backends.
Backends are loaded with first call to self().
- Returns
- list of plugin interfaces of loaded backends
Definition at line 270 of file DataStructureBackendManager.cpp.
DataStructurePtr DataStructureBackendManager::createDataStructure | ( | Document * | parent, |
const QString & | pluginName = QString() |
||
) |
TODO change this method: it is not clear how the parent document is registered; the creation functionality should only be located at the Document class.
Create data structure with backend pluginName
. If not backend is specified, the currently active data structure backend is used, activeBackend().
- Parameters
-
parent the Document that will hold the created data structure pluginName the optional name of the data structure backend
- Returns
- the created data structure
Definition at line 260 of file DataStructureBackendManager.cpp.
DataStructurePtr DataStructureBackendManager::createDataStructure | ( | const DataStructurePtr | dataStructure, |
Document * | parent | ||
) |
Create a new data structure from given dataStructure
within document parent
.
The currently active data structure backend is used to create the data structure. TODO change this method: same comment as on createDataStructure()
- Parameters
-
dataStructure the data structure to be converted parent
Definition at line 255 of file DataStructureBackendManager.cpp.
Create widgets for backend specific data properties.
If no extra properties exist, return value is 0.
Definition at line 317 of file DataStructureBackendManager.cpp.
QGraphicsItem * DataStructureBackendManager::dataItem | ( | DataPtr | data | ) | const |
Generates graphics item for represenation of data
at graph scene based on data structure backend of the parent document of data
.
- Parameters
-
data the data object
- Returns
- item associated with the data object
Definition at line 285 of file DataStructureBackendManager.cpp.
QLayout * DataStructureBackendManager::dataStructureExtraProperties | ( | DataStructurePtr | dataStructure, |
QWidget * | parent | ||
) | const |
Create widgets for backend specific data structure properties.
If no extra properties exist, return value is 0.
Definition at line 309 of file DataStructureBackendManager.cpp.
QLayout * DataStructureBackendManager::pointerExtraProperties | ( | PointerPtr | pointer, |
QWidget * | parent | ||
) | const |
Create widgets for backend specific pointer properties.
If no extra properties exist, return value is 0.
Definition at line 301 of file DataStructureBackendManager.cpp.
QGraphicsItem * DataStructureBackendManager::pointerItem | ( | PointerPtr | pointer | ) | const |
Generates graphics item for represenation of pointer
at graph scene based on data structure backend of the parent document of pointer
.
- Parameters
-
pointer the pointer object
- Returns
- item associated with the pointer object
Definition at line 293 of file DataStructureBackendManager.cpp.
|
static |
Returns self reference to backend manager.
First call of this method initializes data structure backend manager and loads plugins.
- Returns
- self reference
Definition at line 233 of file DataStructureBackendManager.cpp.
|
slot |
Change the active backend.
If backend is changed, the signal backendChanged() is emitted. If pluginIdentifier
does not denote a valid backend, the active backend is not changed.
- Parameters
-
pluginIdentifier internal name of the data structure backend
Definition at line 240 of file DataStructureBackendManager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.