• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libsolidcontrol

fakebluetoothremotedevice.cpp

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2007 Daniel Gollub <dgollub@suse.de>
00003 
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License version 2 as published by the Free Software Foundation.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 
00019 */
00020 
00021 #include <QStringList>
00022 
00023 #include "fakebluetoothmanager.h"
00024 #include "fakebluetoothinterface.h"
00025 #include "fakebluetoothremotedevice.h"
00026 
00027 #include <kdebug.h>
00028 
00029 FakeBluetoothRemoteDevice::FakeBluetoothRemoteDevice(const QMap<QString, QVariant>  & propertyMap, QObject * parent)
00030         : Solid::Control::Ifaces::BluetoothRemoteDevice(parent), mPropertyMap(propertyMap)
00031 {
00032 
00033     mUbi = mPropertyMap["ubi"].toString();
00034 
00035     kDebug() << "UBI: " << mUbi;
00036 
00037     mAddress = mPropertyMap["address"].toString();
00038     mConnected = mPropertyMap["connected"].toBool();
00039     mVersion = mPropertyMap["version"].toString();
00040     mRevision = mPropertyMap["revision"].toString();
00041     mManufacturer = mPropertyMap["manufacturer"].toString();
00042     mCompany = mPropertyMap["company"].toString();
00043     mMajorClass = mPropertyMap["majorClass"].toString();
00044     mMinorClass = mPropertyMap["minorClass"].toString();
00045     mServiceClass.append(mPropertyMap["serviceClasses"].toString());
00046     mName = mPropertyMap["name"].toString();
00047     mAlias = mPropertyMap["alias"].toString();
00048     mLastSeen = mPropertyMap["lastSeen"].toString();
00049     mLastUsed = mPropertyMap["lastUsed"].toString();
00050     mBonded = mPropertyMap["bonded"].toBool();
00051     mPinCodeLength = mPropertyMap["pinCodeLength"].toInt();
00052     mEncryptionKeySize = mPropertyMap["encryptionKeySize"].toInt();
00053 
00054 }
00055 
00056 FakeBluetoothRemoteDevice::~FakeBluetoothRemoteDevice()
00057 {}
00058 
00059 // TODO
00060 KJob *FakeBluetoothRemoteDevice::createBonding()
00061 {
00062     mBonded = true;
00063     return NULL;
00064 }
00065 
00066 #include "fakebluetoothremotedevice.moc"

libsolidcontrol

Skip menu "libsolidcontrol"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal