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>
6using uint = unsigned;
7#include <vector>
8
9// Qt headers
10#include <QString>
11#include <QDateTime>
12
13// MythTV headers
15#include "libmythtv/mythtvexp.h"
16
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
36MTV_PUBLIC std::vector<ScanInfo> LoadScanList(void);
37MTV_PUBLIC std::vector<ScanInfo> LoadScanList(uint sourceid);
40
41#endif // CHANNEL_IMPORTER_HELPERS_H
uint m_scanid
Definition: scaninfo.h:29
uint m_cardid
Definition: scaninfo.h:30
static bool DeleteScan(uint scanid)
Definition: scaninfo.cpp:220
uint m_sourceid
Definition: scaninfo.h:31
ScanInfo()=default
bool m_processed
Definition: scaninfo.h:32
QDateTime m_scandate
Definition: scaninfo.h:33
static void DeleteScansFromSource(uint sourceid)
Definition: scaninfo.cpp:259
static bool MarkProcessed(uint scanid)
Definition: scaninfo.cpp:202
unsigned int uint
Definition: compat.h:68
std::vector< ScanDTVTransport > ScanDTVTransportList
Definition: dtvmultiplex.h:143
#define MTV_PUBLIC
Definition: mythtvexp.h:11
def scan(profile, smoonURL, gate)
Definition: scan.py:54
uint SaveScan(const ScanDTVTransportList &scan)
Definition: scaninfo.cpp:22
MTV_PUBLIC ScanDTVTransportList LoadScan(uint scanid)
Definition: scaninfo.cpp:77
MTV_PUBLIC std::vector< ScanInfo > LoadScanList(void)
Definition: scaninfo.cpp:268