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.
18 #ifndef _ABSTRACT_LAYER_MEDIACONTENT_MEDIA_H_
19 #define _ABSTRACT_LAYER_MEDIACONTENT_MEDIA_H_
24 #include <dpl/optional.h>
25 #include <dpl/shared_ptr.h>
31 namespace Mediacontent {
38 MEDIA_TYPE_UNKOWN = 4,
42 class MediacontentMedia
47 virtual ~MediacontentMedia();
49 string getMediaUUID() const;
50 string getMediaType() const;
51 string getMimeType() const;
52 string getDisplayName() const;
53 string getFilePath() const;
54 string getThumbnailPath() const;
55 tm getCreatedDate() const;
56 tm getReleasedDate() const;
57 tm getModifiedDate() const;
58 string getDescription() const;
59 int getFavorite() const;
61 bool getIsChangedFavorite() const;
63 void setMediaUUID(const string &value);
64 void setMediaType(const string &value);
65 void setMimeType(const string &value);
66 void setDisplayName(const string &value);
67 void setFilePath(const string &value);
68 void setThumbnailPath(const string &value);
69 void setCreatedDate(const tm &value);
70 void setReleasedDate(const tm &value);
71 void setModifiedDate(const tm &value);
72 void setFavorite( int value);
73 void setDescription(const string &value);
83 string m_thumbnailPath;
89 bool m_isChangedFavorite;
94 typedef DPL::SharedPtr<MediacontentMedia> MediacontentMediaPtr;
95 typedef std::vector<MediacontentMediaPtr> MediacontentMediaList;
96 typedef DPL::SharedPtr<MediacontentMediaList> MediacontentMediaListPtr;
103 #endif /* _ABSTRACT_LAYER_MEDIACONTENT_MEDIA_H_ */