Inheritance diagram for os::Handler:
Public Member Functions | |
Handler (const String &cName) | |
Construct a handler. | |
virtual | ~Handler () |
Destructor. | |
virtual void | TimerTick (int nID) |
Timer dispatch member. | |
virtual void | HandleMessage (Message *pcMessage) |
Handle a message targeted at this handler. | |
String | GetName () const |
Get the handlers name. | |
void | SetName (const String &cName) |
Rename the handler. | |
Looper * | GetLooper () const |
Get a pointer to the looper this handler belongs to. | |
void | SetNextHandler (Handler *pcNextHandler) |
Set a handler that should handle messages this handler is not interrested in. | |
Handler * | GetNextHandler () const |
Get the next handler in a handler chain. | |
void | AddFilter (MessageFilter *pcFilter) |
void | RemoveFilter (MessageFilter *pcFilter) |
const MsgFilterList & | GetFilterList () const |
const uint32 | GetToken () |
Get the handlers token. | |
Friends | |
class | Looper |
class | Message |
class | Messenger |
class | NodeMonitor |
class | Window |
Handler::Handler | ( | const String & | cName | ) |
cName | A name identifying the handler. This can be passed to os::Looper::FindHandler() on a looper to find the handler object when it have been added to the looper with os::Looper::AddHandler(). |
Handler::~Handler | ( | ) | [virtual] |
void Handler::TimerTick | ( | int | nID | ) | [virtual] |
nID
parameter. \return |
Reimplemented in os::IconView::MainView, os::Menu, and os::ScrollBar.
void Handler::HandleMessage | ( | Message * | pcMessage | ) | [virtual] |
pcMessage
is also available through os::Looper::GetCurrentMessage() and os::Looper::DetachCurrentMessage() until this member returns. This is normally not very usefull for HandleMessage() itself but it can be convinient for other members called from HandleMessage() in case they need data from the message that was not passed on from HandleMessage(). pcMessage | The message that should be handled. This message will be deleted by the looper when HandleMessage() returns unless you detach it with os::Looper::DetachCurrentMessage(), |
Reimplemented in os::DropdownMenu::DropdownView, os_priv::DirKeeper, NewDirWin, InfoWin, RenameFileWin, HandlerSelector, MountDialogWin, os::Application, os::ColorRequester, os::ColorSelector, os::DirectoryView, os::DropdownMenu, os::FileRequester, os::FontRequester, os::IconDirectoryView, os::InputBox, os::Alert, os::ProgressRequester, os::Spinner, and os::RegistrarManager.
String Handler::GetName | ( | ) | const |
Reimplemented in os::Looper.
void Handler::SetName | ( | const String & | cName | ) |
cName | The new handler name. |
Reimplemented in os::Looper.
Looper * Handler::GetLooper | ( | ) | const |
void Handler::SetNextHandler | ( | Handler * | pcNextHandler | ) |
pcNextHandler | Pointer to the handler that should receive messages after we are done with them or NULL to disable the forwarding. |
Handler * Handler::GetNextHandler | ( | ) | const |
void Handler::AddFilter | ( | MessageFilter * | pcFilter | ) |
void Handler::RemoveFilter | ( | MessageFilter * | pcFilter | ) |
const MsgFilterList & Handler::GetFilterList | ( | ) | const |
const uint32 Handler::GetToken | ( | ) |
friend class Looper [friend] |
friend class Message [friend] |
friend class Messenger [friend] |
Reimplemented in os::Looper.
friend class NodeMonitor [friend] |
Reimplemented in os::Looper.
friend class Window [friend] |
Reimplemented in os::Application, os::Looper, and os::View.