forked from wirbel-at-vdr-portal/wirbelscan-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenusetup.h
64 lines (57 loc) · 1.92 KB
/
menusetup.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
57
58
59
60
61
62
63
64
/*******************************************************************************
* wirbelscan: A plugin for the Video Disk Recorder
* See the README file for copyright information and how to reach the author.
******************************************************************************/
#pragma once
#include <string>
#include <vdr/menuitems.h>
/*******************************************************************************
* forward decls.
******************************************************************************/
class TChannel;
/*******************************************************************************
* class cMenuScanning
******************************************************************************/
class cMenuScanning : public cMenuSetupPage {
private:
static constexpr size_t LOGLEN = 8;
cOsdItem* DevName;
cOsdItem* Progress;
cOsdItem* CurrTransponder;
cOsdItem* Str;
cOsdItem* ChanAdd;
cOsdItem* ChanNew;
cOsdItem* ScanType;
cOsdItem* LogMsg[LOGLEN];
bool needs_update;
bool log_busy;
int transponder;
int transponders;
std::string TimeStr(void);
protected:
virtual bool StartScan(void);
virtual bool StopScan(void);
virtual void AddCategory(std::string category);
public:
cMenuScanning(void);
~cMenuScanning(void);
virtual void Store(void);
virtual eOSState ProcessKey(eKeys Key);
void SetStatus(size_t status);
void SetProgress(size_t progress);
void SetCounters(int curr_tp, int all_tp);
void SetTransponder(const TChannel* transponder);
void SetStr(size_t strength, bool locked);
void SetChan(size_t count);
void SetDeviceName(std::string Name, bool update = true);
void SetChanAdd(size_t flags);
void AddLogMsg(std::string Msg);
};
extern cMenuScanning* MenuScanning;
extern std::string lDeviceName;
extern std::string lTransponder;
extern size_t lProgress;
extern size_t lStrength;
void stopScanners(void);
bool DoScan(int DVB_Type);
void DoStop(void);