2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 #ifndef ICONVERSATION_H
19 #define ICONVERSATION_H
21 #include <dpl/shared_ptr.h>
25 #include <API/Messaging/IMessagingTypes.h>
32 typedef DPL::SharedPtr<IConversation> IConversationPtr;
39 virtual ~IConversation() {};
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;
56 virtual void setId(const unsigned int id) = 0;
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;