MythTV  master
scaninfo.h
Go to the documentation of this file.
1 #ifndef CHANNEL_IMPORTER_HELPERS_H
2 #define CHANNEL_IMPORTER_HELPERS_H
3 
4 // C++ headers
5 #include <cstdint>
6 using uint = unsigned;
7 #include <vector>
8 
9 // Qt headers
10 #include <QString>
11 #include <QDateTime>
12 
13 // MythTV headers
14 #include "libmythtv/dtvmultiplex.h"
15 #include "libmythtv/mythtvexp.h"
16 
17 class ScanInfo
18 {
19  public:
20  ScanInfo() = default;
21  ScanInfo(uint scanid, uint cardid, uint sourceid,
22  bool processed, QDateTime scandate);
23 
24  static bool MarkProcessed(uint scanid);
25  static bool DeleteScan(uint scanid);
26  static void DeleteScansFromSource(uint sourceid);
27 
28  public:
32  bool m_processed {false};
33  QDateTime m_scandate;
34 };
35 
36 MTV_PUBLIC std::vector<ScanInfo> LoadScanList(void);
37 MTV_PUBLIC std::vector<ScanInfo> LoadScanList(uint sourceid);
40 
41 #endif // CHANNEL_IMPORTER_HELPERS_H
mythtvexp.h
dtvmultiplex.h
hardwareprofile.scan.scan
def scan(profile, smoonURL, gate)
Definition: scan.py:57
SaveScan
uint SaveScan(const ScanDTVTransportList &scan)
Definition: scaninfo.cpp:22
LoadScan
MTV_PUBLIC ScanDTVTransportList LoadScan(uint scanid)
Definition: scaninfo.cpp:77
LoadScanList
MTV_PUBLIC std::vector< ScanInfo > LoadScanList(void)
Definition: scaninfo.cpp:266
ScanInfo::m_scanid
uint m_scanid
Definition: scaninfo.h:29
ScanInfo::m_scandate
QDateTime m_scandate
Definition: scaninfo.h:33
ScanInfo::MarkProcessed
static bool MarkProcessed(uint scanid)
Definition: scaninfo.cpp:200
ScanInfo::ScanInfo
ScanInfo()=default
uint
unsigned int uint
Definition: compat.h:81
ScanDTVTransportList
std::vector< ScanDTVTransport > ScanDTVTransportList
Definition: dtvmultiplex.h:143
ScanInfo::DeleteScansFromSource
static void DeleteScansFromSource(uint sourceid)
Definition: scaninfo.cpp:257
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
ScanInfo::m_sourceid
uint m_sourceid
Definition: scaninfo.h:31
ScanInfo::m_processed
bool m_processed
Definition: scaninfo.h:32
ScanInfo::m_cardid
uint m_cardid
Definition: scaninfo.h:30
ScanInfo
Definition: scaninfo.h:17
ScanInfo::DeleteScan
static bool DeleteScan(uint scanid)
Definition: scaninfo.cpp:218