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 // MythTV
9 
10 using ChannelList = QMultiHash<QString, ChannelInfo>;
11 
13 {
14  public:
15  ChannelData() = default;
16 
17  bool insert_chan(uint sourceid) const;
18  void handleChannels(int id, ChannelInfoList *chanlist) const;
19  unsigned int promptForChannelUpdates(ChannelInfoList::iterator chaninfo,
20  unsigned int chanid) const;
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
ChannelInfo
Definition: channelinfo.h:31
ChannelData::normalizeChannelKey
static QString normalizeChannelKey(const QString &chanName)
Definition: channeldata.cpp:121
ChannelData::ChannelData
ChannelData()=default
ChannelData::handleChannels
void handleChannels(int id, ChannelInfoList *chanlist) const
Definition: channeldata.cpp:191
ChannelData
Definition: channeldata.h:12
ChannelData::m_cardType
QString m_cardType
Definition: channeldata.h:33
ChannelData::promptForChannelUpdates
unsigned int promptForChannelUpdates(ChannelInfoList::iterator chaninfo, unsigned int chanid) const
Definition: channeldata.cpp:85
ChannelData::m_channelPreset
bool m_channelPreset
Definition: channeldata.h:30
ChannelData::channelList
static ChannelList channelList(int sourceId)
Definition: channeldata.cpp:133
ChannelData::m_guideDataOnly
bool m_guideDataOnly
Definition: channeldata.h:29
ChannelData::m_interactive
bool m_interactive
Definition: channeldata.h:28
ChannelData::m_channelUpdates
bool m_channelUpdates
Definition: channeldata.h:31
uint
unsigned int uint
Definition: compat.h:79
channelinfo.h
ChannelData::m_filterNewChannels
bool m_filterNewChannels
Definition: channeldata.h:32
ChannelData::FindMatchingChannel
static ChannelInfo FindMatchingChannel(const ChannelInfo &chanInfo, ChannelList existingChannels)
Definition: channeldata.cpp:155
ChannelList
QList< ChannelListItem > ChannelList
Definition: channelscan_sm.h:67
ChannelData::insert_chan
bool insert_chan(uint sourceid) const
Definition: channeldata.cpp:60
ChannelInfoList
std::vector< ChannelInfo > ChannelInfoList
Definition: channelinfo.h:131