1.1 --- a/epoc32/include/cmsvrecipientlist.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/cmsvrecipientlist.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,70 @@
1.4 -cmsvrecipientlist.h
1.5 +// Copyright (c) 2004-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +#ifndef __CMSVRECIPIENTLIST_H__
1.21 +#define __CMSVRECIPIENTLIST_H__
1.22 +
1.23 +#include <e32base.h>
1.24 +#include <badesca.h>
1.25 +
1.26 +
1.27 +
1.28 +// must be 4 bytes so that RArray works.
1.29 +typedef TUint32 TMsvRecipientType;
1.30 +
1.31 +/**
1.32 +@publishedAll
1.33 +@released
1.34 +*/
1.35 +enum TMsvRecipientTypeValues
1.36 + {
1.37 + EMsvRecipientTo = 0,
1.38 + EMsvRecipientCc,
1.39 + EMsvRecipientBcc,
1.40 + };
1.41 +
1.42 +/**
1.43 +@publishedAll
1.44 +@released
1.45 +*/
1.46 +class CMsvRecipientList : public CBase
1.47 + {
1.48 +public:
1.49 + static CMsvRecipientList* NewL();
1.50 + static CMsvRecipientList* NewLC();
1.51 + virtual ~CMsvRecipientList();
1.52 + //
1.53 + IMPORT_C void Reset();
1.54 + IMPORT_C TInt Count() const;
1.55 + //
1.56 + IMPORT_C void AppendL(const TDesC& aPtr);
1.57 + IMPORT_C void AppendL(TMsvRecipientType aValue, const TDesC& aPtr);
1.58 + //
1.59 + IMPORT_C void Delete(TInt aPos);
1.60 + IMPORT_C void Delete(TInt aPos, TInt aCount);
1.61 + //
1.62 + IMPORT_C TMsvRecipientType Type(TInt aPos) const;
1.63 + IMPORT_C const TDesC& operator[](TInt aIndex) const;
1.64 + //
1.65 + IMPORT_C const MDesCArray& RecipientList() const;
1.66 +private:
1.67 + CMsvRecipientList();
1.68 + void ConstructL();
1.69 +private:
1.70 + RArray<TMsvRecipientType> iRecipientType;
1.71 + CDesCArrayFlat* iRecipients;
1.72 + };
1.73 +
1.74 +#endif //__CMSVRECIPIENTLIST_H__