Tizen 2.0 Release
[framework/osp/bluetooth.git] / src / inc / FNetBt_BluetoothAdapterUtility.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17 /**
18  * @file    FNetBt_BluetoothAdapterUtility.h
19  * @brief   This is the header file for the _BluetoothAdapterUtility class.
20  *
21  * This header file contains the declaration of the _BluetoothAdapterUtility class.
22  */
23 #ifndef _FNET_BT_INTERNAL_BLUETOOTH_ADAPTER_UTILITY_H_
24 #define _FNET_BT_INTERNAL_BLUETOOTH_ADAPTER_UTILITY_H_
25
26 #include <bluetooth.h>
27 #include <FBaseResult.h>
28 #include <FNetBtBluetoothTypes.h>
29
30 // forward declarations
31 namespace Tizen { namespace Base
32 {
33 class ByteBuffer;
34
35 namespace Collection
36 {
37 class IList;
38 }
39 } }
40
41 namespace Tizen { namespace Net { namespace Bluetooth
42 {
43
44 // forward declarations
45 class BluetoothDevice;
46
47 /**
48  * @class   _BluetoothAdapterUtility
49  * @brief   This class provides utilitiy functions such as converting data structure to other data class, and printing data class.
50  */
51 class _OSP_EXPORT_ _BluetoothAdapterUtility
52 {
53 public:
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);
62
63 private:
64         _BluetoothAdapterUtility(void);
65         ~_BluetoothAdapterUtility(void);
66
67         _BluetoothAdapterUtility(const _BluetoothAdapterUtility& value);
68         _BluetoothAdapterUtility& operator =(const _BluetoothAdapterUtility& value);
69
70 }; // _BluetoothAdapterUtility
71
72 } } }
73 #endif // _FNET_BT_INTERNAL_BLUETOOTH_ADAPTER_UTILITY_H_