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 using namespace std;
8 
9 // Qt headers
10 #include <QString>
11 
12 // MythTV headers
13 #include "mythtvexp.h"
14 
16 {
17  public:
18  static bool HasDigitalChannel(uint sourceid);
19  static QString GetSourceName(uint sourceid);
20  static QString GetChannelSeparator(uint sourceid);
21  static QString GetChannelFormat(uint sourceid);
22  static uint GetChannelCount(uint sourceid);
23  static 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 UpdateChannelsFromListings(
34  uint sourceid, const QString& inputtype = QString(), bool wait = false);
35 
36  static bool UpdateSource( uint sourceid, const QString& sourcename,
37  const QString& grabber, const QString& userid,
38  const QString& freqtable, const QString& lineupid,
39  const QString& password, bool useeit,
40  const QString& configpath, int nitid,
41  uint bouquetid, uint regionid, uint scanfrequency);
42  static int CreateSource( const QString& sourcename,
43  const QString& grabber, const QString& userid,
44  const QString& freqtable, const QString& lineupid,
45  const QString& password, bool useeit,
46  const QString& configpath, int nitid,
47  uint bouquetid, uint regionid, uint scanfrequency);
48  static bool DeleteSource(uint sourceid);
49  static bool DeleteAllSources(void);
50 };
51 
52 #endif //_SOURCEUTIL_H_
unsigned int uint
Definition: compat.h:140
#define MTV_PUBLIC
Definition: mythtvexp.h:15