- add more python stuff
[enigma2.git] / lib / service / servicemp3.h
index 0f2c074fcea84e74f9cc6ac2953efc2c5f12a6bb..cfca4242182147105017bf15edde6adaf3fd048b 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <lib/service/iservice.h>
 
-class eServiceFactoryMP3: public virtual iServiceHandler, public virtual iObject
+class eServiceFactoryMP3: public iServiceHandler
 {
 DECLARE_REF;
 public:
@@ -17,26 +17,38 @@ public:
        RESULT list(const eServiceReference &, ePtr<iListableService> &ptr);
 };
 
-class eServiceMP3: public virtual iPlayableService, public virtual iPauseableService, public virtual iObject
+class eServiceMP3: public iPlayableService, public iPauseableService, public iServiceInformation, 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>&);
+       
+               // iServiceInformation
+       RESULT getName(std::string &name);
 };
 
 #endif