aboutsummaryrefslogtreecommitdiff
path: root/lib/service/event.h
blob: 57e5b821ff3818a686c5185605959519b20dfb95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __lib_service_event_h
#define __lib_service_event_h

#include <time.h>
#include <lib/base/object.h>
#include <string>
class Event;

class eServiceEvent: public iObject
{
DECLARE_REF(eServiceEvent);
public:
	time_t m_begin;
	int m_duration;
	std::string m_event_name, m_short_description, m_extended_description;
	// .. additional info

	bool language_exists(Event *event, std::string lang);
	RESULT parseFrom(Event *evt);
};

TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr);

class eDebugClass: public iObject
{
	DECLARE_REF(eDebugClass);
public:
	int x;
	static void getDebug(ePtr<eDebugClass> &ptr, int x) { ptr = new eDebugClass(x); }
	eDebugClass(int i) { printf("build debug class %d\n", i); x = i; }
	~eDebugClass() { printf("remove debug class %d\n", x); }
};

// TEMPLATE_TYPEDEF(ePtr<eDebugClass>, eDebugClassPtr);

#endif