MythTV  master
channeldata.h
Go to the documentation of this file.
1 #ifndef _CHANNELDATA_H_
2 #define _CHANNELDATA_H_
3 
4 // Qt headers
5 #include <QString>
6 
7 // libmythtv
8 #include "channelinfo.h"
9 
10 using ChannelList = QMultiHash<QString, ChannelInfo>;
11 
13 {
14  public:
15  ChannelData() = default;
16 
17  bool insert_chan(uint sourceid);
18  void handleChannels(int id, ChannelInfoList *chanlist);
19  unsigned int promptForChannelUpdates(ChannelInfoList::iterator chaninfo,
20  unsigned int chanid);
21 
22  static ChannelInfo FindMatchingChannel(const ChannelInfo &chanInfo,
23  ChannelList existingChannels);
24  static ChannelList channelList(int sourceId);
25  static QString normalizeChannelKey(const QString &chanName);
26 
27  public:
28  bool m_interactive {false};
29  bool m_guideDataOnly {false};
30  bool m_channelPreset {false};
31  bool m_channelUpdates {false};
32  bool m_filterNewChannels {false};
33  QString m_cardType;
34 };
35 
36 #endif // _CHANNELDATA_H_
QString m_cardType
Definition: channeldata.h:33
bool m_channelUpdates
Definition: channeldata.h:31
static ChannelList channelList(int sourceId)
unsigned int promptForChannelUpdates(ChannelInfoList::iterator chaninfo, unsigned int chanid)
Definition: channeldata.cpp:83
bool m_guideDataOnly
Definition: channeldata.h:29
bool m_channelPreset
Definition: channeldata.h:30
bool m_interactive
Definition: channeldata.h:28
unsigned int uint
Definition: compat.h:140
void handleChannels(int id, ChannelInfoList *chanlist)
bool insert_chan(uint sourceid)
Definition: channeldata.cpp:58
static ChannelInfo FindMatchingChannel(const ChannelInfo &chanInfo, ChannelList existingChannels)
QList< ChannelListItem > ChannelList
bool m_filterNewChannels
Definition: channeldata.h:32
static QString normalizeChannelKey(const QString &chanName)
vector< ChannelInfo > ChannelInfoList
Definition: channelinfo.h:121
ChannelData()=default