summaryrefslogtreecommitdiff
path: root/muggle-plugin/muggle.c
diff options
context:
space:
mode:
authorLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2004-02-03 19:28:46 +0000
committerLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2004-02-03 19:28:46 +0000
commit02c0ecb023325c135bb6e9687149630d0330d723 (patch)
tree01f78d5908b6e88930ee9c21b116dbbe98ec7f96 /muggle-plugin/muggle.c
parent02b17972bd3b0a6df687a118ef9c55692c5e5e53 (diff)
downloadvdr-plugin-muggle-02c0ecb023325c135bb6e9687149630d0330d723.tar.gz
vdr-plugin-muggle-02c0ecb023325c135bb6e9687149630d0330d723.tar.bz2
Playlist now created in plugin instead of in menu.
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk@25 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/muggle.c')
-rw-r--r--muggle-plugin/muggle.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/muggle-plugin/muggle.c b/muggle-plugin/muggle.c
index 481c699..845eab3 100644
--- a/muggle-plugin/muggle.c
+++ b/muggle-plugin/muggle.c
@@ -2,8 +2,8 @@
/*! \file muggle.c
* \brief Implements a plugin for browsing media libraries within VDR
********************************************************************
- * \version $Revision: 1.1 $
- * \date $Date: 2004/02/01 18:22:53 $
+ * \version $Revision: 1.2 $
+ * \date $Date: 2004/02/03 19:28:46 $
* \author Ralf Klueber, Lars von Wedel, Andreas Kellner
* \author file owner: $Author: LarsAC $
*/
@@ -14,8 +14,13 @@ static const char *DESCRIPTION = "Access GiantDisc database contents";
static const char *MAINMENUENTRY = "Muggle";
#include "muggle.h"
+
#include "vdr_menu.h"
+
#include "mg_tools.h"
+#include "mg_content_interface.h"
+#include "mg_media.h"
+
const char* mgMuggle::Version(void)
{
@@ -67,6 +72,10 @@ bool mgMuggle::Start(void)
// Start any background activities the plugin shall perform.
mgSetDebugLevel( 99 );
+ m_media = new mgMedia( mgMedia::GD_MP3 );
+ m_root = m_media->getSelectionRoot();
+ m_playlist = m_media->createTemporaryPlaylist();
+
return true;
}
@@ -78,7 +87,7 @@ void mgMuggle::Housekeeping(void)
cOsdObject *mgMuggle::MainMenuAction(void)
{
// Perform the action when selected from the main VDR menu.
- cOsdObject* osd = new mgMainMenu();
+ cOsdObject* osd = new mgMainMenu( m_media, m_root, m_playlist );
return osd;
}