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 
23  ChannelList existingChannels) const;
24  ChannelList channelList(int sourceId);
25  QString normalizeChannelKey(const QString &chanName) const;
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
unsigned int uint
Definition: compat.h:140
bool m_channelUpdates
Definition: channeldata.h:31
QString normalizeChannelKey(const QString &chanName) const
ChannelList channelList(int sourceId)
unsigned int promptForChannelUpdates(ChannelInfoList::iterator chaninfo, unsigned int chanid)
Definition: channeldata.cpp:82
bool m_guideDataOnly
Definition: channeldata.h:29
bool m_channelPreset
Definition: channeldata.h:30
bool m_interactive
Definition: channeldata.h:28
void handleChannels(int id, ChannelInfoList *chanlist)
ChannelInfo FindMatchingChannel(const ChannelInfo &chanInfo, ChannelList existingChannels) const
vector< ChannelInfo > ChannelInfoList
Definition: channelinfo.h:120
bool insert_chan(uint sourceid)
Definition: channeldata.cpp:58
bool m_filterNewChannels
Definition: channeldata.h:32
ChannelData()=default
QList< ChannelListItem > ChannelList