2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FNetBt_BluetoothAdapterUtility.h
19 * @brief This is the header file for the _BluetoothAdapterUtility class.
21 * This header file contains the declaration of the _BluetoothAdapterUtility class.
23 #ifndef _FNET_BT_INTERNAL_BLUETOOTH_ADAPTER_UTILITY_H_
24 #define _FNET_BT_INTERNAL_BLUETOOTH_ADAPTER_UTILITY_H_
26 #include <bluetooth.h>
27 #include <FBaseResult.h>
28 #include <FNetBtBluetoothTypes.h>
30 // forward declarations
31 namespace Tizen { namespace Base
41 namespace Tizen { namespace Net { namespace Bluetooth
44 // forward declarations
45 class BluetoothDevice;
48 * @class _BluetoothAdapterUtility
49 * @brief This class provides utilitiy functions such as converting data structure to other data class, and printing data class.
51 class _OSP_EXPORT_ _BluetoothAdapterUtility
54 static BluetoothMajorDeviceClassType ConvertToMajorDeviceClassType(bt_major_device_class_e majorClass);
55 static BluetoothMinorDeviceClassType ConvertToMinorDeviceClassType(bt_major_device_class_e majorClass, bt_minor_device_class_e minorClass);
56 static unsigned long ConvertToServiceClassList(int serviceClass);
57 static unsigned long ConvertToServiceList(char** pServiceUuid, int& serviceUuidCount);
58 static Tizen::Base::Collection::IList* ConvertServiceUuidListN(char** pServiceUuid, int& serviceUuidCount);
59 static void PrintDeviceInfo(const BluetoothDevice& device);
60 static void PrintServiceList(unsigned long type);
61 static void PrintServiceUuidList(const Tizen::Base::Collection::IList* pList);
64 _BluetoothAdapterUtility(void);
65 ~_BluetoothAdapterUtility(void);
67 _BluetoothAdapterUtility(const _BluetoothAdapterUtility& value);
68 _BluetoothAdapterUtility& operator =(const _BluetoothAdapterUtility& value);
70 }; // _BluetoothAdapterUtility
73 #endif // _FNET_BT_INTERNAL_BLUETOOTH_ADAPTER_UTILITY_H_