-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebapp.h
46 lines (40 loc) · 1.54 KB
/
webapp.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
44
45
46
/*
* webapp.h: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#pragma once
#include <vdr/plugin.h>
#define MINI_CASE_SENSITIVE
#include "mini/ini.h"
static const char *VERSION = "0.0.1";
static const char *DESCRIPTION = "Start specific Apps or load URLs using the web plugin";
static const char *MAINMENUENTRY = "Webapp";
static char* MAINMENUENTRYALT = nullptr;
class cPluginWebapp : public cPlugin {
private:
mINI::INIStructure configuration;
public:
cPluginWebapp();
~cPluginWebapp() override;
const char *Version() override { return VERSION; }
const char *Description() override;
const char *CommandLineHelp() override;
bool ProcessArgs(int argc, char *argv[]) override;
bool Initialize() override;
bool Start() override;
void Stop() override;
void Housekeeping() override;
void MainThreadHook() override;
cString Active() override;
time_t WakeupTime() override;
const char *MainMenuEntry() override { return MAINMENUENTRYALT != nullptr ? MAINMENUENTRYALT : MAINMENUENTRY; }
cOsdObject *MainMenuAction() override;
cMenuSetupPage *SetupMenu() override;
bool SetupParse(const char *Name, const char *Value) override;
bool Service(const char *Id, void *Data) override;
const char **SVDRPHelpPages() override;
cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode) override;
};