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

SolidModules

solid-bluetooth.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2006 Kevin Ottens <ervin@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License version 2 as published by the Free Software Foundation.
00007 
00008     This library is distributed in the hope that it will be useful,
00009     but WITHOUT ANY WARRANTY; without even the implied warranty of
00010     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011     Library General Public License for more details.
00012 
00013     You should have received a copy of the GNU Library General Public License
00014     along with this library; see the file COPYING.LIB.  If not, write to
00015     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016     Boston, MA 02110-1301, USA.
00017 
00018 */
00019 
00020 #ifndef MAIN_H
00021 #define MAIN_H
00022 
00023 #include <QCoreApplication>
00024 #include <QEventLoop>
00025 
00026 #include <solid/storageaccess.h>
00027 #include <solid/opticaldrive.h>
00028 
00029 class KJob;
00030 
00031 namespace Solid {
00032 namespace Control {
00033     class Authentication;
00034 }
00035 }
00036 
00037 class SolidBluetooth : public QCoreApplication
00038 {
00039     Q_OBJECT
00040 public:
00041     SolidBluetooth(int &argc, char **argv) : QCoreApplication(argc, argv), m_error(0) {}
00042 
00043     static bool doIt();
00044 
00045     bool bluetoothListAdapters();
00046     bool bluetoothDefaultAdapter();
00047     bool bluetoothCreateDevice(const QString &adapterUbi, const QString &mac);
00048     bool bluetoothRemoveDevice(const QString &adapterUbi, const QString &mac);
00049     bool bluetoothGetProperties(const QString &adapterUbi);
00050 #if 0    
00051     bool bluetoothGetRemoteName(const QString &adapterUbi, const QString &mac);
00052     bool bluetoothAdapterAddress(const QString &ubi);
00053     bool bluetoothAdapterName(const QString &ubi);
00054     bool bluetoothAdapterSetName(const QString &ubi, const QString &name);
00055     bool bluetoothAdapterMode(const QString &ubi);
00056     bool bluetoothAdapterSetMode(const QString &ubi, const QString &mode);
00057     bool bluetoothAdapterListConnections(const QString &ubi);
00058     bool bluetoothAdapterListBondings(const QString &ubi);
00059     bool bluetoothAdapterScan(const QString &ubi);
00060 
00061     bool bluetoothInputListDevices();
00062     bool bluetoothInputSetup(const QString &deviceUbi);
00063     bool bluetoothInputRemoveSetup(const QString &deviceUbi);
00064     bool bluetoothInputConnect(const QString &deviceUbi);
00065     bool bluetoothInputDisconnect(const QString &deviceUbi);
00066 
00067     bool bluetoothRemoteCreateBonding(const QString &adapterUbi, const QString &deviceUbi);
00068     bool bluetoothRemoteRemoveBonding(const QString &adapterUbi, const QString &deviceUbi);
00069     bool bluetoothRemoteHasBonding(const QString &adapterUbi, const QString &deviceUbi);
00070 #endif
00071 
00072 private:
00073     void connectJob(KJob *job);
00074 
00075     QEventLoop m_loop;
00076     int m_error;
00077     QString m_errorString;
00078 private slots:
00079 #if 0
00080     void slotStorageResult(Solid::ErrorType error, const QVariant &errorData);
00081     void slotResult(KJob *job);
00082     void slotPercent(KJob *job, unsigned long percent);
00083     void slotInfoMessage(KJob *job, const QString &message);
00084     void slotBluetoothDeviceFound(const QString &ubi, int deviceClass, int rssi);
00085     void slotBluetoothDiscoveryCompleted();
00086 #endif    
00087 };
00088 
00089 
00090 #endif

SolidModules

Skip menu "SolidModules"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

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