MythTV  master
v2timeZoneInfo.h
Go to the documentation of this file.
1 #ifndef V2TIMEZONEINFO_H_
2 #define V2TIMEZONEINFO_H_
3 
4 #include <QString>
5 #include <QDateTime>
6 
8 class V2TimeZoneInfo : public QObject
9 {
10  Q_OBJECT
11  Q_CLASSINFO( "Version" , "1.0" );
12 
13  SERVICE_PROPERTY2( QString , TimeZoneID )
14  SERVICE_PROPERTY2( int , UTCOffset )
15  SERVICE_PROPERTY2( QDateTime , CurrentDateTime )
16 
17  public:
18 
19  // static inline void InitializeCustomTypes();
20 
21  Q_INVOKABLE V2TimeZoneInfo(QObject *parent = nullptr)
22  : QObject( parent )
23  {
24  }
25 
26  void Copy( const V2TimeZoneInfo *src )
27  {
28  m_TimeZoneID = src->m_TimeZoneID ;
29  m_UTCOffset = src->m_UTCOffset ;
30  m_CurrentDateTime = src->m_CurrentDateTime;
31  }
32 
33  private:
34  Q_DISABLE_COPY(V2TimeZoneInfo)
35 };
36 
38 
39 #endif // V2TIMEZONEINFO_H_
V2TimeZoneInfo::Copy
void Copy(const V2TimeZoneInfo *src)
Definition: v2timeZoneInfo.h:26
V2TimeZoneInfo
Definition: v2timeZoneInfo.h:8
V2TimeZoneInfo::V2TimeZoneInfo
Q_INVOKABLE V2TimeZoneInfo(QObject *parent=nullptr)
Definition: v2timeZoneInfo.h:21
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(StandardSetting *)
SERVICE_PROPERTY2
#define SERVICE_PROPERTY2(Type, Name)
Definition: mythhttpservice.h:72
V2TimeZoneInfo::Q_CLASSINFO
Q_CLASSINFO("Version", "1.0")
mythhttpservice.h