6bcf6a78b1d8d29fb4dce3cb6c1eafd07c071d80
[framework/web/wrt-plugins-common.git] / src / modules / API / Messaging / MmsSlides.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 /**
17  *
18  *
19  * @file       MmsSlides.h
20  * @author     Grzegorz Krawczyk (g.krawczyk@samsung.com)
21  * @version    0.1
22  * @brief
23  */
24
25 #ifndef MMS_SLIDES_H
26 #define MMS_SLIDES_H
27
28 #include "IMmsSlides.h"
29
30 namespace WrtDeviceApis {
31 namespace Messaging {
32 namespace Api {
33 class MmsSlides :
34     virtual public IMmsSlides
35 {
36   public:
37
38     MmsSlides();
39
40     virtual ~MmsSlides();
41
42     virtual IMmsSlidePtr createEmptySlide() const;
43
44     virtual bool checkSlidesValidity() const;
45
46     virtual void setSlidesValidity(bool state);
47
48     virtual void setSlides(const std::vector<IMmsSlidePtr>& slides);
49
50     virtual void addSlide(const IMmsSlidePtr& slide);
51
52     virtual size_t getSlideCount() const;
53
54     virtual IMmsSlidePtr getSlide(size_t nb) const;
55
56     virtual std::vector<IMmsSlidePtr> getSlides() const;
57
58     virtual void replaceSlide(size_t pos,
59             const IMmsSlidePtr& slide);
60
61     virtual void removeSlide(size_t pos);
62
63   private:
64
65     bool m_valid;
66
67     std::vector<IMmsSlidePtr> m_slides;
68 };
69 }
70 }}
71 #endif