- add "getCurrent" to service listbox
[enigma2.git] / lib / service / listboxservice.cpp
index 011c96c..881047d 100644 (file)
@@ -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()