2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #include "BluetoothMultiCallback.h"
23 EventBTOnDiscoveryDevicesPrivateData::EventBTOnDiscoveryDevicesPrivateData
24 (const JSCallbackManagerPtr& onSuccess, const JSCallbackManagerPtr& onFound,
25 const JSCallbackManagerPtr& onFinished) :
26 m_onSuccess(onSuccess), m_onFound(onFound), m_onFinished(onFinished) {}
28 JSCallbackManagerPtr EventBTOnDiscoveryDevicesPrivateData::getOnSuccess() const
33 JSCallbackManagerPtr EventBTOnDiscoveryDevicesPrivateData::getOnFound() const
38 JSCallbackManagerPtr EventBTOnDiscoveryDevicesPrivateData::getOnFinished() const
44 BluetoothSocketNotifierPrivateData::BluetoothSocketNotifierPrivateData
45 (const JSCallbackManagerPtr& onMessage, const JSCallbackManagerPtr& onError,
46 const JSCallbackManagerPtr& onClose) :
47 m_onMessage(onMessage), m_onError(onError), m_onClose(onClose) {}
49 JSCallbackManagerPtr BluetoothSocketNotifierPrivateData::getOnMessage() const
54 JSCallbackManagerPtr BluetoothSocketNotifierPrivateData::getOnError() const
59 JSCallbackManagerPtr BluetoothSocketNotifierPrivateData::getOnClose() const
65 BluetoothRegisterServiceSuccessCallbackPrivateData ::BluetoothRegisterServiceSuccessCallbackPrivateData
66 (const JSCallbackManagerPtr& onSuccess, const JSCallbackManagerPtr& onConnected) :
67 m_onSuccess(onSuccess), m_onConnected(onConnected) {}
70 JSCallbackManagerPtr BluetoothRegisterServiceSuccessCallbackPrivateData::getOnSuccess() const
75 JSCallbackManagerPtr BluetoothRegisterServiceSuccessCallbackPrivateData::getOnConnected() const