BluezQt

obexagentadaptor.h
1/*
2 * BluezQt - Asynchronous Bluez wrapper library
3 *
4 * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8
9#ifndef BLUEZQT_OBEXAGENTADAPTOR_H
10#define BLUEZQT_OBEXAGENTADAPTOR_H
11
12#include <QDBusAbstractAdaptor>
13
14#include "request.h"
15#include "types.h"
16
17class QDBusObjectPath;
19
20namespace BluezQt
21{
22class ObexAgent;
23class ObexManager;
24
25class ObexAgentAdaptor : public QDBusAbstractAdaptor
26{
28 Q_CLASSINFO("D-Bus Interface", "org.bluez.obex.Agent1")
29
30public:
31 explicit ObexAgentAdaptor(ObexAgent *parent, ObexManager *manager);
32
33public Q_SLOTS:
34 QString AuthorizePush(const QDBusObjectPath &transfer, const QDBusMessage &msg);
35
36 Q_NOREPLY void Cancel();
37 Q_NOREPLY void Release();
38
39private Q_SLOTS:
40 void getPropertiesFinished(QDBusPendingCallWatcher *watcher);
41
42private:
43 ObexAgent *m_agent;
44 ObexManager *m_manager;
45 QString m_transferPath;
46 Request<QString> m_transferRequest;
47};
48
49} // namespace BluezQt
50
51#endif // BLUEZQT_OBEXAGENTADAPTOR_H
Q_CLASSINFO(Name, Value)
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:52 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.