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 #include <Commons/Exception.h>
19 #include "ContentFolder.h"
26 MediacontentFolder::MediacontentFolder()
28 m_modifiedDate = NULL;
32 MediacontentFolder::~MediacontentFolder()
34 if(m_modifiedDate != NULL)
41 string MediacontentFolder::getFolderUUID() const
46 void MediacontentFolder::setFolderUUID(const string &value)
52 string MediacontentFolder::getFolderName() const
57 void MediacontentFolder::setFolderName(const string &value)
62 string MediacontentFolder::getFolderPath() const
68 void MediacontentFolder::setFolderPath(const string &value)
74 string MediacontentFolder::getFolderStorageType()
79 void MediacontentFolder::setFolderStorageType(const string &value)
81 m_storageType = value;
84 tm* MediacontentFolder::getFolderModifiedDate() const
86 return m_modifiedDate;
89 MediaIdListPtr MediacontentFolder::getMediaIdList() const
91 return m_mediaIdArrayPtr;
95 void MediacontentFolder::setFolderModifiedDate(tm *value)
97 m_modifiedDate = value;
101 void MediacontentFolder::setMediaIdList(const MediaIdListPtr &value)
103 m_mediaIdArrayPtr = value;
108 void MediacontentFolder::insertValue(string attrName, string value)
110 m_folderValue.insert(pair<string, string>(attrName,value));
113 string MediacontentFolder::findValue(string attrName)
118 map<string, string>::iterator pos;
120 pos = m_folderValue.find(attrName);
122 if(m_folderValue.end() != pos)
128 LoggerD("Attribute(" << attrName << ") There is no data.");
134 void MediacontentFolder::display() const
136 LoggerD("m_folderUUID: " << m_folderUUID);
137 LoggerD("m_folderName: " << m_folderName);
138 LoggerD("m_folderPath: " << m_folderPath);
139 LoggerD("m_storageType: " << m_storageType);