wrt-plugins-tizen_0.4.23
[framework/web/wrt-plugins-tizen.git] / src / Content / IEventUpdateBatch.h
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18
19
20 #ifndef _ABSTRACT_LAYER_IEVENT_UPDATE_ITEMS_H_
21 #define _ABSTRACT_LAYER_IEVENT_UPDATE_ITEMS_H_
22
23 #include <vector>
24 #include <Commons/IEvent.h>
25 #include <dpl/shared_ptr.h>
26 #include "ContentMedia.h"
27 #include <Logger.h>
28
29 namespace DeviceAPI {
30 namespace Content {
31
32 class IEventUpdateMediaItems : public WrtDeviceApis::Commons::IEvent<IEventUpdateMediaItems>
33 {
34
35         public:
36         IEventUpdateMediaItems():m_result(false)
37     {
38         LoggerD("entered");
39     }
40         virtual ~IEventUpdateMediaItems(){}
41         
42     void setResult(bool value)
43     {
44         m_result = value;
45     }
46     bool getResult() const
47     {
48         return m_result;
49     }
50
51     MediacontentMediaListPtr getMediaItems() const
52     {
53         return m_mediaList;
54     }
55
56     void setMediaItems(MediacontentMediaListPtr value)
57     {
58         m_mediaList = value;
59     }
60
61
62         private:
63         bool m_result;
64         MediacontentMediaListPtr m_mediaList;
65 };
66
67 typedef DPL::SharedPtr<IEventUpdateMediaItems> IEventUpdateMediaItemsPtr;
68
69 }
70 }
71
72 #endif /* _ABSTRACT_LAYER_IEVENT_UPDATE_ITEMS_H_ */