MythTV  master
v2storageGroupDir.h
Go to the documentation of this file.
1 #ifndef V2STORAGEGROUPDIR_H_
2 #define V2STORAGEGROUPDIR_H_
3 
4 #include <QString>
6 class 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_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
SERVICE_PROPERTY2
#define SERVICE_PROPERTY2(Type, Name)
Definition: mythhttpservice.h:72
V2StorageGroupDir::Copy
void Copy(const V2StorageGroupDir *src)
Definition: v2storageGroupDir.h:25
uint
unsigned int uint
Definition: compat.h:81
mythhttpservice.h
V2StorageGroupDir
Definition: v2storageGroupDir.h:6
V2StorageGroupDir::Q_CLASSINFO
Q_CLASSINFO("Version", "1.1")
V2StorageGroupDir::V2StorageGroupDir
Q_INVOKABLE V2StorageGroupDir(QObject *parent=nullptr)
Definition: v2storageGroupDir.h:20