Git Init
[profile/ivi/wrt-plugins-tizen.git] / src / standards / Tizen / Bluetooth / BluetoothMultiCallback.cpp
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License. 
15  */
16
17 #include "BluetoothMultiCallback.h"
18
19
20 namespace TizenApis {
21 namespace Tizen1_0 {
22
23 EventBTOnDiscoveryDevicesPrivateData::EventBTOnDiscoveryDevicesPrivateData
24                         (const JSCallbackManagerPtr& onSuccess, const JSCallbackManagerPtr& onFound,
25                         const JSCallbackManagerPtr& onFinished) :
26                         m_onSuccess(onSuccess), m_onFound(onFound), m_onFinished(onFinished) {}
27
28 JSCallbackManagerPtr EventBTOnDiscoveryDevicesPrivateData::getOnSuccess() const
29 {
30         return m_onSuccess;
31 }
32
33 JSCallbackManagerPtr EventBTOnDiscoveryDevicesPrivateData::getOnFound() const
34 {
35         return m_onFound;
36 }
37
38 JSCallbackManagerPtr EventBTOnDiscoveryDevicesPrivateData::getOnFinished() const
39 {
40         return m_onFinished;
41 }
42
43
44 BluetoothSocketNotifierPrivateData::BluetoothSocketNotifierPrivateData
45                         (const JSCallbackManagerPtr& onMessage, const JSCallbackManagerPtr& onError,
46                         const JSCallbackManagerPtr& onClose) :
47                         m_onMessage(onMessage), m_onError(onError), m_onClose(onClose)  {}
48
49 JSCallbackManagerPtr BluetoothSocketNotifierPrivateData::getOnMessage() const
50 {
51         return m_onMessage;
52 }
53
54 JSCallbackManagerPtr BluetoothSocketNotifierPrivateData::getOnError() const
55 {
56         return m_onError;
57 }
58
59 JSCallbackManagerPtr BluetoothSocketNotifierPrivateData::getOnClose() const
60 {
61         return m_onClose;
62 }
63
64
65 BluetoothRegisterServiceSuccessCallbackPrivateData ::BluetoothRegisterServiceSuccessCallbackPrivateData
66                         (const JSCallbackManagerPtr& onSuccess, const JSCallbackManagerPtr& onConnected) :
67                         m_onSuccess(onSuccess), m_onConnected(onConnected) {}
68
69
70 JSCallbackManagerPtr BluetoothRegisterServiceSuccessCallbackPrivateData::getOnSuccess() const
71 {
72         return m_onSuccess;
73 }
74
75 JSCallbackManagerPtr BluetoothRegisterServiceSuccessCallbackPrivateData::getOnConnected() const
76 {
77         return m_onConnected;
78 }
79
80 }
81 }
82
83
84
85