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