summaryrefslogtreecommitdiff
path: root/muggle-plugin/vdr_menu.c
diff options
context:
space:
mode:
authorlvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b>2004-09-12 22:34:41 +0000
committerlvw <lvw@e10066b5-e1e2-0310-b819-94efdf66514b>2004-09-12 22:34:41 +0000
commitcd91dbfedcbd7d293b8e5333f92b12669bfc9fb7 (patch)
treee9b55aafddf2178a866526fb0eb31ce01f8f6c3a /muggle-plugin/vdr_menu.c
parent4313232a22d194274e9fe0543116100193325594 (diff)
downloadvdr-plugin-muggle-cd91dbfedcbd7d293b8e5333f92b12669bfc9fb7.tar.gz
vdr-plugin-muggle-cd91dbfedcbd7d293b8e5333f92b12669bfc9fb7.tar.bz2
Integrated patch from eloy for use with VDR >= 1.3.7
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk@160 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/vdr_menu.c')
-rw-r--r--muggle-plugin/vdr_menu.c44
1 files changed, 43 insertions, 1 deletions
diff --git a/muggle-plugin/vdr_menu.c b/muggle-plugin/vdr_menu.c
index 54a9318..094acd3 100644
--- a/muggle-plugin/vdr_menu.c
+++ b/muggle-plugin/vdr_menu.c
@@ -20,6 +20,11 @@
#include <config.h>
#include <plugin.h>
+#if VDRVERSNUM >= 10307
+#include <vdr/interface.h>
+#include <vdr/skins.h>
+#endif
+
#include "vdr_menu.h"
#include "vdr_player.h"
#include "i18n.h"
@@ -158,9 +163,14 @@ eOSState mgMainMenu::ProcessKey(eKeys key)
char *buffer = 0;
asprintf( &buffer, "%d tracks sent to current playlist", (int) tracks->size() );
m_current_playlist->appendList(tracks);
+#if VDRVERSNUM >= 10307
+ Skins.Message(mtInfo,buffer);
+ Skins.Flush();
+#else
Interface->Status( buffer );
Interface->Flush();
-
+#endif
+
free( buffer );
}
else
@@ -699,14 +709,22 @@ eOSState mgMainMenu::ExecutePlaylistCommand( int current )
if( command->Confirm() )
{
asprintf( &buffer, "%s?", command->Title() );
+//#if VDRVERSNUM < 10307
confirmed = Interface->Confirm( buffer );
+//#else
+//#endif
free( buffer );
}
if( confirmed )
{
asprintf( &buffer, "%s...", command->Title() );
+#if VDRVERSNUM >= 10307
+ Skins.Message(mtInfo,buffer);
+ Skins.Flush();
+#else
Interface->Status( buffer );
Interface->Flush();
+#endif
free( buffer );
string tmp_m3u_file = (char *) AddDirectory( cPlugin::ConfigDirectory("muggle"), "current.m3u" );
@@ -739,22 +757,36 @@ eOSState mgMainMenu::PlaylistSubmenuAction( int n )
case 0:
{
LoadPlaylist();
+#if VDRVERSNUM < 10307
Interface->Flush();
+#else
+ Skins.Flush();
+#endif
// jump to playlist view from here?
} break;
case 1:
{
SavePlaylist();
+#if VDRVERSNUM >= 10307
+ Skins.Message(mtInfo,"Playlist saved");
+ Skins.Flush();
+#else
Interface->Status( "Playlist saved");
Interface->Flush();
+#endif
} break;
case 2:
{ // renamer playlist
RenamePlaylist();
// confirmation
+#if VDRVERSNUM >= 10307
+ Skins.Message(mtInfo,"Playlist renamed (dummy)");
+ Skins.Flush();
+#else
Interface->Status( "Playlist renamed (dummy)" );
Interface->Flush();
+#endif
state = osContinue;
} break;
@@ -763,8 +795,13 @@ eOSState mgMainMenu::PlaylistSubmenuAction( int n )
m_current_playlist->clear();
// confirmation
+#if VDRVERSNUM >= 10307
+ Skins.Message(mtInfo,"Playlist cleared");
+ Skins.Flush();
+#else
Interface->Status( "Playlist cleared" );
Interface->Flush();
+#endif
state = osContinue;
} break;
@@ -778,8 +815,13 @@ eOSState mgMainMenu::PlaylistSubmenuAction( int n )
DisplayPlaylist( m_last_osd_index );
// confirmation
+#if VDRVERSNUM >= 10307
+ Skins.Message(mtInfo,"Entry removed");
+ Skins.Flush();
+#else
Interface->Status( "Entry removed" );
Interface->Flush();
+#endif
} break;
case 5:
{