Buteo Synchronization Framework
BtHelper.h
1 /*
2  * This file is part of buteo-syncfw package
3  *
4  * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5  * 2021 Updated to use bluez5 by deloptes@gmail.com
6  *
7  * Contact: Sateesh Kavuri <sateesh.kavuri@nokia.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * version 2.1 as published by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24 
25 #ifndef BTHELPER_H
26 #define BTHELPER_H
27 
28 #include <QObject>
29 #include <QtDBus>
30 #include <QMap>
31 
32 namespace Buteo {
33 
36 class BtHelper : public QObject
37 {
38  Q_OBJECT
39 
40 private:
41  QDBusConnection m_SystemBus;
42  QString m_devicePath;
43 
44 public:
49  BtHelper(const QString &deviceAddress, QObject *parent = 0);
50 
53  ~BtHelper();
54 
57  QVariantMap getDeviceProperties();
58 };
59 
60 #endif // BTHELPER_H
61 
62 }
Implementation for bluetooth helper utils.
Definition: BtHelper.h:37
~BtHelper()
Destructor.
Definition: BtHelper.cpp:82
QVariantMap getDeviceProperties()
To find remote device BT properties.
Definition: BtHelper.cpp:87
BtHelper(const QString &deviceAddress, QObject *parent=0)
Constructor.
Definition: BtHelper.cpp:35