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 8 9 10#include <Message.h> 11 12#include "AbstractLOAdapter.h" 13#include "Event.h" 14 15 16enum { 17 MSG_EVENT = 'evnt' 18}; 19 20 21class 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(); 32 33 virtual void Execute(); 34 35 private: 36 BMessage fMessage; 37}; 38 39#endif // MESSAGE_EVENT_H 40