diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2004-05-23 10:39:21 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2004-05-23 10:39:21 +0000 |
| commit | c0f5089ea04bd04fe25148e712fa62cd49dc17da (patch) | |
| tree | 4459439ba4fd730d69fd0216b43f41b6ebf010c3 /lib/service/servicemp3.h | |
| parent | 676c3e4b7ba3a01f5d69bed1b5b2c861e84a6211 (diff) | |
| download | enigma2-c0f5089ea04bd04fe25148e712fa62cd49dc17da.tar.gz enigma2-c0f5089ea04bd04fe25148e712fa62cd49dc17da.zip | |
added nav core
Diffstat (limited to 'lib/service/servicemp3.h')
| -rw-r--r-- | lib/service/servicemp3.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/lib/service/servicemp3.h b/lib/service/servicemp3.h index 0f2c074f..b443d6eb 100644 --- a/lib/service/servicemp3.h +++ b/lib/service/servicemp3.h @@ -17,26 +17,35 @@ public: RESULT list(const eServiceReference &, ePtr<iListableService> &ptr); }; -class eServiceMP3: public virtual iPlayableService, public virtual iPauseableService, public virtual iObject +class eServiceMP3: public virtual iPlayableService, public virtual iPauseableService, public virtual iObject, public Object { +DECLARE_REF; +private: friend class eServiceFactoryMP3; std::string filename; eServiceMP3(const char *filename); - int ref; + eTimer test; + void test_end(); + Signal2<void,iPlayableService*,int> m_event; + enum + { + stIdle, stRunning, stStopped, + }; + int m_state; public: virtual ~eServiceMP3(); - // iObject - void AddRef(); - void Release(); - // iPlayableService + RESULT connectEvent(const Slot2<void,iPlayableService*,int> &event, ePtr<eConnection> &connection); RESULT start(); + RESULT stop(); RESULT getIPausableService(ePtr<iPauseableService> &ptr); // iPausableService RESULT pause(); RESULT unpause(); + + RESULT getIServiceInformation(ePtr<iServiceInformation>&); }; #endif |
