![]() |
QBluetoothZero
2.0
|
00001 /* 00002 * QBtSingleDeviceSelectorUI.h 00003 * 00004 * 00005 * Author: ftylitak 00006 * 00007 * Licensed under the Apache License, Version 2.0 (the "License"); 00008 * you may not use this file except in compliance with the License. 00009 * You may obtain a copy of the License at 00010 * 00011 * http://www.apache.org/licenses/LICENSE-2.0 00012 * 00013 * Unless required by applicable law or agreed to in writing, software 00014 * distributed under the License is distributed on an "AS IS" BASIS, 00015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00016 * See the License for the specific language governing permissions and 00017 * limitations under the License. 00018 */ 00019 00020 #ifndef QBTSINGLEDEVICESELECTORUI_H_ 00021 #define QBTSINGLEDEVICESELECTORUI_H_ 00022 00023 #include <QtCore/QObject> 00024 #include <QtGui/QWidget> 00025 #include <QBtGlobal.h> 00026 #include <QBtDevice.h> 00027 00028 QBT_NAMESPACE_BEGIN 00029 00030 class QBtSingleDeviceSelectorUIPrivate; 00031 00047 class DLL_EXPORT QBtSingleDeviceSelectorUI : public QObject 00048 { 00049 Q_OBJECT 00050 00051 public: 00060 QBtSingleDeviceSelectorUI (QWidget* parent = 0); 00061 00065 ~QBtSingleDeviceSelectorUI(); 00066 00067 00068 public slots: 00069 00073 void show(); 00074 00075 00076 signals: 00080 void discoveryCompleted (const QBtDevice & selectedDevice); 00081 00082 00086 void discoveryStarted(); 00087 00088 00092 void userCanceled (); 00093 00094 00095 private: 00096 QBtSingleDeviceSelectorUIPrivate* _impl; 00097 friend class QBtSingleDeviceSelectorUIPrivate; 00098 00099 }; 00100 00101 QBT_NAMESPACE_END 00102 00103 #endif /* QBTSINGLEDEVICESELECTORUI_H_ */