}
};
+typedef unsigned long long pts_t;
+
/* the reason we have the servicereference as additional argument is
that we don't have to create one object for every entry in a possibly
large list, provided that no state information is nessesary to deliver
{
public:
virtual RESULT getName(const eServiceReference &ref, std::string &name)=0;
+
+ // doesn't need to be implemented, should return -1 then.
+ virtual int getLength(const eServiceReference &ref)=0;
// FOR SWIG
std::string getName(const eServiceReference &ref) { std::string temp; getName(ref, temp); return temp; }
class eServiceEvent;
-class iServiceInformation: public iStaticServiceInformation
+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);
};
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);