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_REF(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; \
}

Definition at line 56 of file datacontracthelper.h.

◆ PROPERTYIMP_REF

#define PROPERTYIMP_REF (   type,
  name 
)
Value:
private: type m_##name; \
public: \
type name() const \
{ \
return m_##name; \
} \
void set##name(const type& val) \
{ \
m_##name = val; \
}

Definition at line 70 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; \
}

Definition at line 84 of file datacontracthelper.h.

◆ PROPERTYIMP_PTR

#define PROPERTYIMP_PTR (   type,
  name 
)
Value:
private: type* m_##name; /* NOLINT(bugprone-macro-parentheses) */ \
public: \
type* name() /* NOLINT(bugprone-macro-parentheses) */ \
{ \
if (m_##name == nullptr) \
m_##name = new type( this );\
return m_##name; \
}

Definition at line 102 of file datacontracthelper.h.

◆ PROPERTYIMP_RO_REF

#define PROPERTYIMP_RO_REF (   type,
  name 
)
Value:
private: type m_##name; \
public: \
type &name() /* NOLINT(bugprone-macro-parentheses) */ \
{ \
return m_##name; \
}

Definition at line 114 of file datacontracthelper.h.