47847ea3e8a94d98bb30c5627776fea3bc8c9273
[framework/web/wrt-plugins-common.git] / src / modules / API / Messaging / IMms.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       IMms.h
20  * @author     Pawel Misiak (p.misiak@samsung.com)
21  * @version    0.1
22  * @brief
23  */
24 #ifndef IMMS_H
25 #define IMMS_H
26
27 #include <string>
28 #include <dpl/shared_ptr.h>
29 #include "VirtualMessage.h"
30 #include "IMessage.h"
31 #include "Subject.h"
32 #include "ToRecipient.h"
33 #include "CcRecipient.h"
34 #include "BccRecipient.h"
35 #include "Attachments.h"
36 #include "IMmsSlides.h"
37
38 namespace WrtDeviceApis {
39 namespace Messaging {
40 namespace Api {
41 class IMms;
42 typedef DPL::SharedPtr<IMms> IMmsPtr;
43
44 class IMms :
45     virtual public IMessage,
46     virtual public IMmsSlides,
47     public CcRecipient,
48     public BccRecipient,
49     public Attachments
50 {
51   public:   // fields
52
53     enum MMSType
54     {
55         MULTIPART_MIXED   = 0,
56         MULTIPART_RELATED = 1
57     };
58
59   public:   // methods
60
61     explicit IMms(const std::string& id = "");
62
63     virtual ~IMms();
64
65     /**
66      *  geter for mms type
67      * */
68     virtual MMSType getMmsType() const;
69
70     /**
71      *  seter for mms type
72      * */
73     virtual void setMmsType(MMSType type);
74
75     IMms & operator <<(const VirtualMessage& msg);
76
77   private:
78     MMSType m_mmsType;
79 };
80 }
81 }
82 }
83 #endif