xref: /haiku/src/apps/mediaplayer/support/Event.cpp (revision b8ded2f89783a220c7b3019d48266a682cc79158)
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 #include <stdio.h>
7 
8 #include "Event.h"
9 
10 
Event(bool autoDelete)11 Event::Event(bool autoDelete)
12 	: fTime(0),
13 	  fAutoDelete(autoDelete)
14 {
15 }
16 
17 
Event(bigtime_t time,bool autoDelete)18 Event::Event(bigtime_t time, bool autoDelete)
19 	: fTime(time),
20 	  fAutoDelete(autoDelete)
21 {
22 }
23 
24 
~Event()25 Event::~Event()
26 {
27 }
28 
29 
30 void
SetTime(bigtime_t time)31 Event::SetTime(bigtime_t time)
32 {
33 	fTime = time;
34 }
35 
36 
37 bigtime_t
Time() const38 Event::Time() const
39 {
40 	return fTime;
41 }
42 
43 
44 void
SetAutoDelete(bool autoDelete)45 Event::SetAutoDelete(bool autoDelete)
46 {
47 	fAutoDelete = autoDelete;
48 }
49 
50 
51 void
Execute()52 Event::Execute()
53 {
54 	printf("Event::Execute() - %" B_PRIdBIGTIME "\n", fTime);
55 }
56 
57