vfs: check userland buffers before reading them.
[haiku.git] / src / apps / mediaplayer / support / Event.h
blobc94b5a2097251ecd88c956af8b3c8b6507c8ff4a
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
10 #include <OS.h>
13 class Event {
14 public:
15 Event(bool autoDelete = true);
16 Event(bigtime_t time, bool autoDelete = true);
17 virtual ~Event();
19 void SetTime(bigtime_t time);
20 bigtime_t Time() const;
22 void SetAutoDelete(bool autoDelete);
23 bool AutoDelete() const
24 { return fAutoDelete; }
26 virtual void Execute();
28 private:
29 bigtime_t fTime;
30 bool fAutoDelete;
33 #endif // EVENT_H