00001 #ifndef STORAGEGROUPDIR_H_
00002 #define STORAGEGROUPDIR_H_
00003
00004 #include <QString>
00005
00006 #include "serviceexp.h"
00007 #include "datacontracthelper.h"
00008
00009 namespace DTC
00010 {
00011
00013
00014 class SERVICE_PUBLIC StorageGroupDir : public QObject
00015 {
00016 Q_OBJECT
00017 Q_CLASSINFO( "version" , "1.0" );
00018
00019 Q_PROPERTY( int Id READ Id WRITE setId )
00020 Q_PROPERTY( QString GroupName READ GroupName WRITE setGroupName )
00021 Q_PROPERTY( QString HostName READ HostName WRITE setHostName )
00022 Q_PROPERTY( QString DirName READ DirName WRITE setDirName )
00023
00024 PROPERTYIMP ( int , Id )
00025 PROPERTYIMP ( QString , GroupName )
00026 PROPERTYIMP ( QString , HostName )
00027 PROPERTYIMP ( QString , DirName )
00028
00029 public:
00030
00031 static void InitializeCustomTypes()
00032 {
00033 qRegisterMetaType< StorageGroupDir >();
00034 qRegisterMetaType< StorageGroupDir* >();
00035 }
00036
00037 public:
00038
00039 StorageGroupDir(QObject *parent = 0)
00040 : QObject ( parent ),
00041 m_Id ( 0 )
00042 {
00043 }
00044
00045 StorageGroupDir( const StorageGroupDir &src )
00046 {
00047 Copy( src );
00048 }
00049
00050 void Copy( const StorageGroupDir &src )
00051 {
00052 m_Id = src.m_Id ;
00053 m_GroupName = src.m_GroupName ;
00054 m_HostName = src.m_HostName ;
00055 m_DirName = src.m_DirName ;
00056 }
00057 };
00058
00059 }
00060
00061 Q_DECLARE_METATYPE( DTC::StorageGroupDir )
00062 Q_DECLARE_METATYPE( DTC::StorageGroupDir* )
00063
00064 #endif