/
channeldata.h
57 lines (50 loc) · 1.6 KB
/
channeldata.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
#ifndef _CHANNELDATA_H_
#define _CHANNELDATA_H_
// Qt headers
#include <QString>
#include <QList>
class ChanInfo
{
public:
ChanInfo() { }
ChanInfo(const ChanInfo &other) { callsign = other.callsign;
iconpath = other.iconpath;
chanstr = other.chanstr;
xmltvid = other.xmltvid;
old_xmltvid = other.old_xmltvid;
name = other.name;
freqid = other.freqid;
finetune = other.finetune;
tvformat = other.tvformat;
}
QString callsign;
QString iconpath;
QString chanstr;
QString xmltvid;
QString old_xmltvid;
QString name;
QString freqid;
QString finetune;
QString tvformat;
};
class ChannelData
{
public:
ChannelData() :
interactive(false), non_us_updating(false),
channel_preset(false), channel_updates(false),
remove_new_channels(false), filter_new_channels(true) {}
bool insert_chan(uint sourceid);
void handleChannels(int id, QList<ChanInfo> *chanlist);
unsigned int promptForChannelUpdates(
QList<ChanInfo>::iterator chaninfo, unsigned int chanid);
public:
bool interactive;
bool non_us_updating;
bool channel_preset;
bool channel_updates;
bool remove_new_channels;
bool filter_new_channels;
QString cardtype;
};
#endif // _CHANNELDATA_H_