Update change log and spec for wrt-plugins-tizen_0.4.70
[framework/web/wrt-plugins-tizen.git] / src / NFC / EventNFCChangedPrivateData.h
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2012 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 #ifndef TIZEN_NFC_EVENTNFCCHANGEDPRIVATE_H_
19 #define TIZEN_NFC_EVENTNFCCHANGEDPRIVATE_H_
20
21 #include <dpl/shared_ptr.h>
22 #include <Commons/IEvent.h>
23 #include <CommonsJavaScript/JSCallbackManager.h>
24 #include <Security.h>
25
26 namespace DeviceAPI {
27 namespace NFC {
28 class EventNFCChangedPrivateData : public WrtDeviceApis::Commons::IEventPrivateData,
29         public DeviceAPI::Common::SecurityAccessor
30 {
31   public:
32     EventNFCChangedPrivateData(const WrtDeviceApis::CommonsJavaScript::JSCallbackManagerPtr& callbackManager,
33             const WrtDeviceApis::CommonsJavaScript::JSCallbackManagerPtr& detachedCallbackManager);
34
35     WrtDeviceApis::CommonsJavaScript::JSCallbackManagerPtr getCallbackManager() const;
36     WrtDeviceApis::CommonsJavaScript::JSCallbackManagerPtr getDetachedCallbackManager() const;
37
38   private:
39     WrtDeviceApis::CommonsJavaScript::JSCallbackManagerPtr m_callbackManager;
40     WrtDeviceApis::CommonsJavaScript::JSCallbackManagerPtr m_detachedCallbackManager;
41 };
42
43 typedef DPL::SharedPtr<EventNFCChangedPrivateData> EventNFCChangedPrivateDataPtr;
44 }
45 }
46
47 #endif //TIZEN_NFC_EVENTNFCCHANGEDPRIVATE_H_