VISH
0.2
|
Notifier object for actions. More...
#include </home/werner/origo/vish/ocean/plankton/VActionNotifier.hpp>
Notifier object for actions.
Certain actions in VISH may be recorded through instances of VActionNotifier's. Events in VISH are broadcasted to all such instances.
Wizt::VActionNotifier::VActionNotifier | ( | ) |
Constructs a notify callback object.
It will not receive notification callbacks until the activate() function is called.
bool Wizt::VActionNotifier::activate | ( | ) |
Activate the current notifier object to receive notification callbacks.
bool Wizt::VActionNotifier::attachPrefix | ( | const RefPtr< VParameter > & | ProvidedParam, |
const RefPtr< VSlot > & | DestSlot | ||
) | [virtual] |
The attach() function is called whenever a parameter is attached to the slot of an object.
It is called just before this attachment takes place.
DestSlot | The slot within object VObjDst whose parameter will be modified. |
ProvidedParam | The parameter that will replace the one in the slot |
void Wizt::VActionNotifier::createVObject | ( | const RefPtr< VObject > & | vobj, |
const Intercube & | CreationContext, | ||
const WeakPtr< VCreatorBase > & | crec | ||
) | [virtual] |
Virtual action of a notifyer object which is hereby informed about the new creation of an object.
CreationContext | Some context information specific to this creation. It may hold arbitrary Interfaces. |
crec | The Creator object. It may be Null if the VObject was created by other means. |
Reimplemented in Wizt::RemoteVish::MyActionNotifier.
bool Wizt::VActionNotifier::ProgressInfo | ( | progress_id_t | Pid, |
const string & | name, | ||
int | CurrentValue, | ||
int | MaxValue | ||
) | [static] |
Display some progress.
Pid | A unique ID per progress. |
name | Some informative text to be displayed with this progress. |
CurrentValue | Current value, if it's same as MaxValue then this progress is finished. |
MaxValue | Maximal value. |
void Wizt::VActionNotifier::VObjectCreation | ( | const RefPtr< VObject > & | vobj, |
const Intercube & | CreationContext, | ||
const WeakPtr< VCreatorBase > & | crec = NullPtr() |
||
) | [static] |
void Wizt::VActionNotifier::VObjectDeletion | ( | const string & | name | ) | [static] |
Global call to inform that an object has been deleted.
This call is automatically issued by the VObject::remove() call.