Interface for daemon and plugins to implement for state changes
Inheritance:
Public Methods
-
virtual void RegisterListener(MAbstractListener* aListener) = 0
- Register new listener for this component
-
virtual void SetState(bool aActive) = 0
- Set state for implementing object
-
virtual void TriggerShutdown() = 0
- Set the implementing object to shut down itself
-
virtual void SetAdapter(const std::string& aInterface, int aId) = 0
- Sets the adapter for plugin to use.
Documentation
Components that will support dynamic state changes will have to
implement this interface. This interface is used by Listeners for changing the
state of the owner object.
virtual void RegisterListener(MAbstractListener* aListener) = 0
-
Used for registering a new listener for the component that
implements this interface.
- Parameters:
- - MAbstractListener a reference to the listener to be registered
virtual void SetState(bool aActive) = 0
-
Set the implementing object to active or passive state.
- Parameters:
- bool - New activity state: TRUE = active
virtual void TriggerShutdown() = 0
-
Sets the object that implements this interface to shutdown state.
virtual void SetAdapter(const std::string& aInterface, int aId) = 0
-
Set the given adapter to be the adapter the plugin uses.
- Parameters:
- aInterface - The name of the interface, e.g. hci0, wlan0 etc.
aId - The id of the interface (the number at the end)
- Direct child classes:
- MAbstractPlugin
CDaemon
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.