16#ifndef __albaDeviceManager_h
17#define __albaDeviceManager_h
78 virtual
albaDevice *AddDevice(const
char *type,
bool persistent=false);
84 int RemoveDevice(const
char *name,
bool force=false);
93 int GetNumberOfDevices();
97 void RemoveAllDevices(
bool force=false);
#define albaTypeMacro(thisClass, superclass)
Macro used by albaObjects for RTTI information.
#define ALBA_ID_DEC(idname)
This macros is used to define a new Id and should be placed in a .cpp file.
long albaID
type for IDs inside ALBA
albaAgentEventHandler - This class synchronizes events with wxWindows event pump.
Class managing the devices inside a ALBA application and the synchronization with wxWindows message p...
virtual int InternalStore(albaStorageElement *node)
Implement storing and restoring of this object.
virtual void InternalShutdown()
to be redefined by subclasses to define the shutdown actions
virtual int InternalRestore(albaStorageElement *node)
This is called by Restore() and must be reimplemented by subclasses The element from which the object...
albaID m_DeviceIdCounter
number of plugged devices
albaDeviceSet * m_DeviceSet
container for first level devices
albaID m_PersistentDeviceIdCounter
number of persistent plugged devices
virtual int InternalInitialize()
This function is overridden by subclasses to perform custom initialization.
virtual void OnEvent(albaEventBase *event)
Process an event: the event is processed immediately and synchronously, i.e.
virtual bool DispatchEvents()
Redefined to manage the synchronization with display rendering: during the event dispatching all rend...
This class manages a set of usb-devices, and stores a list of all child devices' pointers.
This abstract class manages function calls coming from devices and issue specific events to interacto...
Implementation of the message object for the Subject/Observer design pattern.
albaStorable is an interface for serializable objects.
Abstract class representing the interface for the unit of information stored in the storage.