repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / mediaplayer / support / MessageEvent.h
blob9f8ea7e9e3fac1d1145fce7e8c1ca6e23dbe470e
1 /*
2 * Copyright (c) 2000-2008, Ingo Weinhold <ingo_weinhold@gmx.de>,
3 * Copyright (c) 2000-2008, Stephan Aßmus <superstippi@gmx.de>,
4 * All Rights Reserved. Distributed under the terms of the MIT license.
5 */
6 #ifndef MESSAGE_EVENT_H
7 #define MESSAGE_EVENT_H
10 #include <Message.h>
12 #include "AbstractLOAdapter.h"
13 #include "Event.h"
16 enum {
17 MSG_EVENT = 'evnt'
21 class MessageEvent : public Event, public AbstractLOAdapter {
22 public:
23 MessageEvent(bigtime_t time,
24 BHandler* handler,
25 uint32 command = MSG_EVENT);
26 MessageEvent(bigtime_t time,
27 BHandler* handler,
28 const BMessage& message);
29 MessageEvent(bigtime_t time,
30 const BMessenger& messenger);
31 virtual ~MessageEvent();
33 virtual void Execute();
35 private:
36 BMessage fMessage;
39 #endif // MESSAGE_EVENT_H