diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-11-11 15:14:42 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-11-11 15:14:42 +0000 |
| commit | cbaa4012ef5481091ac9b206e29e4c396859abe2 (patch) | |
| tree | 3fec5b292f74c2819b15c9405ba306dffd574b11 /lib/service/event.h | |
| parent | 38ff0ca06ff4cdf7ff7d94211f4be533c53dcc83 (diff) | |
| download | enigma2-cbaa4012ef5481091ac9b206e29e4c396859abe2.tar.gz enigma2-cbaa4012ef5481091ac9b206e29e4c396859abe2.zip | |
add some get methods for python
Diffstat (limited to 'lib/service/event.h')
| -rw-r--r-- | lib/service/event.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/service/event.h b/lib/service/event.h index 6993d815..3a71f7b7 100644 --- a/lib/service/event.h +++ b/lib/service/event.h @@ -1,24 +1,35 @@ #ifndef __lib_service_event_h #define __lib_service_event_h +#ifndef PYTHON + #include <time.h> #include <lib/base/object.h> #include <string> class Event; +#endif class eServiceEvent: public iObject { DECLARE_REF(eServiceEvent); public: +#ifndef PYTHON time_t m_begin; int m_duration; std::string m_event_name, m_short_description, m_extended_description; // .. additional info - bool loadLanguage(Event *event, std::string lang); RESULT parseFrom(Event *evt); +#endif + time_t getBeginTime() { return m_begin; } + int getDuration() { return m_duration; } + std::string getEventName() { return m_event_name; } + std::string getShortDescription() { return m_short_description; } + std::string getExtendedDescription() { return m_extended_description; } + std::string getBeginTimeString(); }; +#ifndef PYTHON TEMPLATE_TYPEDEF(ePtr<eServiceEvent>, eServiceEventPtr); class eDebugClass: public iObject @@ -32,5 +43,6 @@ public: }; // TEMPLATE_TYPEDEF(ePtr<eDebugClass>, eDebugClassPtr); +#endif #endif |
