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.
19 #ifndef _ABSTRACT_LAYER_MEDIACONTENT_FOLDER_H_
20 #define _ABSTRACT_LAYER_MEDIACONTENT_FOLDER_H_
26 #include <dpl/optional.h>
27 #include <dpl/shared_ptr.h>
33 namespace Mediacontent {
35 typedef vector<std::string> EditableAttributeList;
36 typedef DPL::SharedPtr<EditableAttributeList> EditableAttributeListPtr;
38 typedef vector<std::string> MediaIdList;
39 typedef DPL::SharedPtr<MediaIdList> MediaIdListPtr;
41 class MediacontentFolder
46 virtual ~MediacontentFolder();
48 EditableAttributeListPtr getEditableAttr() const;
49 string getFolderUUID() const;
50 string getFolderPath() const;
51 string getFolderName() const;
52 string getFolderStorageType();
53 tm getFolderModifiedDate() const;
54 MediaIdListPtr getMediaIdList() const;
56 void setFolderUUID(const string &value);
57 void setFolderPath(const string &value);
58 void setFolderName(const string &value);
59 void setFolderStorageType(const string &value);
60 void setFolderModifiedDate(const tm &value);
61 void setMediaIdList(const MediaIdListPtr &value);
63 void insertValue(string attr, string value);
64 string findValue(string attr);
75 MediaIdListPtr m_mediaIdArrayPtr;
76 EditableAttributeListPtr m_editableAttrPtr;
77 map<string,string> m_folderValue;
81 typedef DPL::SharedPtr<MediacontentFolder> MediacontentFolderPtr;
82 typedef std::vector<MediacontentFolderPtr> MediacontentFolderList;
83 typedef DPL::SharedPtr<MediacontentFolderList> MediacontentFolderListPtr;
90 #endif /* _ABSTRACT_LAYER_MEDIACONTENT_FOLDER_H_ */