diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-01-31 22:51:14 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-01-31 22:51:14 +0000 |
| commit | 4bc08995411e21f3564f09e136809be68ddf96a8 (patch) | |
| tree | 59e2f1babc2b85b61782fe76aadd031faa704f73 /lib/service/servicefs.cpp | |
| parent | 6b7b7977a92c9a092763bf699cba85347f9f2ec6 (diff) | |
| download | enigma2-4bc08995411e21f3564f09e136809be68ddf96a8.tar.gz enigma2-4bc08995411e21f3564f09e136809be68ddf96a8.zip | |
- fixed dvb scan
- fixed dvbdb (reading/writing lamedb)
- fixed (i.e. disallow) operator= in iObject (destroyed refcounts before)
- implemented listboxcontent for servicelists
- implemented getServiceInformation for non-playing services (still not happy with the result, though)
- implemented first try of serviceSelector component
Diffstat (limited to 'lib/service/servicefs.cpp')
| -rw-r--r-- | lib/service/servicefs.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/service/servicefs.cpp b/lib/service/servicefs.cpp index f4a9b737..de75cc67 100644 --- a/lib/service/servicefs.cpp +++ b/lib/service/servicefs.cpp @@ -11,6 +11,21 @@ #include <sys/stat.h> #include <unistd.h> + +class eServiceFSInformation: public iServiceInformation +{ + DECLARE_REF; +public: + RESULT getName(const eServiceReference &ref, std::string &name); +}; + +DEFINE_REF(eServiceFSInformation); + +RESULT eServiceFSInformation::getName(const eServiceReference &ref, std::string &name) +{ + name = ref.path; +} + // eServiceFactoryFS eServiceFactoryFS::eServiceFactoryFS() @@ -20,6 +35,8 @@ eServiceFactoryFS::eServiceFactoryFS() eServiceCenter::getInstance(sc); if (sc) sc->addServiceFactory(eServiceFactoryFS::id, this); + + m_service_information = new eServiceFSInformation(); } eServiceFactoryFS::~eServiceFactoryFS() @@ -52,6 +69,12 @@ RESULT eServiceFactoryFS::list(const eServiceReference &ref, ePtr<iListableServi return 0; } +RESULT eServiceFactoryFS::info(const eServiceReference &ref, ePtr<iServiceInformation> &ptr) +{ + ptr = m_service_information; + return 0; +} + // eServiceFS DEFINE_REF(eServiceFS); |
