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.
19 #include <dpl/log/log.h>
20 #include <Commons/Exception.h>
21 #include "ContentFolder.h"
27 MediacontentFolder::MediacontentFolder()
32 MediacontentFolder::~MediacontentFolder()
38 string MediacontentFolder::getFolderUUID() const
43 void MediacontentFolder::setFolderUUID(const string &value)
49 string MediacontentFolder::getFolderName() const
54 void MediacontentFolder::setFolderName(const string &value)
59 string MediacontentFolder::getFolderPath() const
65 void MediacontentFolder::setFolderPath(const string &value)
71 string MediacontentFolder::getFolderStorageType()
76 void MediacontentFolder::setFolderStorageType(const string &value)
78 m_storageType = value;
81 tm MediacontentFolder::getFolderModifiedDate() const
83 return m_modifiedDate;
86 MediaIdListPtr MediacontentFolder::getMediaIdList() const
88 return m_mediaIdArrayPtr;
92 void MediacontentFolder::setFolderModifiedDate(const tm &value)
94 m_modifiedDate = value;
98 void MediacontentFolder::setMediaIdList(const MediaIdListPtr &value)
100 m_mediaIdArrayPtr = value;
105 void MediacontentFolder::insertValue(string attrName, string value)
107 m_folderValue.insert(pair<string, string>(attrName,value));
110 string MediacontentFolder::findValue(string attrName)
115 map<string, string>::iterator pos;
117 pos = m_folderValue.find(attrName);
119 if(m_folderValue.end() != pos)
125 LogDebug("Attribute(" << attrName << ") There is no data.");
131 void MediacontentFolder::display() const
133 LogDebug("m_folderUUID: " << m_folderUUID);
134 LogDebug("m_folderName: " << m_folderName);
135 LogDebug("m_folderPath: " << m_folderPath);
136 LogDebug("m_storageType: " << m_storageType);