MythTV  master
Namespaces | Macros | Functions
datacontracthelper.h File Reference
#include <QList>
#include <QStringList>
#include <QVariantMap>
Include dependency graph for datacontracthelper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 DTC
 

Macros

#define PROPERTYIMP(type, name)
 
#define PROPERTYIMP_ENUM(type, name)
 
#define PROPERTYIMP_PTR(type, name)
 
#define PROPERTYIMP_RO_REF(type, name)
 

Functions

void DTC::DeleteListContents (QVariantList &list)
 
template<class T >
void DTC::CopyListContents (QObject *pParent, QVariantList &dst, const QVariantList &src)
 

Macro Definition Documentation

◆ PROPERTYIMP

#define PROPERTYIMP (   type,
  name 
)
Value:
private: type m_##name; \
public: \
type name() const \
{ \
return m_##name; \
} \
void set##name(const type val) \
{ \
m_##name = val; \
}
const char * name
Definition: ParseText.cpp:328

Definition at line 53 of file datacontracthelper.h.

◆ PROPERTYIMP_ENUM

#define PROPERTYIMP_ENUM (   type,
  name 
)
Value:
private: type m_##name; \
public: \
type name() const \
{ \
return m_##name; \
} \
void set##name(const type val) \
{ \
m_##name = val; \
} \
void set##name( int val) \
{ \
m_##name = (type)val; \
}
const char * name
Definition: ParseText.cpp:328

Definition at line 67 of file datacontracthelper.h.

◆ PROPERTYIMP_PTR

#define PROPERTYIMP_PTR (   type,
  name 
)
Value:
private: type* m_##name; \
public: \
type* name() \
{ \
if (m_##name == nullptr) \
m_##name = new type( this );\
return m_##name; \
}
const char * name
Definition: ParseText.cpp:328

Definition at line 85 of file datacontracthelper.h.

◆ PROPERTYIMP_RO_REF

#define PROPERTYIMP_RO_REF (   type,
  name 
)
Value:
private: type m_##name; \
public: \
type &name() \
{ \
return m_##name; \
}
const char * name
Definition: ParseText.cpp:328

Definition at line 97 of file datacontracthelper.h.