MythTV  master
frontendActionList.h
Go to the documentation of this file.
1 #ifndef FRONTENDACTIONLIST_H
2 #define FRONTENDACTIONLIST_H
3 
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 )
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
ActionList
QList< ActionID > ActionList
Definition: action.h:115
DTC::FrontendActionList::FrontendActionList
Q_INVOKABLE FrontendActionList(QObject *parent=nullptr)
Definition: frontendActionList.h:24
SERVICE_PUBLIC
#define SERVICE_PUBLIC
Definition: serviceexp.h:9
DTC::FrontendActionList::InitializeCustomTypes
static void InitializeCustomTypes()
Definition: frontendActionList.h:36
PROPERTYIMP_RO_REF
#define PROPERTYIMP_RO_REF(type, name)
Definition: datacontracthelper.h:114
datacontracthelper.h
serviceexp.h
DTC::FrontendActionList
Definition: frontendActionList.h:9
DTC
Definition: datacontracthelper.h:123
DTC::FrontendActionList::Copy
void Copy(const FrontendActionList *src)
Definition: frontendActionList.h:28