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