QBluetoothZero  2.0
QBluetoothZero.h
Go to the documentation of this file.
00001 /*
00002  *
00003  * Licensed under the Apache License, Version 2.0 (the "License");
00004  * you may not use this file except in compliance with the License.
00005  * You may obtain a copy of the License at
00006  *
00007  *      http://www.apache.org/licenses/LICENSE-2.0
00008  *
00009  * Unless required by applicable law or agreed to in writing, software
00010  * distributed under the License is distributed on an "AS IS" BASIS,
00011  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00012  * See the License for the specific language governing permissions and
00013  * limitations under the License.
00014  */
00015 
00016 #ifndef QBLUETOOTH_H
00017 #define QBLUETOOTH_H
00018 
00019 #include <QBtAuxFunctions.h>
00020 #include <QBtGlobal.h>
00021 
00022 #include <QBtTypes.h>
00023 #include <QBtDeviceDiscoverer.h>
00024 #include <QBtSingleDeviceSelectorUI.h>
00025 #include <QBtServiceDiscoverer.h>
00026 #include <QBtServiceDiscovererForAll.h>
00027 #include <QBtServiceAdvertiser.h>
00028 #include <QBtSerialPortServer.h>
00029 #include <QBtSerialPortClient.h>
00030 #include <QBtObjectExchangeClient.h>
00031 #include <QBtObjectExchangeServer.h>
00032 #include <QBtLocalDevice.h>
00033 
00034 //using namespace QBluetooth;
00035 
00036 namespace QBluetooth
00037 {
00038     static void registerTypes()
00039     {
00040         qRegisterMetaType<QBT_PREPEND_NAMESPACE(QBtDevice)>("QBtDevice");
00041         qRegisterMetaType<QBT_PREPEND_NAMESPACE(QBtService)>("QBtService");
00042         qRegisterMetaType<QBT_PREPEND_NAMESPACE(QBtAddress)>("QBtAddress");
00043         qRegisterMetaType<QBT_PREPEND_NAMESPACE(QBtUuid)>("QBtUuid");
00044         qRegisterMetaType<QBT_PREPEND_NAMESPACE(QBtRemoteFileInfo)>("QBtRemoteFileInfo");
00045     }
00046 
00047     static void registerQMLTypes()
00048     {
00049        /* #if QT_VERSION > 0x040700
00050         qmlRegisterType<QBT_PREPEND_NAMESPACE(QBtConstants)>(QML_LIBRARY_NAME, 1, 0, "QBtConstants");
00051         qmlRegisterType<QBT_PREPEND_NAMESPACE(QBtUuid)>(QML_LIBRARY_NAME, 1, 0, "QBtUuid");
00052         qmlRegisterType<QBT_PREPEND_NAMESPACE(QBtAddress)>(QML_LIBRARY_NAME, 1, 0, "QBtAddress");
00053         qmlRegisterType<QBT_PREPEND_NAMESPACE(QBtDevice)>(QML_LIBRARY_NAME, 1, 0, "QBtDevice");
00054         qmlRegisterType<QBT_PREPEND_NAMESPACE(QBtService)>(QML_LIBRARY_NAME, 1, 0, "QBtService");
00055         qmlRegisterType<QBT_PREPEND_NAMESPACE(QBtDeviceDiscoverer)>(QML_LIBRARY_NAME, 1, 0, "QBtDeviceDiscoverer");
00056         qmlRegisterType<QBT_PREPEND_NAMESPACE(QBtRemoteFileInfo)>(QML_LIBRARY_NAME, 1, 0, "QBtRemoteFileInfo");
00057         //qmlRegisterType<QBtServiceDiscoverer>("QBtServiceDiscoverer", 1, 0, "QBtServiceDiscoverer");
00058         //qmlRegisterType<QBtServiceAdvertiser>("QBtServiceAdvertiser", 1, 0, "QBtServiceAdvertiser");
00059         //qmlRegisterType<QBtLocalDevice>("QBtLocalDevice", 1, 0, "QBtLocalDevice");
00060         //qmlRegisterType<QBtSingleDeviceSelectorUI>("QBtSingleDeviceSelectorUI", 1, 0, "QBtSingleDeviceSelectorUI");
00061         //qmlRegisterType<QBtSerialPortServer>("QBtSerialPortServer", 1, 0, "QBtSerialPortServer");
00062         //qmlRegisterType<QBtSerialPortClient>("QBtSerialPortClient", 1, 0, "QBtSerialPortClient");
00063         //qmlRegisterType<QBtObjectExchangeServer>("QBtObjectExchangeServer", 1, 0, "QBtObjectExchangeServer");
00064         //qmlRegisterType<QBtObjectExchangeClient>("QBtObjectExchangeClient", 1, 0, "QBtObjectExchangeClient");
00065         #endif*/
00066     }
00067 
00068 }
00069 
00070 #endif // QBLUETOOTH_H