MythTV  master
inputinfo.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 #ifndef INPUTINFO_H
3 #define INPUTINFO_H
4 
5 #include <utility>
6 
7 // Qt headers
8 #include <QMap>
9 #include <QStringList>
10 
11 // MythTV headers
12 #include "channelinfo.h" // for ChannelInfoList
13 
15 {
16  public:
17  InputInfo() = default;
18  InputInfo(QString _name,
19  uint _sourceid, uint _inputid, uint _mplexid,
20  uint _chanid, uint _livetvorder) :
21  m_name(std::move(_name)),
22  m_sourceId(_sourceid),
23  m_inputId(_inputid),
24  m_mplexId(_mplexid),
25  m_chanId(_chanid),
26  m_liveTvOrder(_livetvorder) {}
27 
28  virtual ~InputInfo() = default;
29 
30  InputInfo(const InputInfo&) = default;
31  InputInfo &operator=(const InputInfo&) = default;
32 
33  bool operator == (uint inputid) const
34  { return m_inputId == inputid; }
35 
36  bool operator == (const QString &name) const
37  { return m_name == name; }
38 
39  virtual bool FromStringList(QStringList::const_iterator &it,
40  const QStringList::const_iterator& end);
41  virtual void ToStringList(QStringList &list) const;
42 
43  virtual void Clear(void);
44  virtual bool IsEmpty(void) const { return m_name.isEmpty(); }
45 
46  public:
47  QString m_name;
48  uint m_sourceId {0};
49  uint m_inputId {0};
50  uint m_mplexId {0};
51  uint m_chanId {0};
52  QString m_displayName;
53  int m_recPriority {0};
54  uint m_scheduleOrder {0};
55  uint m_liveTvOrder {0};
56  bool m_quickTune {false};
57 };
58 
59 #endif // INPUTINFO_H
operator==
bool operator==(MusicMetadata &a, MusicMetadata &b)
Definition: musicmetadata.cpp:49
InputInfo::InputInfo
InputInfo(QString _name, uint _sourceid, uint _inputid, uint _mplexid, uint _chanid, uint _livetvorder)
Definition: inputinfo.h:18
uint
unsigned int uint
Definition: compat.h:140
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
channelinfo.h
m_name
const char * m_name
Definition: ParseText.cpp:329
Clear
#define Clear(a)
Definition: audiooutputopensles.cpp:49
InputInfo
Definition: inputinfo.h:14
InputInfo::IsEmpty
virtual bool IsEmpty(void) const
Definition: inputinfo.h:44
InputInfo::m_displayName
QString m_displayName
Definition: inputinfo.h:52
InputInfo::m_name
QString m_name
input name
Definition: inputinfo.h:47