Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
battery1_p.h
Go to the documentation of this file.
1/*
2 * This file was generated by qdbusxml2cpp version 0.8
3 * Command line was: qdbusxml2cpp -I QtCore/private/qglobal_p.h -p battery1_p.h:battery1.cpp org.bluez.Battery1.xml
4 *
5 * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
6 *
7 * This is an auto-generated file.
8 * Do not edit! All changes made to it will be lost.
9 */
10
11#ifndef BATTERY1_P_H
12#define BATTERY1_P_H
13
14//
15// W A R N I N G
16// -------------
17//
18// This file is not part of the Qt API. It exists purely as an
19// implementation detail. This header file may change from version to
20// version without notice, or even be removed.
21//
22// We mean it.
23//
24
25#include <QtCore/QObject>
26#include <QtCore/QByteArray>
27#include <QtCore/QList>
28#include <QtCore/QMap>
29#include <QtCore/QString>
30#include <QtCore/QStringList>
31#include <QtCore/QVariant>
32#include <QtDBus/QtDBus>
33#include <QtCore/private/qglobal_p.h>
34
35/*
36 * Proxy class for interface org.bluez.Battery1
37 */
39{
41public:
42 static inline const char *staticInterfaceName()
43 { return "org.bluez.Battery1"; }
44
45public:
47
49
51 inline uchar percentage() const
52 { return qvariant_cast< uchar >(property("Percentage")); }
53
54public Q_SLOTS: // METHODS
55Q_SIGNALS: // SIGNALS
56};
57
58namespace org {
59 namespace bluez {
61 }
62}
63#endif
OrgBluezBattery1Interface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent=nullptr)
Definition battery1.cpp:18
static const char * staticInterfaceName()
Definition battery1_p.h:42
uchar percentage() const
Definition battery1_p.h:51
QString service() const
Returns the name of the service this interface is associated with.
QDBusConnection connection() const
Returns the connection this interface is associated with.
\inmodule QtDBus
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
GLsizei const GLchar *const * path
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
unsigned char uchar
Definition qtypes.h:32
const char property[13]
Definition qwizard.cpp:101