diff options
Diffstat (limited to 'src/platform/API/Messaging/IConversation.h')
-rwxr-xr-x | src/platform/API/Messaging/IConversation.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/src/platform/API/Messaging/IConversation.h b/src/platform/API/Messaging/IConversation.h new file mode 100755 index 0000000..9c22f25 --- /dev/null +++ b/src/platform/API/Messaging/IConversation.h @@ -0,0 +1,84 @@ +/* +* Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +/** +* @file Conversation.h +* @author Kangsoo Lee (wpeter.lee@samsung.com) +* @version 0.1 +*/ + +#ifndef ICONVERSATION_H +#define ICONVERSATION_H + +#include <dpl/shared_ptr.h> +#include <map> +#include <string> +#include <vector> +#include <API/Messaging/IMessagingTypes.h> + +namespace TizenApis { +namespace Api { +namespace Messaging { + +class IConversation; +typedef DPL::SharedPtr<IConversation> IConversationPtr; + + +class IConversation +{ +public: + IConversation() {} + virtual ~IConversation() {}; + // getter + virtual unsigned int getId() = 0; + virtual unsigned short getType() = 0; + virtual time_t getTime() = 0; + virtual unsigned long getMessageCount() = 0; + virtual unsigned long getUnreadMessages() = 0; + virtual std::string getPreview() = 0; + virtual std::string getSubject() = 0; + virtual bool getRead() = 0; + virtual std::string getFrom() = 0; + virtual std::vector<std::string> getTo() = 0; + virtual std::vector<std::string> getCC() = 0; + virtual std::vector<std::string> getBCC() = 0; + virtual unsigned int getLastMessageId() = 0; + virtual bool getResult() = 0; + +#if 0 +private: + + // setter + virtual void setId(unsigned int id) = 0; + virtual void setType(unsigned short type) = 0; + virtual void setTime(time_t time) = 0; + virtual void setMessageCount(unsigned long messageCount) = 0; + virtual void setUnreadMessages(unsigned long unreadMessages) = 0; + virtual void setPreview(unsigned long unreadMessages) = 0; + virtual void setRead(bool read) = 0; + virtual void setFrom(std::string from) = 0; + virtual void setTo(std::vector<std::string> to) = 0; + virtual void setCC(std::vector<std::string> cc) = 0; + virtual void setBCC(std::vector<std::string> bcc) = 0; + virtual void setLastMessageId(unsigned int id) = 0; +#endif +}; +} +} +} + +#endif + |