#include <connection.h>
#include <list>
-#ifdef SWIG
-#define TEMPLATE_TYPEDEF(x, y) \
-%template(y) x; \
-typedef x y
-#else
-#define TEMPLATE_TYPEDEF(x, y) typedef x y
-#endif
-
class eServiceReference
{
public:
{
public:
virtual RESULT getName(const eServiceReference &ref, std::string &name)=0;
+
+ // FOR SWIG
+ std::string getName(const eServiceReference &ref) { std::string temp; getName(ref, temp); return temp; }
};
TEMPLATE_TYPEDEF(ePtr<iStaticServiceInformation>, iStaticServiceInformationPtr);
-class iServiceInformation: public iStaticServiceInformation
+class eServiceEvent;
+
+class iServiceInformation: public iObject
{
public:
-
+ virtual RESULT getName(std::string &name)=0;
+ // FOR SWIG
+ std::string getName() { std::string temp; getName(temp); return temp; }
+ virtual RESULT getEvent(ePtr<eServiceEvent> &evt, int nownext);
};
TEMPLATE_TYPEDEF(ePtr<iServiceInformation>, iServiceInformationPtr);
enum
{
evStart,
- evEnd
+ evEnd,
+
+ // when iServiceInformation is implemented:
+ evUpdatedEventInfo
};
virtual RESULT connectEvent(const Slot2<void,iPlayableService*,int> &event, ePtr<eConnection> &connection)=0;
virtual RESULT start()=0;
class iRecordableService: public iObject
{
public:
+ virtual RESULT prepare()=0;
virtual RESULT start()=0;
virtual RESULT stop()=0;
};
class iListableService: public iObject
{
public:
+ /* legacy interface: get a list */
virtual RESULT getContent(std::list<eServiceReference> &list)=0;
+
+ /* new, shiny interface: streaming. */
+ virtual RESULT getNext(eServiceReference &ptr)=0;
};
TEMPLATE_TYPEDEF(ePtr<iListableService>, iListableServicePtr);