-
Notifications
You must be signed in to change notification settings - Fork 2
/
filebrowser.h
44 lines (35 loc) · 967 Bytes
/
filebrowser.h
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
#ifndef __MPV_FILEBROWSER
#define __MPV_FILEBROWSER
#include <string>
#include <vdr/plugin.h>
using std::string;
class cMpvFilebrowser:public cOsdMenu
{
private:
string rootDir;
string discDevice;
static string currentDir;
static string currentItem;
void ShowDirectory(string Path);
int PlayListCreate(string Path, FILE *fdPl);
void AddItem(string Path, string Text, bool IsDir);
bool PlayFile(string Filename, bool Shuffle=false);
bool PlayDisc();
bool Mount(string Path);
bool Unmount();
public:
cMpvFilebrowser(string RootDir, string DiscDevice);
virtual eOSState ProcessKey(eKeys Key);
static string CurrentDir() { return currentDir; }
};
class cMpvFilebrowserMenuItem:public cOsdItem
{
private:
string path;
bool isDir;
public:
cMpvFilebrowserMenuItem(string Path, string Item, bool IsDir);
string Path() { return path; }
bool IsDirectory() { return isDir; }
};
#endif