Update change log and spec for wrt-plugins-tizen_0.2.72
[framework/web/wrt-plugins-tizen.git] / src / platform / API / Messaging / IConversation.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 #ifndef ICONVERSATION_H
19 #define ICONVERSATION_H
20
21 #include <dpl/shared_ptr.h>
22 #include <map>
23 #include <string>
24 #include <vector>
25 #include <API/Messaging/IMessagingTypes.h>
26
27 namespace TizenApis {
28 namespace Api {
29 namespace Messaging {
30
31 class IConversation;
32 typedef DPL::SharedPtr<IConversation> IConversationPtr;
33
34
35 class IConversation
36 {
37 public: 
38         IConversation() {}
39     virtual ~IConversation() {};
40         // getter
41         virtual unsigned int getId() = 0;
42         virtual unsigned short getType() = 0;
43         virtual time_t getTime() = 0;
44         virtual unsigned long getMessageCount() = 0;
45         virtual unsigned long getUnreadMessages() = 0;
46         virtual std::string  getPreview() = 0;
47         virtual std::string getSubject() = 0;
48         virtual bool getRead() = 0;
49         virtual std::string getFrom() = 0;
50         virtual std::vector<std::string> getTo() = 0;
51         virtual std::vector<std::string> getCC() = 0;
52         virtual std::vector<std::string> getBCC() = 0;
53         virtual unsigned int getLastMessageId() = 0;
54         virtual bool getResult() = 0;
55
56         virtual void setId(const unsigned int id) = 0;
57
58 #if 0
59 private:
60         
61         // setter
62         virtual void setId(unsigned int id) = 0;
63         virtual void setType(unsigned short type) = 0;
64         virtual void setTime(time_t time) = 0;
65         virtual void setMessageCount(unsigned long messageCount) = 0;
66         virtual void setUnreadMessages(unsigned long unreadMessages) = 0;
67         virtual void setPreview(unsigned long unreadMessages) = 0;
68         virtual void setRead(bool read) = 0;
69         virtual void setFrom(std::string from) = 0;
70         virtual void setTo(std::vector<std::string> to) = 0;
71         virtual void setCC(std::vector<std::string> cc) = 0;
72         virtual void setBCC(std::vector<std::string> bcc) = 0;
73         virtual void setLastMessageId(unsigned int id) = 0;
74 #endif  
75 };
76 }
77 }
78 }
79
80 #endif
81