tizen 2.3 release
[framework/web/wearable/wrt-plugins-tizen.git] / src / Content / RemoveBatchCallbackUserData.cpp
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2014 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 #include "RemoveBatchCallbackUserData.h"
19
20 #include <Logger.h>
21
22
23 using namespace DeviceAPI::Common;
24
25 namespace DeviceAPI {
26 namespace Content {
27
28 RemoveBatchCallbackUserData::RemoveBatchCallbackUserData(JSContextRef global_ctx,
29         const std::vector<PlaylistItemPtr>& items,
30         PlaylistPtr playlist_ptr) :
31                 BaseCallbackUserData(global_ctx),
32                 m_items(items),
33                 m_playlist_ptr(playlist_ptr)
34 {
35     LOGD("Entered");
36 }
37
38 RemoveBatchCallbackUserData::~RemoveBatchCallbackUserData()
39 {
40 }
41
42 const std::vector<PlaylistItemPtr>& RemoveBatchCallbackUserData::getItems() const
43 {
44     LOGD("Entered");
45     return m_items;
46 }
47
48 PlaylistPtr RemoveBatchCallbackUserData::getPlaylist()
49 {
50     LOGD("Entered");
51     return m_playlist_ptr;
52 }
53
54
55 } // Content
56 } // DeviceAPI