1
/* This file is part of the KDE project
2
Copyright (C) 2007 Daniel Gollub <dgollub@suse.de>
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License version 2 as published by the Free Software Foundation.
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
Boston, MA 02110-1301, USA.
21
#include <QStringList>
23
#include "fakebluetoothmanager.h"
24
#include "fakebluetoothinterface.h"
25
#include "fakebluetoothremotedevice.h"
29
FakeBluetoothRemoteDevice::FakeBluetoothRemoteDevice(const QMap<QString, QVariant> & propertyMap, QObject * parent)
30
: Solid::Control::Ifaces::BluetoothRemoteDevice(parent), mPropertyMap(propertyMap)
33
mUbi = mPropertyMap["ubi"].toString();
35
kDebug() << "UBI: " << mUbi;
37
mAddress = mPropertyMap["address"].toString();
38
mConnected = mPropertyMap["connected"].toBool();
39
mVersion = mPropertyMap["version"].toString();
40
mRevision = mPropertyMap["revision"].toString();
41
mManufacturer = mPropertyMap["manufacturer"].toString();
42
mCompany = mPropertyMap["company"].toString();
43
mMajorClass = mPropertyMap["majorClass"].toString();
44
mMinorClass = mPropertyMap["minorClass"].toString();
45
mServiceClass.append(mPropertyMap["serviceClasses"].toString());
46
mName = mPropertyMap["name"].toString();
47
mAlias = mPropertyMap["alias"].toString();
48
mLastSeen = mPropertyMap["lastSeen"].toString();
49
mLastUsed = mPropertyMap["lastUsed"].toString();
50
mBonded = mPropertyMap["bonded"].toBool();
51
mPinCodeLength = mPropertyMap["pinCodeLength"].toInt();
52
mEncryptionKeySize = mPropertyMap["encryptionKeySize"].toInt();
56
FakeBluetoothRemoteDevice::~FakeBluetoothRemoteDevice()
60
KJob *FakeBluetoothRemoteDevice::createBonding()
66
#include "fakebluetoothremotedevice.moc"