-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosdwebappmenu.h
40 lines (28 loc) · 880 Bytes
/
osdwebappmenu.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
//
// Created by rh on 25.06.24.
//
#pragma once
#include <vdr/osd.h>
#include <vdr/menu.h>
#define MINI_CASE_SENSITIVE
#include "mini/ini.h"
inline bool endsWith(const std::string& str, const std::string& suffix) {
return str.size() >= suffix.size() && 0 == str.compare(str.size()-suffix.size(), suffix.size(), suffix);
}
class cOsdWebAppMenu : public cOsdMenu {
private:
mINI::INIStructure& configuration;
std::vector<std::string> sections;
std::string configDir;
void processSection(std::string& section);
public:
cOsdWebAppMenu(const char *title, mINI::INIStructure& configuration, std::string relativeConfigDir);
~cOsdWebAppMenu();
eOSState ProcessKey(eKeys key) override;
};
class cOsdWebAppMenuItem : public cOsdItem {
private:
public:
explicit cOsdWebAppMenuItem(std::string string);
~cOsdWebAppMenuItem() override;
};