tizen 2.3 release
[framework/web/wearable/wrt-plugins-tizen.git] / src / Content / CreatePlaylistCallbackUserData.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 "CreatePlaylistCallbackUserData.h"
19
20 #include <GlobalContextManager.h>
21
22 namespace DeviceAPI {
23 namespace Content {
24
25 CreatePlaylistCallbackUserData::CreatePlaylistCallbackUserData(
26         JSContextRef global_ctx) :
27                 BaseCallbackUserData(global_ctx)
28 {
29 }
30
31 CreatePlaylistCallbackUserData::~CreatePlaylistCallbackUserData()
32 {
33 }
34
35 const std::string& CreatePlaylistCallbackUserData::getPlaylistName()
36 {
37     return m_playlist_name;
38 }
39
40 void CreatePlaylistCallbackUserData::setPlaylistName(const std::string& playlist_name)
41 {
42     m_playlist_name = playlist_name;
43 }
44
45 PlaylistPtr CreatePlaylistCallbackUserData::getPlaylist() const
46 {
47     return m_playlist;
48 }
49
50 void CreatePlaylistCallbackUserData::setPlaylist(PlaylistPtr playlist)
51 {
52     m_playlist = playlist;
53 }
54
55 PlaylistPtr CreatePlaylistCallbackUserData::getSourcePlaylist() const
56 {
57     return m_source_playlist;
58 }
59
60 void CreatePlaylistCallbackUserData::setSourcePlaylist(PlaylistPtr source_playlist)
61 {
62     m_source_playlist = source_playlist;
63 }
64
65 } //namespace Content
66 } //namespace DeviceAPI