DtkBluetooth
BlueZ DBus interface binding for Qt
dbluetoothtypes.h
浏览该文件的文档.
1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DBLUETOTHTYPES_H
6#define DBLUETOTHTYPES_H
7
8#include "dtkbluetooth_global.h"
9#include <QObject>
10#include <QVariantMap>
11#include <QDBusObjectPath>
12#include <QPair>
13
14DBLUETOOTH_BEGIN_NAMESPACE
15
16enum class AgentError : quint8 { Canceled, Rejected };
17
19
20enum class ObexSessionType : quint8 { Client, Server };
21
23{
25 quint64 sessionId;
26 bool operator==(const ObexSessionInfo &other) const
27 {
28 return (sessionInfo == other.sessionInfo) and (sessionId == other.sessionId);
29 }
30};
31
32DBLUETOOTH_END_NAMESPACE
33
34#endif
RequestDest
蓝牙请求的目标服务
Definition: dbluetoothtypes.h:18
AgentError
代理中使用的错误信息枚举
Definition: dbluetoothtypes.h:16
ObexSessionType
传输会话的类型
Definition: dbluetoothtypes.h:20
传输会话的信息
Definition: dbluetoothtypes.h:23
quint64 sessionId
Definition: dbluetoothtypes.h:25
ObexSessionType sessionInfo
Definition: dbluetoothtypes.h:24