| 1 | /* |
| 2 | * BluezQt - Asynchronous BlueZ wrapper library |
| 3 | * |
| 4 | * SPDX-FileCopyrightText: 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_TYPES_H |
| 10 | #define BLUEZQT_TYPES_H |
| 11 | |
| 12 | #include <QMap> |
| 13 | #include <QSharedPointer> |
| 14 | |
| 15 | /*! |
| 16 | * \namespace BluezQt |
| 17 | * \inmodule BluezQt |
| 18 | */ |
| 19 | namespace BluezQt |
| 20 | { |
| 21 | class Manager; |
| 22 | class Adapter; |
| 23 | class Battery; |
| 24 | class Device; |
| 25 | class GattServiceRemote; |
| 26 | class GattCharacteristicRemote; |
| 27 | class GattDescriptorRemote; |
| 28 | class Input; |
| 29 | class GattManager; |
| 30 | class LEAdvertisingManager; |
| 31 | class Media; |
| 32 | class MediaPlayer; |
| 33 | class MediaTransport; |
| 34 | class Agent; |
| 35 | class ObexManager; |
| 36 | class ObexSession; |
| 37 | class ; |
| 38 | class ObexFileTransfer; |
| 39 | |
| 40 | /*! |
| 41 | * \typedef BluezQt::ManData |
| 42 | * Synonym for QMap<uint16_t, QByteArray>. |
| 43 | */ |
| 44 | typedef QMap<uint16_t, QByteArray> ManData; |
| 45 | |
| 46 | /*! |
| 47 | * \typedef BluezQt::ManagerPtr |
| 48 | * Synonym for QSharedPointer<BluezQt::Manager>. |
| 49 | */ |
| 50 | typedef QSharedPointer<BluezQt::Manager> ManagerPtr; |
| 51 | /*! |
| 52 | * \typedef BluezQt::AdapterPtr |
| 53 | * Synonym for QSharedPointer<BluezQt::Adapter>. |
| 54 | */ |
| 55 | typedef QSharedPointer<BluezQt::Adapter> AdapterPtr; |
| 56 | /*! |
| 57 | * \typedef BluezQt::BatteryPtr |
| 58 | * Synonym for QSharedPointer<BluezQt::Battery>. |
| 59 | */ |
| 60 | typedef QSharedPointer<BluezQt::Battery> BatteryPtr; |
| 61 | /*! |
| 62 | * \typedef BluezQt::DevicePtr |
| 63 | * Synonym for QSharedPointer<BluezQt::Device>. |
| 64 | */ |
| 65 | typedef QSharedPointer<BluezQt::Device> DevicePtr; |
| 66 | /*! |
| 67 | * \typedef BluezQt::GattServiceRemotePtr |
| 68 | * Synonym for QSharedPointer<BluezQt::GattServiceRemote>. |
| 69 | */ |
| 70 | typedef QSharedPointer<BluezQt::GattServiceRemote> GattServiceRemotePtr; |
| 71 | /*! |
| 72 | * \typedef BluezQt::GattCharacteristicRemotePtr |
| 73 | * Synonym for QSharedPointer<BluezQt::GattCharacteristicRemote>. |
| 74 | */ |
| 75 | typedef QSharedPointer<BluezQt::GattCharacteristicRemote> GattCharacteristicRemotePtr; |
| 76 | /*! |
| 77 | * \typedef BluezQt::GattDescriptorRemotePtr |
| 78 | * Synonym for QSharedPointer<BluezQt::GattDescriptorRemote>. |
| 79 | */ |
| 80 | typedef QSharedPointer<BluezQt::GattDescriptorRemote> GattDescriptorRemotePtr; |
| 81 | /*! |
| 82 | * \typedef BluezQt::InputPtr |
| 83 | * Synonym for QSharedPointer<BluezQt::Input>. |
| 84 | */ |
| 85 | typedef QSharedPointer<BluezQt::Input> InputPtr; |
| 86 | /*! |
| 87 | * \typedef BluezQt::GattManagerPtr |
| 88 | * Synonym for QSharedPointer<BluezQt::GattManager>. |
| 89 | */ |
| 90 | typedef QSharedPointer<BluezQt::GattManager> GattManagerPtr; |
| 91 | /*! |
| 92 | * \typedef BluezQt::LEAdvertisingManagerPtr |
| 93 | * Synonym for QSharedPointer<BluezQt::LEAdvertisingManager>. |
| 94 | */ |
| 95 | typedef QSharedPointer<BluezQt::LEAdvertisingManager> LEAdvertisingManagerPtr; |
| 96 | /*! |
| 97 | * \typedef BluezQt::MediaPtr |
| 98 | * Synonym for QSharedPointer<BluezQt::Media>. |
| 99 | */ |
| 100 | typedef QSharedPointer<BluezQt::Media> MediaPtr; |
| 101 | /*! |
| 102 | * \typedef BluezQt::MediaPlayerPtr |
| 103 | * Synonym for QSharedPointer<BluezQt::MediaPlayer>. |
| 104 | */ |
| 105 | typedef QSharedPointer<BluezQt::MediaPlayer> MediaPlayerPtr; |
| 106 | /*! |
| 107 | * \typedef BluezQt::MediaTransportPtr |
| 108 | * Synonym for QSharedPointer<BluezQt::MediaTransport>. |
| 109 | */ |
| 110 | typedef QSharedPointer<BluezQt::MediaTransport> MediaTransportPtr; |
| 111 | /*! |
| 112 | * \typedef BluezQt::ObexManagerPtr |
| 113 | * Synonym for QSharedPointer<BluezQt::ObexManager>. |
| 114 | */ |
| 115 | typedef QSharedPointer<BluezQt::ObexManager> ObexManagerPtr; |
| 116 | /*! |
| 117 | * \typedef BluezQt::ObexSessionPtr |
| 118 | * Synonym for QSharedPointer<BluezQt::ObexSession>. |
| 119 | */ |
| 120 | typedef QSharedPointer<BluezQt::ObexSession> ObexSessionPtr; |
| 121 | /*! |
| 122 | * \typedef BluezQt::ObexTransferPtr |
| 123 | * Synonym for QSharedPointer<BluezQt::ObexTransfer>. |
| 124 | */ |
| 125 | typedef QSharedPointer<BluezQt::ObexTransfer> ; |
| 126 | |
| 127 | } // namespace BluezQt |
| 128 | |
| 129 | #endif // BLUEZQT_TYPES_H |
| 130 | |