forked from rofafor/vdr-plugin-iptv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiptv.h
56 lines (44 loc) · 1.57 KB
/
iptv.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
47
48
49
50
51
52
53
54
55
56
/*
* iptv.c: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#include <getopt.h>
#include <vdr/plugin.h>
#include "common.h"
#include "config.h"
#include "setup.h"
#include "device.h"
#include "iptvservice.h"
#include "checkurl.h"
class cPluginIptv : public cPlugin {
private:
unsigned int deviceCountM;
int ParseFilters(const char *valueP, int *filtersP);
void findFreeFreqPid(unsigned long &freq, unsigned int &sid, unsigned int &tid, unsigned int &rid);
void addChannel(cString& channel, int &replyCode, cString& replyMessage);
int addM3UCfg(const std::string& cfgFile, const std::string& url);
CheckURL chk;
public:
cPluginIptv();
~cPluginIptv() 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 nullptr; }
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;
};