equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: 3rd party api testplugin message data |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MESSAGEDATAIMPL_H |
|
19 #define MESSAGEDATAIMPL_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 class MMessageData; |
|
24 |
|
25 NONSHARABLE_CLASS( CMessageDataImpl ) : public EmailInterface::MMessageData |
|
26 { |
|
27 public: |
|
28 static CMessageDataImpl* NewL(); |
|
29 virtual ~CMessageDataImpl(); |
|
30 |
|
31 virtual const TDesC& Sender() const; |
|
32 virtual const TDesC& Subject() const; |
|
33 virtual TTime TimeStamp() const; |
|
34 virtual TBool Unread() const; |
|
35 virtual EmailInterface::TEmailPriority Priority() const; |
|
36 virtual TBool Attachments() const; |
|
37 virtual TBool CalendarMsg() const; |
|
38 virtual TBool Replied() const; |
|
39 virtual TBool Forwarded() const; |
|
40 |
|
41 void SetFlagsL( const TInt aFlags ); |
|
42 |
|
43 private: |
|
44 CMessageDataImpl(); |
|
45 void ConstructL(); |
|
46 public: // Data |
|
47 HBufC* iSender; |
|
48 HBufC* iSubject; |
|
49 TTime iTimeStamp; |
|
50 TBool iUnread; |
|
51 EmailInterface::TEmailPriority iPriority; |
|
52 TBool iAttachments; |
|
53 TBool iCalendarMsg; |
|
54 TBool iReplied; |
|
55 TBool iForwarded; |
|
56 }; |
|
57 |
|
58 #endif // MESSAGEDATAIMPL_H |