File indexing completed on 2024-04-21 03:51:52

0001 /*
0002  * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005  */
0006 
0007 #ifndef OBEXCLIENT_H
0008 #define OBEXCLIENT_H
0009 
0010 #include "object.h"
0011 
0012 #include <QDBusAbstractAdaptor>
0013 
0014 class QDBusMessage;
0015 
0016 class ObexClient : public QDBusAbstractAdaptor, public Object
0017 {
0018     Q_OBJECT
0019     Q_CLASSINFO("D-Bus Interface", "org.bluez.obex.Client1")
0020 
0021 public:
0022     explicit ObexClient(QObject *parent = nullptr);
0023 
0024     void runAction(const QString &actionName, const QVariantMap &properties);
0025 
0026 public Q_SLOTS:
0027     void CreateSession(const QString &destination, const QVariantMap &args, const QDBusMessage &msg);
0028     void RemoveSession(const QDBusObjectPath &session, const QDBusMessage &msg);
0029 };
0030 
0031 #endif // OBEXCLIENT_H