Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Examples  

YDerivedObject Class Reference

#include <object.h>

Inheritance diagram for YDerivedObject:

Inheritance graph
[legend]
Collaboration diagram for YDerivedObject:

Collaboration graph
[legend]
List of all members.

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)

Detailed Description

This is a base class for YDerivedType<T> to support signal/slot mechanism of QT


Constructor & Destructor Documentation

YDerivedObject::YDerivedObject const YObjectArgs   args [inline, protected]
 


Member Function Documentation

void YDerivedObject::ConnectDerivedParent const YObject   p [inline, protected]
 

connect this object to it's parent. It will be informed. If the parent is changed. Mostly used in derived object.

virtual void YDerivedObject::DerivedParentContentChanged   [inline, protected, virtual, slot]
 

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 >.

void YDerivedObject::DisableChildObjects bool    b [inline, protected]
 

This function is called to inform all child objects due to emitting the Signal DisableObjects() to enable/disable their content.

void YDerivedObject::DisableObjects bool    [signal]
 

This signal is emitted during YDerivedType<T>::SetChildsDisabled() to disable all child objects.

void YDerivedObject::DisconnectDerivedParent const YObject   p [inline, protected]
 

virtual QString YDerivedObject::GetContentString   const [inline, virtual]
 

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.

virtual QString YDerivedObject::GetVisibleContentString   const [inline, virtual]
 

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.

virtual bool YDerivedObject::IsValid   const [pure virtual]
 

Returns true if this instance has a valid content.

Implemented in YDerivedType< T >, YDerivedType< YASA_TIME >, YDerivedType< QString >, YDerivedType< int >, and YDerivedType< bool >.

virtual void YDerivedObject::ObjectDisabled bool    [inline, protected, virtual, slot]
 

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 >.

virtual int YDerivedObject::ReadFromString const QString &    s [inline, virtual]
 

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.


The documentation for this class was generated from the following file:
Generated on Thu Feb 13 23:54:14 2003 for Yasa by doxygen1.3-rc3