MythTV  master
sourceutil.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 #ifndef SOURCEUTIL_H
3 #define SOURCEUTIL_H
4 
5 // C++ headers
6 #include <vector>
7 
8 // Qt headers
9 #include <QString>
10 
11 // MythTV headers
12 #include "mythtvexp.h"
13 
15 {
16  public:
17  static bool HasDigitalChannel(uint sourceid);
18  static QString GetSourceName(uint sourceid);
19  static uint GetSourceID(const QString &name);
20  static QString GetChannelSeparator(uint sourceid);
21  static QString GetChannelFormat(uint sourceid);
22  static uint GetChannelCount(uint sourceid);
23  static std::vector<uint> GetMplexIDs(uint sourceid);
24  static bool GetListingsLoginData(uint sourceid,
25  QString &grabber, QString &userid,
26  QString &passwd, QString &lineupid);
27  static uint GetConnectionCount(uint sourceid);
28  static bool IsProperlyConnected(uint sourceid, bool strict = false);
29  static bool IsEncoder(uint sourceid, bool strict = false);
30  static bool IsUnscanable(uint sourceid);
31  static bool IsCableCardPresent(uint sourceid);
32  static bool IsAnySourceScanable(void);
33  static bool IsSourceIDValid(uint sourceid);
34  static bool UpdateChannelsFromListings(
35  uint sourceid, const QString& inputtype = QString(), bool wait = false);
36 
37  static bool UpdateSource( uint sourceid, const QString& sourcename,
38  const QString& grabber, const QString& userid,
39  const QString& freqtable, const QString& lineupid,
40  const QString& password, bool useeit,
41  const QString& configpath, int nitid,
42  uint bouquetid, uint regionid, uint scanfrequency,
43  uint lcnoffset);
44  static int CreateSource( const QString& sourcename,
45  const QString& grabber, const QString& userid,
46  const QString& freqtable, const QString& lineupid,
47  const QString& password, bool useeit,
48  const QString& configpath, int nitid,
49  uint bouquetid, uint regionid, uint scanfrequency,
50  uint lcnoffset);
51  static bool DeleteSource(uint sourceid);
52  static bool DeleteAllSources(void);
53 };
54 
55 #endif //SOURCEUTIL_H
mythtvexp.h
uint
unsigned int uint
Definition: compat.h:81
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
SourceUtil
Definition: sourceutil.h:14