taurus.qt.qtcore.configuration
Enter search terms or a module, class or function name.
Bases: PyQt4.QtCore.QObject
A Factory of DataModel objects. The __getDataModel() method ensures that the created DataModels are singletons. DataModels are not kept alive unless there at least some Reader or Writer registered to it (or another object referencing them)
Returns a list of currently shared data. Note that this list only reflects the situation at the moment of calling this method: a given DataModel may die at any moment if there are no references to it.
Return type: | :class:~`list` <:class:~`str`> |
---|---|
Returns: | UIDs of currently shared data. |
Registers the given slot method to receive notifications whenever the data identified by dataUID is changed.
Note that it returns the DataModel.getData() method for the given data UID, which can be used for reading the data at any moment.
Parameters: |
|
---|---|
Return type: | :class:~`callable` |
Returns: | a callable that can be used for reading the data |
See also
connectWriter(), __getDataModel()
Registers the given writer object as a changer of the shared data identified by dataUID. The writer is then expected to emit a QtCore.SIGNAL(signalname) with the new data as the first parameter
Note that it returns the DataModel.setData() method for the given data UID, which can be used for changing the data at any moment.
Parameters: |
|
---|---|
Return type: | :class:~`callable` |
Returns: | a callable that can be used for setting the data. When using it, one parameter has to be passed containing the new data |
See also
connectWriter(), __getDataModel()
A slot which you can connect as a reader for debugging. It will print info to the stdout
Unregister the given method as data receiver
Parameters: |
|
---|
See also
Unregister the given object as writer of the shared data
Parameters: |
|
---|
See also
Returns a weakref.proxy to a DataModel object for the given data UID or None if the UID is not registered.
Note
The underlying DataModel object may cease to exist if all its readers and writers are unregistered.
Parameters: |
|
---|---|
Return type: | :class:~`weakref.proxy` or :class:~`None` |
Returns: |
See also