MythTV master
v2recording.h
Go to the documentation of this file.
1
2// Program Name: recording.h
3// Created : Jan. 15, 2010
4//
5// Copyright (c) 2010 David Blain <dblain@mythtv.org>
6//
7// Licensed under the GPL v2 or later, see COPYING for details
8//
10
11#ifndef V2RECORDING_H_
12#define V2RECORDING_H_
13
14// Qt
15#include <QChar> // Fix Qt6 GCC SFINAE warning
16#include <QDateTime>
17#include <QString>
18
19// MythTV
23
24class V2RecordingInfo : public QObject
25{
26 Q_OBJECT
27 Q_CLASSINFO( "Version", "1.3" );
28
29 SERVICE_PROPERTY2( uint , RecordedId )
30 SERVICE_PROPERTY2( int , Status )
31 SERVICE_PROPERTY2( QString , StatusName )
32 SERVICE_PROPERTY2( QString , RecTypeStatus )
34 SERVICE_PROPERTY2( QDateTime , StartTs )
35 SERVICE_PROPERTY2( QDateTime , EndTs )
36 SERVICE_PROPERTY2( qlonglong , FileSize ) // v1.3
37 SERVICE_PROPERTY2( QString , FileName ) // v1.3
38 SERVICE_PROPERTY2( QString , HostName ) // v1.3
39 SERVICE_PROPERTY2( QDateTime , LastModified) // v1.3
40 SERVICE_PROPERTY2( int , RecordId )
41 SERVICE_PROPERTY2( QString , RecGroup )
43 SERVICE_PROPERTY2( QString , PlayGroup )
44 // This is actually enum type RecordingType
45 SERVICE_PROPERTY2( int , RecType )
46 // This is actually enum type RecordingDupInType
47 SERVICE_PROPERTY2( int , DupInType )
48 // This is actually enum type RecordingDupMethodType
49 SERVICE_PROPERTY2( int , DupMethod )
50 SERVICE_PROPERTY2( int , EncoderId )
51 SERVICE_PROPERTY2( QString , EncoderName )
52 SERVICE_PROPERTY2( QString , Profile )
53
54 public:
55
56 Q_INVOKABLE V2RecordingInfo(QObject *parent = nullptr)
57 : QObject ( parent ),
58 m_Status ( RecStatus::Unknown ),
59 m_RecType ( kNotRecording ),
60 m_DupInType ( kDupsInRecorded ),
61 m_DupMethod ( kDupCheckNone )
62 {
63 }
64
65 void Copy( const V2RecordingInfo *src )
66 {
67 m_RecordedId = src->m_RecordedId ;
68 m_Status = src->m_Status ;
69 m_StatusName = src->m_StatusName ;
70 m_Priority = src->m_Priority ;
71 m_StartTs = src->m_StartTs ;
72 m_EndTs = src->m_EndTs ;
73 m_FileSize = src->m_FileSize ;
74 m_FileName = src->m_FileName ;
75 m_HostName = src->m_HostName ;
76 m_LastModified = src->m_LastModified ;
77 m_RecordId = src->m_RecordId ;
78 m_RecGroup = src->m_RecGroup ;
79 m_StorageGroup = src->m_StorageGroup ;
80 m_PlayGroup = src->m_PlayGroup ;
81 m_RecType = src->m_RecType ;
82 m_DupInType = src->m_DupInType ;
83 m_DupMethod = src->m_DupMethod ;
84 m_EncoderId = src->m_EncoderId ;
85 m_EncoderName = src->m_EncoderName ;
86 m_Profile = src->m_Profile ;
87 }
88
89 private:
91};
92
94
95#endif
Q_DISABLE_COPY(V2RecordingInfo)
void Copy(const V2RecordingInfo *src)
Definition: v2recording.h:65
SERVICE_PROPERTY2(qlonglong, FileSize) SERVICE_PROPERTY2(QString
Q_CLASSINFO("Version", "1.3")
unsigned int uint
Definition: compat.h:60
Q_DECLARE_METATYPE(std::chrono::seconds)
@ kDupsInRecorded
@ kNotRecording
@ kDupCheckNone