File indexing completed on 2024-09-29 06:29:45

0001 /*
0002  * BluezQt - Asynchronous Bluez wrapper library
0003  *
0004  * SPDX-FileCopyrightText: 2014-2015 David Rosca <nowrep@gmail.com>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007  */
0008 
0009 #ifndef BLUEZQT_UTILS_H
0010 #define BLUEZQT_UTILS_H
0011 
0012 #include "device.h"
0013 
0014 #include <QStringList>
0015 
0016 class QString;
0017 class QDBusConnection;
0018 
0019 namespace BluezQt
0020 {
0021 namespace Strings
0022 {
0023 QString orgFreedesktopDBus();
0024 QString orgFreedesktopDBusProperties();
0025 QString orgBluez();
0026 QString orgBluezAdapter1();
0027 QString orgBluezBattery1();
0028 QString orgBluezDevice1();
0029 QString orgBluezGattService1();
0030 QString orgBluezGattCharacteristic1();
0031 QString orgBluezGattDescriptor1();
0032 QString orgBluezInput1();
0033 QString orgBluezGattManager1();
0034 QString orgBluezLEAdvertisingManager1();
0035 QString orgBluezMedia1();
0036 QString orgBluezMediaPlayer1();
0037 QString orgBluezMediaTransport1();
0038 QString orgBluezAgentManager1();
0039 QString orgBluezProfileManager1();
0040 QString orgBluezObex();
0041 QString orgBluezObexClient1();
0042 QString orgBluezObexAgentManager1();
0043 QString orgBluezObexSession1();
0044 QString orgBluezObexTransfer1();
0045 
0046 }
0047 
0048 namespace DBusConnection
0049 {
0050 QDBusConnection orgBluez();
0051 QDBusConnection orgBluezObex();
0052 
0053 }
0054 
0055 namespace Instance
0056 {
0057 Manager *manager();
0058 void setManager(Manager *manager);
0059 
0060 ObexManager *obexManager();
0061 void setObexManager(ObexManager *obexManager);
0062 
0063 }
0064 
0065 QStringList stringListToUpper(const QStringList &list);
0066 ManData variantToManData(const QVariant &value);
0067 Device::Type classToType(quint32 classNum);
0068 Device::Type appearanceToType(quint16 appearance);
0069 
0070 } // namespace BluezQt
0071 
0072 #endif // BLUEZQT_UTILS_H