2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include <dpl/log/log.h>
18 #include <Commons/Exception.h>
19 #include "MediacontentFolder.h"
23 namespace Mediacontent {
26 MediacontentFolder::MediacontentFolder()
31 MediacontentFolder::~MediacontentFolder()
37 EditableAttributeListPtr MediacontentFolder::getEditableAttr() const
39 return m_editableAttrPtr;
43 string MediacontentFolder::getFolderUUID() const
48 void MediacontentFolder::setFolderUUID(const string &value)
54 string MediacontentFolder::getFolderName() const
59 void MediacontentFolder::setFolderName(const string &value)
64 string MediacontentFolder::getFolderPath() const
70 void MediacontentFolder::setFolderPath(const string &value)
76 string MediacontentFolder::getFolderStorageType()
81 void MediacontentFolder::setFolderStorageType(const string &value)
83 m_storageType = value;
86 tm MediacontentFolder::getFolderModifiedDate() const
88 return m_modifiedDate;
91 MediaIdListPtr MediacontentFolder::getMediaIdList() const
93 return m_mediaIdArrayPtr;
97 void MediacontentFolder::setFolderModifiedDate(const tm &value)
99 m_modifiedDate = value;
103 void MediacontentFolder::setMediaIdList(const MediaIdListPtr &value)
105 m_mediaIdArrayPtr = value;
110 void MediacontentFolder::insertValue(string attrName, string value)
112 m_folderValue.insert(pair<string, string>(attrName,value));
115 string MediacontentFolder::findValue(string attrName)
120 map<string, string>::iterator pos;
122 pos = m_folderValue.find(attrName);
124 if(m_folderValue.end() != pos)
130 LogDebug("Attribute(" << attrName << ") There is no data.");
136 void MediacontentFolder::display() const
138 LogDebug("m_folderUUID: " << m_folderUUID);
139 LogDebug("m_folderName: " << m_folderName);
140 LogDebug("m_folderPath: " << m_folderPath);
141 LogDebug("m_storageType: " << m_storageType);