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

libsolidcontrol

bluetoothinterface.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2007 Will Stephenson <wstephenson@kde.org>
00003     Copyright (C) 2007 Daniel Gollub <dgollub@suse.de>
00004 
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License version 2 as published by the Free Software Foundation.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 
00020 */
00021 
00022 #ifndef SOLID_IFACES_BLUETOOTHINTERFACE_H
00023 #define SOLID_IFACES_BLUETOOTHINTERFACE_H
00024 
00025 #include <QtCore/QList>
00026 #include "../solid_control_export.h"
00027 
00028 #include "../bluetoothinterface.h"
00029 #include "bluetoothremotedevice.h"
00030 
00031 #include <QtCore/QObject>
00032 
00033 namespace Solid
00034 {
00035 namespace Control
00036 {
00037 namespace Ifaces
00038 {
00042 class SOLIDCONTROLIFACES_EXPORT BluetoothInterface : public QObject
00043 {
00044     Q_OBJECT
00045 public:
00051     BluetoothInterface(QObject *parent = 0);
00052 
00056     virtual ~BluetoothInterface();
00057 
00064     virtual QString ubi() const = 0;
00065 
00071     virtual QString address() const = 0;
00072 
00079     virtual QString version() const = 0;
00080 
00087     virtual QString revision() const = 0;
00088 
00095     virtual QString manufacturer() const = 0;
00096 
00103     virtual QString company() const = 0;
00104 
00105 
00115     virtual Solid::Control::BluetoothInterface::Mode mode() const = 0;
00116 
00123     virtual int discoverableTimeout() const = 0;
00124 
00130     virtual bool isDiscoverable() const = 0;
00131 
00132 
00139     virtual QStringList listConnections() const = 0;
00140 
00141 
00147     virtual QString majorClass() const = 0;
00148 
00154     virtual QStringList listAvailableMinorClasses() const = 0;
00155 
00162     virtual QString minorClass() const = 0;
00163 
00169     virtual QStringList serviceClasses() const = 0;
00175     virtual QString name() const = 0;
00176 
00182     virtual QString getRemoteName(const QString & mac) = 0;
00183 
00190     virtual QStringList listBondings() const = 0;
00191 
00197     virtual bool isPeriodicDiscoveryActive() const = 0;
00198 
00205     virtual bool isPeriodicDiscoveryNameResolvingActive() const = 0;
00206 
00215     virtual QStringList listRemoteDevices() const = 0;
00216 
00227     virtual QStringList listRecentRemoteDevices(const QDateTime &date) const = 0;
00228 
00234     virtual bool isTrusted(const QString &) = 0;
00235 
00236 
00237 public Q_SLOTS:
00244     virtual void setMode(const Solid::Control::BluetoothInterface::Mode mode) = 0;
00245 
00251     virtual void setDiscoverableTimeout(int timeout) = 0;
00252 
00258     virtual void setMinorClass(const QString &minor) = 0;
00259 
00265     virtual void setName(const QString &name) = 0;
00266 
00267 
00271     virtual void discoverDevices() = 0;
00275     virtual void discoverDevicesWithoutNameResolving() = 0;
00279     virtual void cancelDiscovery() = 0;
00280 
00285     virtual void startPeriodicDiscovery() = 0;
00286 
00290     virtual void stopPeriodicDiscovery() = 0;
00291 
00297     virtual void setPeriodicDiscoveryNameResolving(bool resolveNames) = 0;
00298 
00305     virtual QObject *createBluetoothRemoteDevice(const QString &address) = 0;
00306 
00312     virtual void setTrusted(const QString &) = 0;
00313 
00319     virtual void removeTrust(const QString &) = 0;
00320 
00321 
00322 Q_SIGNALS:
00323 
00330     void modeChanged(Solid::Control::BluetoothInterface::Mode);
00331 
00338     void discoverableTimeoutChanged(int timeout);
00339 
00345     void minorClassChanged(const QString &minor);
00346 
00352     void nameChanged(const QString &name);
00353 
00357     void discoveryStarted();
00358 
00362     void discoveryCompleted();
00363 
00373     void remoteDeviceFound(const QString &ubi, int deviceClass, int rssi);
00374 
00381     void remoteDeviceDisappeared(const QString &ubi);
00382 
00390     void remoteNameUpdated(const QString &address, const QString &name);
00391 
00397     void remoteDeviceConnected(const QString &address);
00398 
00404     void remoteDeviceDisconnected(const QString &address);
00405 
00411     void trustAdded(const QString &address);
00412 
00418     void trustRemoved(const QString &address);
00419 
00425     void bondingCreated(const QString &address);
00426 
00432     void bondingRemoved(const QString &address);
00433 
00434 
00435 };
00436 } //Ifaces
00437 } //Control
00438 } //Solid
00439 
00440 Q_DECLARE_INTERFACE(Solid::Control::Ifaces::BluetoothInterface, "org.kde.Solid.Control.Ifaces.BluetoothInterface/0.1")
00441 
00442 #endif

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
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
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