summaryrefslogtreecommitdiff
path: root/mg_playcommands.c
blob: 02b38cad4e3d05f6bd7bed43085060ab2d5789da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//								-*- c++ -*-

#include <string>
#include <fstream>

#include <vdr/interface.h>
#include <vdr/menu.h>
#include <vdr/plugin.h>
#include <vdr/status.h>

#include "mg_playcommands.h"
#include "mg_skin.h"
#include "mg_setup.h"

#define X_DISPLAY_MISSING
#define MAXLENGTH 256
#define THEMESEXT "*.theme"
#define VISEXT "*.visual"
#define FINDCMD "cd '%s' && find '%s' -iname '%s' -printf '%%p\n' | sort -f"

char urlname[256];

extern char coverpicture[256];


// ------------ mgPlayerCommands --------------------------------------------------------------------------------------------------- //

mgPlayerCommands::mgPlayerCommands(void) {
}

mgPlayerCommands::~mgPlayerCommands() {
}

void
mgPlayerCommands::BuildOsd() {
	RedAction=actBack;
	InitOsd(true);
	AddAction(actToggleShuffle);
	AddAction(actToggleLoop);
	AddAction(actShowLyrics);
}

string
mgPlayerCommands::Title() const
{
	return tr("Commands");
}

void mgPlayerCommands::LoadCommands() {
	commands.Load(AddDirectory(the_setup.ConfigDirectory.c_str(), "data/musiccmds.dat"), true);
}

eOSState mgPlayerCommands::Execute(void) {
	return osContinue;
}