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 EVENT_H
7#define EVENT_H
8
9
10#include <OS.h>
11
12
13class Event {
14 public:
15								Event(bool autoDelete = true);
16								Event(bigtime_t time, bool autoDelete = true);
17	virtual						~Event();
18
19			void				SetTime(bigtime_t time);
20			bigtime_t			Time() const;
21
22			void				SetAutoDelete(bool autoDelete);
23			bool				AutoDelete() const
24									{ return fAutoDelete; }
25
26	virtual	void				Execute();
27
28 private:
29			bigtime_t			fTime;
30			bool				fAutoDelete;
31};
32
33#endif	// EVENT_H
34