summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/bluez/gattcharacteristic1adaptor_p.h
blob: 7f80e8f079cbd28a0ceb4c9119fc3c768701e8a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp -a gattcharacteristic1adaptor_p.h:gattcharacteristic1adaptor.cpp -c OrgBluezGattCharacteristic1Adaptor -i bluez5_helper_p.h org.bluez.GattCharacteristic1.xml
 *
 * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
 *
 * This is an auto-generated file.
 * This file may have been hand-edited. Look for HAND-EDIT comments
 * before re-generating it.
 */

#ifndef GATTCHARACTERISTIC1ADAPTOR_P_H
#define GATTCHARACTERISTIC1ADAPTOR_P_H

//
//  W A R N I N G
//  -------------
//
// This file is not part of the Qt API.  It exists purely as an
// implementation detail.  This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//

#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "bluez5_helper_p.h"
#include <QtCore/qcontainerfwd.h>

/*
 * Adaptor class for interface org.bluez.GattCharacteristic1
 */
class OrgBluezGattCharacteristic1Adaptor: public QDBusAbstractAdaptor
{
    Q_OBJECT
    Q_CLASSINFO("D-Bus Interface", "org.bluez.GattCharacteristic1")
    Q_CLASSINFO("D-Bus Introspection", ""
"  <interface name=\"org.bluez.GattCharacteristic1\">\n"
"    <method name=\"ReadValue\">\n"
"      <arg direction=\"in\" type=\"a{sv}\" name=\"options\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
"      <arg direction=\"out\" type=\"ay\" name=\"value\"/>\n"
"    </method>\n"
"    <method name=\"WriteValue\">\n"
"      <arg direction=\"in\" type=\"ay\" name=\"value\"/>\n"
"      <arg direction=\"in\" type=\"a{sv}\" name=\"options\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In1\"/>\n"
"    </method>\n"
"    <method name=\"StartNotify\"/>\n"
"    <method name=\"StopNotify\"/>\n"
"    <property access=\"read\" type=\"s\" name=\"UUID\"/>\n"
"    <property access=\"read\" type=\"o\" name=\"Service\"/>\n"
"    <property access=\"read\" type=\"ay\" name=\"Value\"/>\n"
"    <property access=\"read\" type=\"b\" name=\"Notifying\"/>\n"
"    <property access=\"read\" type=\"as\" name=\"Flags\"/>\n"
"  </interface>\n"
        "")
public:
    OrgBluezGattCharacteristic1Adaptor(QObject *parent);
    virtual ~OrgBluezGattCharacteristic1Adaptor();

public: // PROPERTIES
    Q_PROPERTY(QStringList Flags READ flags)
    QStringList flags() const;

    Q_PROPERTY(bool Notifying READ notifying)
    bool notifying() const;

    Q_PROPERTY(QDBusObjectPath Service READ service)
    QDBusObjectPath service() const;

    Q_PROPERTY(QString UUID READ uUID)
    QString uUID() const;

    Q_PROPERTY(QByteArray Value READ value)
    QByteArray value() const;

public Q_SLOTS: // METHODS
    QByteArray ReadValue(const QVariantMap &options, const QDBusMessage &msg);
    void StartNotify();
    void StopNotify();
    void WriteValue(const QByteArray &value, const QVariantMap &options, const QDBusMessage& msg);
Q_SIGNALS: // SIGNALS
};

#endif