1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/app/memailmessagedata.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,98 @@
1.4 +/*
1.5 +* Copyright (c) 2009 - 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description: Helper classes for interface.
1.18 +*
1.19 +*/
1.20 +
1.21 +#ifndef MEMAILMESSAGEDATA_H
1.22 +#define MEMAILMESSAGEDATA_H
1.23 +
1.24 +// System includes
1.25 +#include <e32std.h>
1.26 +
1.27 +namespace EmailInterface {
1.28 +
1.29 +/** Email message priority flag */
1.30 +enum TEmailPriority
1.31 + {
1.32 + ENormal,
1.33 + ELow,
1.34 + EHigh
1.35 + };
1.36 +
1.37 +/**
1.38 + * Container interface for message related info
1.39 + * Plugin implementor make implementation for this
1.40 + */
1.41 +class MMessageData
1.42 + {
1.43 +public:
1.44 + /**
1.45 + * Accessor for message sender information
1.46 + * @return sender as descriptor
1.47 + */
1.48 + virtual const TDesC& Sender() const = 0;
1.49 +
1.50 + /**
1.51 + * Accessor for message subject information
1.52 + * @return message subject
1.53 + */
1.54 + virtual const TDesC& Subject() const = 0;
1.55 +
1.56 + /**
1.57 + * Accessor for message timestamp information
1.58 + * @return timestamp
1.59 + */
1.60 + virtual TTime TimeStamp() const = 0;
1.61 +
1.62 + /**
1.63 + * Accessor for message read/unread status
1.64 + * @return boolean
1.65 + */
1.66 + virtual TBool Unread() const = 0;
1.67 +
1.68 + /**
1.69 + * Accessor for message priority status
1.70 + * @return one of message priority values
1.71 + */
1.72 + virtual TEmailPriority Priority() const = 0;
1.73 +
1.74 + /**
1.75 + * Accessor for message's attachment status
1.76 + * @return boolean depending whether message has any attachmants or not
1.77 + */
1.78 + virtual TBool Attachments() const = 0;
1.79 +
1.80 + /**
1.81 + * Accessor for info whether this is a calendar message or not
1.82 + * @return boolean
1.83 + */
1.84 + virtual TBool CalendarMsg() const = 0;
1.85 +
1.86 + /**
1.87 + * Accessor for info whether this message has been replied or not
1.88 + * @return boolean
1.89 + */
1.90 + virtual TBool Replied() const = 0;
1.91 +
1.92 + /**
1.93 + * Accessor for info whether this message has been forwarded or not
1.94 + * @return boolean
1.95 + */
1.96 + virtual TBool Forwarded() const = 0;
1.97 + };
1.98 +
1.99 +} // namespace
1.100 +
1.101 +#endif // MEMAILMESSAGEDATA_H