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 * @author Wojciech Bielawski (w.bielawski@samsung.com)
22 #ifndef WRT_PLUGINS_IMEDIA_ITEM_H_
23 #define WRT_PLUGINS_IMEDIA_ITEM_H_
27 #include <dpl/shared_ptr.h>
28 #include <dpl/log/log.h>
30 namespace WrtPlugins {
47 std::string m_mimeType;
48 std::string m_fileName;
52 IMediaItem() : m_id(0),
61 virtual const std::string &getFileName() const
65 virtual unsigned long getId() const
69 virtual const std::string &getMimeType() const
73 virtual MediaType getType() const
77 virtual unsigned long getDate() const
82 virtual void setFileName(const std::string &fileName)
84 m_fileName = fileName;
86 virtual void setId(unsigned long id)
90 virtual void setMimeType(const std::string &mimeType)
92 m_mimeType = mimeType;
94 virtual void setType(MediaType type)
98 virtual void setDate(unsigned long date)
104 typedef DPL::SharedPtr<IMediaItem> IMediaItemPtr;
105 typedef std::list<IMediaItemPtr> IMediaItemsSet;
106 typedef DPL::SharedPtr<IMediaItemsSet> IMediaItemsSetPtr;
107 typedef std::list<IMediaItemPtr>::iterator IMediaItemsSetIterator;
108 typedef std::list<IMediaItemPtr>::const_iterator IMediaItemsSetConstIterator;
113 #endif //WRT_PLUGINS_IMEDIA_ITEM_H_