MythTV  master
v2country.h
Go to the documentation of this file.
1 #ifndef V2COUNTRY_H_
2 #define V2COUNTRY_H_
3 
4 #include <QString>
6 class V2Country : public QObject
7 {
8  Q_OBJECT
9  Q_CLASSINFO( "Version" , "1.0" );
10 
11  SERVICE_PROPERTY2( QString , Code )
12  SERVICE_PROPERTY2( QString , Country )
13  SERVICE_PROPERTY2( QString , NativeCountry )
14  SERVICE_PROPERTY2( QString , Image )
15 
16  public:
17  Q_INVOKABLE V2Country(QObject *parent = nullptr)
18  : QObject( parent )
19  {
20  }
21 
22  void Copy( const V2Country *src )
23  {
24  m_Code = src->m_Code ;
25  m_Country = src->m_Country ;
26  m_NativeCountry = src->m_NativeCountry ;
27  m_Image = src->m_Image ;
28  }
29 
30  private:
31  Q_DISABLE_COPY(V2Country)
32 };
33 
35 
36 #endif // V2COUNTRY_H_
Image
Definition: image.h:33
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
SERVICE_PROPERTY2
#define SERVICE_PROPERTY2(Type, Name)
Definition: mythhttpservice.h:72
V2Country::V2Country
Q_INVOKABLE V2Country(QObject *parent=nullptr)
Definition: v2country.h:17
V2Country
Definition: v2country.h:6
mythhttpservice.h
V2Country::Q_CLASSINFO
Q_CLASSINFO("Version", "1.0")
V2Country::Copy
void Copy(const V2Country *src)
Definition: v2country.h:22