![]() |
QBluetoothZero
2.0
|
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 QBTGLOBAL_H 00017 #define QBTGLOBAL_H 00018 00019 #include <QtCore/qglobal.h> 00020 #include <QtCore/QMetaType> 00021 00022 #ifdef BLUETOOTH_LIB 00023 #define DLL_EXPORT Q_DECL_EXPORT 00024 #else 00025 #define DLL_EXPORT Q_DECL_IMPORT 00026 #endif 00027 00028 #if QT_VERSION >= 0x040700 00029 //#include <QtDeclarative> 00030 #endif 00031 /* 00032 #define ENABLE_QBLUETOOTH_NAMESPACE 00033 */ 00034 #define QML_LIBRARY_NAME "QBluetooth" 00035 00036 #ifdef ENABLE_QBLUETOOTH_NAMESPACE 00037 #define QBT_PREPEND_NAMESPACE(name) ::QBluetooth::name 00038 #define QBT_NAMESPACE_NAME QBluetooth 00039 #define QBT_NAMESPACE_BEGIN namespace QBT_NAMESPACE_NAME{ 00040 #define QBT_NAMESPACE_END } 00041 #define QBT_USE_NAMESPACE using namespace QBT_NAMESPACE_NAME; 00042 #else 00043 #define QBT_PREPEND_NAMESPACE(name) name 00044 #define QBT_NAMESPACE_NAME 00045 #define QBT_NAMESPACE_BEGIN 00046 #define QBT_NAMESPACE_END 00047 #define QBT_USE_NAMESPACE 00048 #endif 00049 00050 00051 00052 #endif // QBTGLOBAL_H