MythTV  master
frontendActionList.h
Go to the documentation of this file.
1 #ifndef FRONTENDACTIONLIST_H
2 #define FRONTENDACTIONLIST_H
3 
4 #include "serviceexp.h"
5 #include "datacontracthelper.h"
6 
7 namespace DTC
8 {
9  class SERVICE_PUBLIC FrontendActionList : public QObject
10  {
11  Q_OBJECT
12  Q_CLASSINFO("version", "1.0");
13 
14  Q_CLASSINFO( "ActionList", "type=QString;name=Action"); // is this legal?
15 
16  Q_PROPERTY(QVariantMap ActionList READ ActionList DESIGNABLE true)
17 
18  PROPERTYIMP_RO_REF(QVariantMap, ActionList);
19 
20  public:
21 
22  static inline void InitializeCustomTypes();
23 
24  Q_INVOKABLE explicit FrontendActionList(QObject *parent = nullptr) : QObject(parent)
25  {
26  }
27 
28  void Copy( const FrontendActionList *src)
29  {
30  m_ActionList = src->m_ActionList;
31  }
32 
33  private:
34  Q_DISABLE_COPY(FrontendActionList);
35  };
37 {
38  qRegisterMetaType<FrontendActionList*>();
39 }
40 
41 };
42 
43 #endif // FRONTENDACTIONLIST_H
Q_INVOKABLE FrontendActionList(QObject *parent=nullptr)
QList< ActionID > ActionList
Definition: action.h:120
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
#define PROPERTYIMP_RO_REF(type, name)
static void InitializeCustomTypes()
void Copy(const FrontendActionList *src)