MythTV master
v2country.h
Go to the documentation of this file.
1#ifndef V2COUNTRY_H_
2#define V2COUNTRY_H_
3
4#include <QString>
6class 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_
Q_CLASSINFO("Version", "1.0")
void Copy(const V2Country *src)
Definition: v2country.h:22
Q_INVOKABLE V2Country(QObject *parent=nullptr)
Definition: v2country.h:17
Q_DECLARE_METATYPE(std::chrono::seconds)
#define SERVICE_PROPERTY2(Type, Name)