2 * Copyright 2006, Haiku.
3 * Distributed under the terms of the MIT License.
6 * Ingo Weinhold <bonefish@cs.tu-berlin.de>
9 // This class provides some basic functionality for derivation of a
10 // listener -> observer adapter.
11 // The derived class should implement constructors similar to the
12 // ones of this class and pass the respective parameter.
13 // Each of the listener hook functions should construct a message
14 // and let it be delivered by DeliverMessage().
16 #ifndef ABSTRACT_LO_ADAPTER_H
17 #define ABSTRACT_LO_ADAPTER_H
19 #include <SupportDefs.h>
26 class AbstractLOAdapter
{
28 AbstractLOAdapter(BHandler
* handler
);
29 AbstractLOAdapter(const BMessenger
& messenger
);
30 virtual ~AbstractLOAdapter();
32 void DeliverMessage(BMessage
* message
);
33 void DeliverMessage(BMessage
& message
);
34 void DeliverMessage(uint32 command
);
38 BMessenger
* fMessenger
;
41 #endif // ABSTRACT_LO_ADAPTER_H