forked from vdr-projects/vdr-plugin-tvscraper
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathextEpgPlugin.h
35 lines (30 loc) · 870 Bytes
/
extEpgPlugin.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
#ifndef __TVSCRAPER_EXTEPGPLUGIN_H
#define __TVSCRAPER_EXTEPGPLUGIN_H
// interface for external epg plugin
#include "services.h"
#include <vdr/epg.h>
#include "sEvent.h"
#include <string>
#include <vector>
#include <memory>
//
// to be implemented by the extEpg plugin ===========================
//
class iExtEpgForChannel
{
public:
iExtEpgForChannel() {}
virtual ~iExtEpgForChannel() {}
virtual void enhanceEvent(cStaticEvent *event, std::vector<cTvMedia> &extEpgImages) = 0;
};
class iExtEpg
{
public:
iExtEpg() {}
virtual ~iExtEpg() {}
virtual const char *getSource() = 0;
virtual bool myDescription(const char *description) = 0;
virtual std::shared_ptr<iExtEpgForChannel> getHandlerForChannel(const std::string &extChannelId) = 0;
};
extern "C" iExtEpg* extEpgPluginCreator(bool debug);
#endif // __TVSCRAPER_EXTEPGPLUGIN_H