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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __CMSVRECIPIENTLIST_H__
17 #define __CMSVRECIPIENTLIST_H__
24 // must be 4 bytes so that RArray works.
25 typedef TUint32 TMsvRecipientType;
31 enum TMsvRecipientTypeValues
42 class CMsvRecipientList : public CBase
45 static CMsvRecipientList* NewL();
46 static CMsvRecipientList* NewLC();
47 virtual ~CMsvRecipientList();
49 IMPORT_C void Reset();
50 IMPORT_C TInt Count() const;
52 IMPORT_C void AppendL(const TDesC& aPtr);
53 IMPORT_C void AppendL(TMsvRecipientType aValue, const TDesC& aPtr);
55 IMPORT_C void Delete(TInt aPos);
56 IMPORT_C void Delete(TInt aPos, TInt aCount);
58 IMPORT_C TMsvRecipientType Type(TInt aPos) const;
59 IMPORT_C const TDesC& operator[](TInt aIndex) const;
61 IMPORT_C const MDesCArray& RecipientList() const;
66 RArray<TMsvRecipientType> iRecipientType;
67 CDesCArrayFlat* iRecipients;
70 #endif //__CMSVRECIPIENTLIST_H__