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),
59 virtual const std::string &getFileName() const
63 virtual unsigned long getId() const
67 virtual const std::string &getMimeType() const
71 virtual MediaType getType() const
75 virtual unsigned long getDate() const
80 virtual void setFileName(const std::string &fileName)
82 m_fileName = fileName;
84 virtual void setId(unsigned long id)
88 virtual void setMimeType(const std::string &mimeType)
90 m_mimeType = mimeType;
92 virtual void setType(MediaType type)
96 virtual void setDate(unsigned long date)
102 typedef DPL::SharedPtr<IMediaItem> IMediaItemPtr;
103 typedef std::list<IMediaItemPtr> IMediaItemsSet;
104 typedef DPL::SharedPtr<IMediaItemsSet> IMediaItemsSetPtr;
105 typedef std::list<IMediaItemPtr>::iterator IMediaItemsSetIterator;
106 typedef std::list<IMediaItemPtr>::const_iterator IMediaItemsSetConstIterator;
111 #endif //WRT_PLUGINS_IMEDIA_ITEM_H_