epoc32/include/cmsvrecipientlist.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __CMSVRECIPIENTLIST_H__
    17 #define __CMSVRECIPIENTLIST_H__
    18 
    19 #include <e32base.h>
    20 #include <badesca.h>
    21 
    22 
    23 
    24 // must be 4 bytes so that RArray works.
    25 typedef TUint32 TMsvRecipientType;
    26 
    27 /**
    28 @publishedAll
    29 @released
    30 */
    31 enum TMsvRecipientTypeValues
    32 	{
    33 	EMsvRecipientTo = 0,
    34 	EMsvRecipientCc,
    35 	EMsvRecipientBcc,
    36 	};
    37 
    38 /**
    39 @publishedAll
    40 @released
    41 */
    42 class CMsvRecipientList : public CBase
    43 	{
    44 public:
    45 	static CMsvRecipientList* NewL();
    46 	static CMsvRecipientList* NewLC();
    47 	virtual ~CMsvRecipientList();
    48 	//
    49 	IMPORT_C void Reset();
    50 	IMPORT_C TInt Count() const;
    51 	//
    52 	IMPORT_C void AppendL(const TDesC& aPtr);
    53 	IMPORT_C void AppendL(TMsvRecipientType aValue, const TDesC& aPtr);
    54 	//
    55 	IMPORT_C void Delete(TInt aPos);
    56 	IMPORT_C void Delete(TInt aPos, TInt aCount);
    57 	//
    58 	IMPORT_C TMsvRecipientType Type(TInt aPos) const;
    59 	IMPORT_C const TDesC& operator[](TInt aIndex) const;
    60 	//
    61 	IMPORT_C const MDesCArray& RecipientList() const;
    62 private:
    63 	CMsvRecipientList();
    64 	void ConstructL();
    65 private:
    66 	RArray<TMsvRecipientType> iRecipientType;
    67 	CDesCArrayFlat*	iRecipients;
    68 	};
    69 
    70 #endif //__CMSVRECIPIENTLIST_H__