MythTV  master
v2recording.h
Go to the documentation of this file.
1 // 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 <QDateTime>
16 #include <QString>
17 
18 // MythTV
22 
23 class V2RecordingInfo : public QObject
24 {
25  Q_OBJECT
26  Q_CLASSINFO( "Version", "1.3" );
27 
28  SERVICE_PROPERTY2( uint , RecordedId )
29  SERVICE_PROPERTY2( int , Status )
30  SERVICE_PROPERTY2( RecStatus::Type , StatusName )
32  SERVICE_PROPERTY2( QDateTime , StartTs )
33  SERVICE_PROPERTY2( QDateTime , EndTs )
34  SERVICE_PROPERTY2( qlonglong , FileSize ) // v1.3
35  SERVICE_PROPERTY2( QString , FileName ) // v1.3
36  SERVICE_PROPERTY2( QString , HostName ) // v1.3
37  SERVICE_PROPERTY2( QDateTime , LastModified) // v1.3
38  SERVICE_PROPERTY2( int , RecordId )
39  SERVICE_PROPERTY2( QString , RecGroup )
41  SERVICE_PROPERTY2( QString , PlayGroup )
42  // This is actually enum type RecordingType
43  SERVICE_PROPERTY2( int , RecType )
44  // This is actually enum type RecordingDupInType
45  SERVICE_PROPERTY2( int , DupInType )
46  // This is actually enum type RecordingDupMethodType
47  SERVICE_PROPERTY2( int , DupMethod )
48  SERVICE_PROPERTY2( int , EncoderId )
49  SERVICE_PROPERTY2( QString , EncoderName )
50  SERVICE_PROPERTY2( QString , Profile )
51 
52  public:
53 
54  Q_INVOKABLE V2RecordingInfo(QObject *parent = nullptr)
55  : QObject ( parent ),
56  m_Status ( RecStatus::Unknown ),
57  m_RecType ( kNotRecording ),
58  m_DupInType ( kDupsInRecorded ),
59  m_DupMethod ( kDupCheckNone )
60  {
61  }
62 
63  void Copy( const V2RecordingInfo *src )
64  {
65  m_RecordedId = src->m_RecordedId ;
66  m_Status = src->m_Status ;
67  m_StatusName = src->m_StatusName ;
68  m_Priority = src->m_Priority ;
69  m_StartTs = src->m_StartTs ;
70  m_EndTs = src->m_EndTs ;
71  m_FileSize = src->m_FileSize ;
72  m_FileName = src->m_FileName ;
73  m_HostName = src->m_HostName ;
74  m_LastModified = src->m_LastModified ;
75  m_RecordId = src->m_RecordId ;
76  m_RecGroup = src->m_RecGroup ;
77  m_StorageGroup = src->m_StorageGroup ;
78  m_PlayGroup = src->m_PlayGroup ;
79  m_RecType = src->m_RecType ;
80  m_DupInType = src->m_DupInType ;
81  m_DupMethod = src->m_DupMethod ;
82  m_EncoderId = src->m_EncoderId ;
83  m_EncoderName = src->m_EncoderName ;
84  m_Profile = src->m_Profile ;
85  }
86 
87  private:
89 };
90 
92 
93 #endif
RecStatus::Type
Type
Definition: recordingstatus.h:16
V2RecordingInfo
Definition: v2recording.h:23
recordingstatus.h
kNotRecording
@ kNotRecording
Definition: recordingtypes.h:22
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
programtypes.h
kDupCheckNone
@ kDupCheckNone
Definition: recordingtypes.h:65
V2RecordingInfo::V2RecordingInfo
Q_INVOKABLE V2RecordingInfo(QObject *parent=nullptr)
Definition: v2recording.h:54
V2RecordingInfo::Copy
void Copy(const V2RecordingInfo *src)
Definition: v2recording.h:63
V2RecordingInfo::Q_DISABLE_COPY
Q_DISABLE_COPY(V2RecordingInfo)
V2RecordingInfo::Q_CLASSINFO
Q_CLASSINFO("Version", "1.3")
uint
unsigned int uint
Definition: compat.h:81
kDupsInRecorded
@ kDupsInRecorded
Definition: recordingtypes.h:48
V2RecordingInfo::SERVICE_PROPERTY2
SERVICE_PROPERTY2(qlonglong, FileSize) SERVICE_PROPERTY2(QString
PlayGroup
Definition: playgroup.h:11
mythhttpservice.h
StorageGroup
Definition: storagegroup.h:11
RecStatus
Definition: recordingstatus.h:10
Priority
Definition: channelsettings.cpp:216