Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
neard_helper_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2016 BasysKom GmbH.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef NEARD_HELPER_P_H
6#define NEARD_HELPER_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
20
21namespace QtNfcPrivate {
22
23class OrgFreedesktopDBusObjectManagerInterface;
24
25} // namespace QtNfcPrivate
26
27QT_BEGIN_NAMESPACE
28
29class NeardHelper : public QObject
30{
31 Q_OBJECT
32public:
33 NeardHelper(QObject* parent = 0);
34 static NeardHelper *instance();
35
36 QtNfcPrivate::OrgFreedesktopDBusObjectManagerInterface *dbusObjectManager();
37
38signals:
39 void tagFound(const QDBusObjectPath&);
40 void tagRemoved(const QDBusObjectPath&);
41 void recordFound(const QDBusObjectPath&);
42 void recordRemoved(const QDBusObjectPath&);
43
44private slots:
45 void interfacesAdded(const QDBusObjectPath&, InterfaceList);
46 void interfacesRemoved(const QDBusObjectPath&, const QStringList&);
47
48private:
49 QtNfcPrivate::OrgFreedesktopDBusObjectManagerInterface *m_dbusObjectManager;
50};
51
52QT_END_NAMESPACE
53
54#endif // NEARD_HELPER_P_H
QMap< QDBusObjectPath, InterfaceList > ManagedObjectList