BluezQt 5.109.0
obexagent.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_OBEXAGENT_H
10#define BLUEZQT_OBEXAGENT_H
11
12#include <QObject>
13
14#include "bluezqt_export.h"
15#include "request.h"
16#include "types.h"
17
18class QDBusObjectPath;
19
20namespace BluezQt
21{
22class ObexTransfer;
23
36class BLUEZQT_EXPORT ObexAgent : public QObject
37{
38 Q_OBJECT
39
40public:
46 explicit ObexAgent(QObject *parent = nullptr);
47
57 virtual QDBusObjectPath objectPath() const = 0;
58
78 virtual void authorizePush(ObexTransferPtr transfer, ObexSessionPtr session, const Request<QString> &request);
79
88 virtual void cancel();
89
100 virtual void release();
101};
102
103} // namespace BluezQt
104
105#endif // BLUEZQT_OBEXAGENT_H
Bluetooth OBEX agent.
Definition obexagent.h:37
ObexAgent(QObject *parent=nullptr)
Creates a new ObexAgent object.
virtual QDBusObjectPath objectPath() const =0
D-Bus object path of the agent.
virtual void release()
Indicates that the agent was unregistered.
virtual void cancel()
Indicate that the agent request failed before receiving reply.
virtual void authorizePush(ObexTransferPtr transfer, ObexSessionPtr session, const Request< QString > &request)
Requests the agent to authorize an incoming object push request.
D-Bus request.
Definition request.h:39