aboutsummaryrefslogtreecommitdiff
path: root/lib/service
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-02-10 23:42:22 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-02-10 23:42:22 +0000
commitd7d291938c45893e28715fb12ae5b83d334084e9 (patch)
tree56aefc1b03a6ce7e26e6f749aeac8992659c74cf /lib/service
parent4953676fb9df2347981b4f3ddb17a4d725197b31 (diff)
downloadenigma2-d7d291938c45893e28715fb12ae5b83d334084e9.tar.gz
enigma2-d7d291938c45893e28715fb12ae5b83d334084e9.zip
- add "getCurrent" to service listbox
- add python wrapper for navigation core - use nav core - you can zap now :)
Diffstat (limited to 'lib/service')
-rw-r--r--lib/service/listboxservice.cpp8
-rw-r--r--lib/service/listboxservice.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/service/listboxservice.cpp b/lib/service/listboxservice.cpp
index 011c96ca..881047df 100644
--- a/lib/service/listboxservice.cpp
+++ b/lib/service/listboxservice.cpp
@@ -18,6 +18,14 @@ void eListboxServiceContent::setRoot(const eServiceReference &root)
cursorHome();
}
+void eListboxServiceContent::getCurrent(eServiceReference &ref)
+{
+ if (cursorValid())
+ ref = *m_cursor;
+ else
+ ref = eServiceReference();
+}
+
DEFINE_REF(eListboxServiceContent);
eListboxServiceContent::eListboxServiceContent()
diff --git a/lib/service/listboxservice.h b/lib/service/listboxservice.h
index 45e5ba71..9d0cb721 100644
--- a/lib/service/listboxservice.h
+++ b/lib/service/listboxservice.h
@@ -12,6 +12,7 @@ class eListboxServiceContent: public virtual iListboxContent
public:
eListboxServiceContent();
void setRoot(const eServiceReference &ref);
+ void getCurrent(eServiceReference &ref);
protected:
void cursorHome();