|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CSENDASTESTMESSAGE_H__ |
|
17 #define __CSENDASTESTMESSAGE_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <cmsvrecipientlist.h> |
|
21 |
|
22 class CSendAsTestAddress; |
|
23 class CMsvStore; |
|
24 class RReadStream; |
|
25 class RWriteStream; |
|
26 |
|
27 class CSendAsTestMessage : public CBase |
|
28 { |
|
29 public: |
|
30 enum TSendAsTestAddressType |
|
31 { |
|
32 ESendAsTestAddressTypeTo = EMsvRecipientTo, |
|
33 ESendAsTestAddressTypeCc, |
|
34 ESendAsTestAddressTypeBcc |
|
35 }; |
|
36 |
|
37 public: |
|
38 IMPORT_C static CSendAsTestMessage* NewL(); |
|
39 IMPORT_C virtual ~CSendAsTestMessage(); |
|
40 |
|
41 IMPORT_C const RPointerArray<CSendAsTestAddress>& Addresses() const; |
|
42 IMPORT_C RPointerArray<CSendAsTestAddress>& Addresses(); |
|
43 |
|
44 IMPORT_C void SetSubjectL(const TDesC& aSubject); |
|
45 IMPORT_C const TDesC& Subject() const; |
|
46 |
|
47 IMPORT_C void RestoreL(CMsvStore& aStore); |
|
48 IMPORT_C void StoreL(CMsvStore& aStore) const; |
|
49 |
|
50 IMPORT_C void SetBioTypeL(const TUid aBioType); |
|
51 IMPORT_C TUid BioType() const; |
|
52 private: |
|
53 CSendAsTestMessage(); |
|
54 void ConstructL(); |
|
55 |
|
56 void InternalizeL(RReadStream& aStream); |
|
57 void ExternalizeL(RWriteStream& aStream) const; |
|
58 private: |
|
59 RPointerArray<CSendAsTestAddress> iAddresses; |
|
60 HBufC* iSubject; |
|
61 TUid iBioType; |
|
62 }; |
|
63 |
|
64 #endif // __CSENDASTESTMESSAGE_H__ |