forked from jowi24/vdr-screenshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscreenshot.h
More file actions
114 lines (100 loc) · 2.74 KB
/
screenshot.h
File metadata and controls
114 lines (100 loc) · 2.74 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*
* screenshot.h: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#ifndef _SCREENSHOT__H
#define _SCREENSHOT__H
#include <vdr/plugin.h>
#include <vdr/status.h>
static const char *VERSION = "0.0.16";
static const char *DESCRIPTION = "Takes screenshots";
static const char *MAINMENUENTRY = "Screenshot";
static const char *FILEFORMATS[10] = {"pnm", "jpg"};
class cMenuScreenshot : public cOsdObject {
private:
char tmp[20];
const char *title;
int showdate;
public:
cMenuScreenshot(void);
void Show(void);
virtual eOSState ProcessKey(eKeys Key) { return osEnd; }
};
class cPluginScreenshot : public cPlugin, public cStatus {
private:
bool delayActive;
int muteCounter;
int currentVolume;
#if VDRVERSNUM < 10338
virtual void Replaying(const cControl *Control, const char *Name);
#else
virtual void Replaying(const cControl *Control, const char *Name, const char *FileName, bool On);
#endif
virtual void OsdProgramme(time_t PresentTime, const char *PresentTitle, const char *PresentSubtitle, time_t FollowingTime, const char *FollowingTitle, const char *FollowingSubtitle);
virtual void SetVolume(int Volume, bool Absolute);
virtual void OsdTitle(const char *Title);
virtual void OsdClear();
public:
cPluginScreenshot(void);
virtual ~cPluginScreenshot();
virtual const char *Version(void) { return VERSION; }
virtual const char *Description(void) { return tr(DESCRIPTION); }
virtual const char *CommandLineHelp(void);
virtual bool ProcessArgs(int argc, char *argv[]);
virtual bool Initialize(void);
virtual bool Start(void);
virtual void Housekeeping(void);
virtual const char *MainMenuEntry(void);
virtual cOsdObject *MainMenuAction(void);
virtual cMenuSetupPage *SetupMenu(void);
virtual bool SetupParse(const char *Name, const char *Value);
};
class cThreadScreenshot : public cThread {
private:
public:
virtual void Action(void);
};
class cMenuSetupScreenshot : public cMenuSetupPage {
private:
char sNewPath[100];
int iNewFileformat;
int iNewQuality;
int iNewResX;
int iNewResY;
int iNewNoOfPics;
int iNewHideMenuEntry;
int iNewUserKey;
int iNewHideOsd;
int iNewShowDate;
int iNewDelayed;
protected:
virtual void Store(void);
public:
cMenuSetupScreenshot(void);
};
struct cScreenshotConfig {
public:
cScreenshotConfig(void);
char sPath[100];
int iFileformat;
int iQuality;
int iResX;
int iResY;
int iNoOfPics;
int iHideMenuEntry;
int iUserKey;
int iHideOsd;
int iShowDate;
int iDelayed;
};
extern cScreenshotConfig screenshotConfig;
struct cScreenshotData {
public:
char title[100];
char osd_title[100];
cOsd *osd;
};
extern cScreenshotData screenshotData;
#endif