MythTV master
v2storageGroupDir.h
Go to the documentation of this file.
1#ifndef V2STORAGEGROUPDIR_H_
2#define V2STORAGEGROUPDIR_H_
3
4#include <QString>
6class V2StorageGroupDir : public QObject
7{
8 Q_OBJECT
9 Q_CLASSINFO( "Version" , "1.1" );
10
11 SERVICE_PROPERTY2( int , Id )
12 SERVICE_PROPERTY2( QString , GroupName )
13 SERVICE_PROPERTY2( QString , HostName )
14 SERVICE_PROPERTY2( QString , DirName )
15 SERVICE_PROPERTY2( bool , DirRead )
16 SERVICE_PROPERTY2( bool , DirWrite )
17 SERVICE_PROPERTY2( uint , KiBFree )
18
19 public:
20 Q_INVOKABLE V2StorageGroupDir(QObject *parent = nullptr)
21 : QObject( parent )
22 {
23 }
24
25 void Copy( const V2StorageGroupDir *src )
26 {
27 m_Id = src->m_Id ;
28 m_GroupName = src->m_GroupName ;
29 m_HostName = src->m_HostName ;
30 m_DirName = src->m_DirName ;
31 m_DirRead = src->m_DirRead ;
32 m_DirWrite = src->m_DirWrite ;
33 m_KiBFree = src->m_KiBFree ;
34 }
35
36 private:
37 Q_DISABLE_COPY(V2StorageGroupDir)
38};
39
41
42#endif // V2STORAGEGROUPDIR_H_
Q_CLASSINFO("Version", "1.1")
void Copy(const V2StorageGroupDir *src)
Q_INVOKABLE V2StorageGroupDir(QObject *parent=nullptr)
unsigned int uint
Definition: freesurround.h:24
Q_DECLARE_METATYPE(std::chrono::seconds)
#define SERVICE_PROPERTY2(Type, Name)