2 // Tizen Web Device API
3 // Copyright (c) 2012 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 #ifndef __TIZEN_BLUETOOTH_HEALTH_APPLICATION_H__
19 #define __TIZEN_BLUETOOTH_HEALTH_APPLICATION_H__
23 #include <JavaScriptCore/JavaScript.h>
24 #include <boost/shared_ptr.hpp>
26 #include <MultiCallbackUserData.h>
27 #include <PropertyBag.h>
33 class BluetoothHealthApplication : public Common::SecurityAccessor
36 BluetoothHealthApplication(std::string appID, std::string name, unsigned short dataType);
37 virtual ~BluetoothHealthApplication();
39 std::string getAppID() const;
40 unsigned short getDataType() const;
41 std::string getName() const;
42 bool getRegistrationState() const;
43 void setRegistrationState(bool isRegistered);
44 Common::MultiCallbackUserDataPtr getOnConnect() const;
45 JSValueRef getOnConnect(JSContextRef context);
46 bool setOnConnect(JSContextRef context, JSObjectRef onConnect);
53 Common::MultiCallbackUserDataPtr mOnConnect;
54 unsigned short mDataType;
55 Common::PropertyBag mLocalProperty;
58 typedef boost::shared_ptr<BluetoothHealthApplication> BluetoothHealthApplicationSharedPtr;
63 #endif // __TIZEN_BLUETOOTH_HEALTH_APPLICATION_H__