#include <object.h>
Inheritance diagram for YDerivedObject:
Signals | |
void | DisableObjects (bool) |
This signal is emitted during YDerivedType<T>::SetChildsDisabled() to disable all child objects. | |
Public Member Functions | |
virtual QString | GetContentString () const |
Returns the content as string, e.g. for writing configuration files. | |
virtual QString | GetVisibleContentString () const |
virtual int | ReadFromString (const QString &s) |
Read the contents from a string, e.g. reading from configuration files. | |
virtual bool | IsValid () const=0 |
Returns true if this instance has a valid content. | |
Protected Slots | |
virtual void | DerivedParentContentChanged () |
virtual void | ObjectDisabled (bool) |
Protected Member Functions | |
YDerivedObject (const YObjectArgs &args) | |
void | ConnectDerivedParent (const YObject *p) |
void | DisconnectDerivedParent (const YObject *p) |
void | DisableChildObjects (bool b) |
|
|
|
connect this object to it's parent. It will be informed. If the parent is changed. Mostly used in derived object. |
|
This is a slot in the base class (tricky right?) to ensure that derived objects can receive signals from their parent objects. This functions is called every time an parent object is changed. This function will refer the signal to its children. Due to possible changes in "object limits" we call SetContent() in this function. Reimplemented in YDerivedType< T >, YDerivedType< YASA_TIME >, YDerivedType< QString >, YDerivedType< int >, and YDerivedType< bool >. |
|
This function is called to inform all child objects due to emitting the Signal DisableObjects() to enable/disable their content. |
|
This signal is emitted during YDerivedType<T>::SetChildsDisabled() to disable all child objects.
|
|
|
|
Returns the content as string, e.g. for writing configuration files.
Reimplemented in YString, YTIME, YASA_PRIORITY, YASA_CPU, YASA_TASKTYPE, YASA_SCHEDULERTYPE, YASA_SERVERTYPE, YASA_DLBEHAVIOUR, YASA_MUTEXPROTOCOL, YASA_RESOURCEACTION, YASA_CALCPREEMPTIONTIME, and YASA_TIMERTICK. |
|
Returns a visible string of the content. This is used to print the contents in a localized way (such as "infinity") Reimplemented in YString, YTIME, YASA_TICK, YASA_PRIORITY, YASA_CPU, YASA_TASKTYPE, YASA_SCHEDULERTYPE, YASA_SERVERTYPE, YASA_DLBEHAVIOUR, YASA_MUTEXPROTOCOL, YASA_RESOURCEACTION, YASA_CALCPREEMPTIONTIME, and YASA_TIMERTICK. |
|
Returns true if this instance has a valid content.
Implemented in YDerivedType< T >, YDerivedType< YASA_TIME >, YDerivedType< QString >, YDerivedType< int >, and YDerivedType< bool >. |
|
If the parent object has called the function SetChildsDisabled() all child objects will receive the signal DisableObjects() in this slot. The content of all child objects will be disabled. Reimplemented in YDerivedType< T >, YDerivedType< YASA_TIME >, YDerivedType< QString >, YDerivedType< int >, and YDerivedType< bool >. |
|
Read the contents from a string, e.g. reading from configuration files.
Reimplemented in YString, YTIME, YASA_PRIORITY, YASA_CPU, YASA_TASKTYPE, YASA_SCHEDULERTYPE, YASA_SERVERTYPE, YASA_DLBEHAVIOUR, YASA_MUTEXPROTOCOL, YASA_RESOURCEACTION, YASA_CALCPREEMPTIONTIME, and YASA_TIMERTICK. |