MythTV master
v2videoMultiplexList.h
Go to the documentation of this file.
1#ifndef V2VIDEOMULTIPLEXLIST_H_
2#define V2VIDEOMULTIPLEXLIST_H_
3
4#include <QVariantList>
5#include <QDateTime>
6
8
9#include "v2videoMultiplex.h"
10
11class V2VideoMultiplexList : public QObject
12{
13 Q_OBJECT
14 Q_CLASSINFO( "Version", "1.0" );
15
16 Q_CLASSINFO( "VideoMultiplexes", "type=V2VideoMultiplex");
17 Q_CLASSINFO( "AsOf" , "transient=true" );
18
19 SERVICE_PROPERTY2( int , StartIndex )
20 SERVICE_PROPERTY2( int , Count )
21 SERVICE_PROPERTY2( int , CurrentPage )
22 SERVICE_PROPERTY2( int , TotalPages )
23 SERVICE_PROPERTY2( int , TotalAvailable )
24 SERVICE_PROPERTY2( QDateTime , AsOf )
25 SERVICE_PROPERTY2( QString , Version )
26 SERVICE_PROPERTY2( QString , ProtoVer )
27 SERVICE_PROPERTY2( QVariantList, VideoMultiplexes );
28
29 public:
30
31 Q_INVOKABLE V2VideoMultiplexList(QObject *parent = nullptr)
32 : QObject( parent )
33 {
34 }
35
36 void Copy( const V2VideoMultiplexList *src )
37 {
38 m_AsOf = src->m_AsOf ;
39 m_Version = src->m_Version ;
40 m_ProtoVer = src->m_ProtoVer ;
41
42 CopyListContents< V2VideoMultiplex >( this, m_VideoMultiplexes, src->m_VideoMultiplexes );
43 }
44
46 {
47 // We must make sure the object added to the QVariantList has
48 // a parent of 'this'
49
50 auto *pObject = new V2VideoMultiplex( this );
51 m_VideoMultiplexes.append( QVariant::fromValue<QObject *>( pObject ));
52
53 return pObject;
54 }
55
56 private:
58};
59
61
62#endif
void Copy(const V2VideoMultiplexList *src)
V2VideoMultiplex * AddNewVideoMultiplex()
SERVICE_PROPERTY2(QVariantList, VideoMultiplexes)
Q_CLASSINFO("VideoMultiplexes", "type=V2VideoMultiplex")
Q_DISABLE_COPY(V2VideoMultiplexList)
Q_CLASSINFO("Version", "1.0")
Q_CLASSINFO("AsOf", "transient=true")
Q_DECLARE_METATYPE(std::chrono::seconds)