summaryrefslogtreecommitdiff
path: root/mainmenu.h
blob: 0f6808099441c1b1b0d1aee928b62ed14b30d4b4 (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
#ifndef MAINMENU_H
#define MAINMENU_H



#include <string>
#include <algorithm>
#include <sstream>
#include <fstream>
#include <iostream>
#include <map>
#include <vdr/osdbase.h>
#include "actions.h"



class cFolderList : public cOsdMenu
{
public:
    cFolderList();
    ~cFolderList();
    std::string getRomName(std::string GameName);
private:
    eOSState ProcessKey(eKeys Key);
    void createFolders();
};



class cGameList : public cOsdMenu
{
public:
    cGameList(const char *Base=NULL);
    ~cGameList();
private:
    const char* FolderName;
    std::map<std::string, std::string> m_GameMap;
    std::map<std::string, std::string>::const_iterator m_MapIter;
    cActions* Actions;
    bool createGameList();
    eOSState ProcessKey(eKeys Key);
    void FillFolders();
    void Open();
};



#endif