QtRestClient
3.0.0
A library for generic JSON-based REST-APIs, with a mechanism to map JSON to Qt objects
src
imports
restclient
qmlrestclient.h
1
#ifndef QTRESTCLIENT_QMLRESTCLIENT_H
2
#define QTRESTCLIENT_QMLRESTCLIENT_H
3
4
#include <QtCore/QObject>
5
#include <QtRestClient/RestClient>
6
7
#include "qmlrestclass.h"
8
9
#ifdef DOXYGEN_RUN
10
namespace
de::skycoder42::QtRestClient
{
11
16
class
RestClient
:
public
::QtRestClient::RestClient
17
{
18
Q_OBJECT
19
28
Q_PROPERTY
(
QQmlListProperty<de::skycoder42::QtRestClient::RestClass>
classes READ classes)
29
#else
30
namespace
QtRestClient
{
31
32
class
QmlRestClient
:
public
RestClient
33
{
34
Q_OBJECT
35
36
Q_PROPERTY
(
QQmlListProperty<QtRestClient::QmlRestClass>
classes READ classes)
37
#endif
38
39
Q_CLASSINFO
(
"DefaultProperty"
,
"classes"
)
40
41
public
:
43
explicit
QmlRestClient
(
QObject
*
parent
=
nullptr
);
44
46
QQmlListProperty<QmlRestClass>
classes();
47
48
private
:
49
QList<QmlRestClass*>
_childClasses;
50
};
51
52
}
53
54
#endif // QTRESTCLIENT_QMLRESTCLIENT_H
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
de::skycoder42::QtRestClient::RestClient
The QML version of QtRestClient::RestClient.
Definition:
qmlrestclient.h:16
QObject::Q_PROPERTY
Q_PROPERTY(...)
QtRestClient
The Namespace containing all classes of the QtRestClient module.
Definition:
genericrestreply.h:14
QObject::Q_CLASSINFO
Q_CLASSINFO(Name, Value)
QList< QmlRestClass * >
de::skycoder42::QtRestClient
The QML import for the QtRestClient QML module.
Definition:
qmlgenericrestreply.h:14
QQmlListProperty
de::skycoder42::QtRestClient::RestClient::QmlRestClient
QmlRestClient(QObject *parent=nullptr)
Default constructor with object parent.
QObject
QObject::parent
QObject * parent() const const
Generated on Tue Dec 10 2019 08:05:50 for QtRestClient by
1.8.16