2 * Copyright (c) 2009 - 2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Helper classes for interface.
18 #ifndef MEMAILMESSAGEDATA_H
19 #define MEMAILMESSAGEDATA_H
24 namespace EmailInterface {
26 /** Email message priority flag */
35 * Container interface for message related info
36 * Plugin implementor make implementation for this
42 * Accessor for message sender information
43 * @return sender as descriptor
45 virtual const TDesC& Sender() const = 0;
48 * Accessor for message subject information
49 * @return message subject
51 virtual const TDesC& Subject() const = 0;
54 * Accessor for message timestamp information
57 virtual TTime TimeStamp() const = 0;
60 * Accessor for message read/unread status
63 virtual TBool Unread() const = 0;
66 * Accessor for message priority status
67 * @return one of message priority values
69 virtual TEmailPriority Priority() const = 0;
72 * Accessor for message's attachment status
73 * @return boolean depending whether message has any attachmants or not
75 virtual TBool Attachments() const = 0;
78 * Accessor for info whether this is a calendar message or not
81 virtual TBool CalendarMsg() const = 0;
84 * Accessor for info whether this message has been replied or not
87 virtual TBool Replied() const = 0;
90 * Accessor for info whether this message has been forwarded or not
93 virtual TBool Forwarded() const = 0;
98 #endif // MEMAILMESSAGEDATA_H