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 <QDateTime>
16#include <QString>
17
18// MythTV
22
23class 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( QString , StatusName )
31 SERVICE_PROPERTY2( QString , RecTypeStatus )
33 SERVICE_PROPERTY2( QDateTime , StartTs )
34 SERVICE_PROPERTY2( QDateTime , EndTs )
35 SERVICE_PROPERTY2( qlonglong , FileSize ) // v1.3
36 SERVICE_PROPERTY2( QString , FileName ) // v1.3
37 SERVICE_PROPERTY2( QString , HostName ) // v1.3
38 SERVICE_PROPERTY2( QDateTime , LastModified) // v1.3
39 SERVICE_PROPERTY2( int , RecordId )
40 SERVICE_PROPERTY2( QString , RecGroup )
42 SERVICE_PROPERTY2( QString , PlayGroup )
43 // This is actually enum type RecordingType
44 SERVICE_PROPERTY2( int , RecType )
45 // This is actually enum type RecordingDupInType
46 SERVICE_PROPERTY2( int , DupInType )
47 // This is actually enum type RecordingDupMethodType
48 SERVICE_PROPERTY2( int , DupMethod )
49 SERVICE_PROPERTY2( int , EncoderId )
50 SERVICE_PROPERTY2( QString , EncoderName )
51 SERVICE_PROPERTY2( QString , Profile )
52
53 public:
54
55 Q_INVOKABLE V2RecordingInfo(QObject *parent = nullptr)
56 : QObject ( parent ),
57 m_Status ( RecStatus::Unknown ),
58 m_RecType ( kNotRecording ),
59 m_DupInType ( kDupsInRecorded ),
60 m_DupMethod ( kDupCheckNone )
61 {
62 }
63
64 void Copy( const V2RecordingInfo *src )
65 {
66 m_RecordedId = src->m_RecordedId ;
67 m_Status = src->m_Status ;
68 m_StatusName = src->m_StatusName ;
69 m_Priority = src->m_Priority ;
70 m_StartTs = src->m_StartTs ;
71 m_EndTs = src->m_EndTs ;
72 m_FileSize = src->m_FileSize ;
73 m_FileName = src->m_FileName ;
74 m_HostName = src->m_HostName ;
75 m_LastModified = src->m_LastModified ;
76 m_RecordId = src->m_RecordId ;
77 m_RecGroup = src->m_RecGroup ;
78 m_StorageGroup = src->m_StorageGroup ;
79 m_PlayGroup = src->m_PlayGroup ;
80 m_RecType = src->m_RecType ;
81 m_DupInType = src->m_DupInType ;
82 m_DupMethod = src->m_DupMethod ;
83 m_EncoderId = src->m_EncoderId ;
84 m_EncoderName = src->m_EncoderName ;
85 m_Profile = src->m_Profile ;
86 }
87
88 private:
90};
91
93
94#endif
Q_DISABLE_COPY(V2RecordingInfo)
void Copy(const V2RecordingInfo *src)
Definition: v2recording.h:64
SERVICE_PROPERTY2(qlonglong, FileSize) SERVICE_PROPERTY2(QString
Q_CLASSINFO("Version", "1.3")
unsigned int uint
Definition: freesurround.h:24
Q_DECLARE_METATYPE(std::chrono::seconds)
@ kDupsInRecorded
@ kNotRecording
@ kDupCheckNone