diff -r 2fe1408b6811 -r e1b950c65cb4 epoc32/include/mw/csendasmessagetypes.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/mw/csendasmessagetypes.h Wed Mar 31 12:27:01 2010 +0100 @@ -0,0 +1,61 @@ +// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// 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 +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __CSENDASMESSAGETYPES_H__ +#define __CSENDASMESSAGETYPES_H__ + +#include +#include + +// Forward declarations +class RReadStream; +class RWriteStream; + +/** +Provides human-readable names and UIDs for the filtered list of message types. + +@publishedAll +@released +*/ +class CSendAsMessageTypes : public CBase + { +public: + IMPORT_C static CSendAsMessageTypes* NewL(); + IMPORT_C virtual ~CSendAsMessageTypes(); + + IMPORT_C const MDesCArray& AvailableMessageTypes() const; + IMPORT_C TUid MessageTypeUid(TInt aIndex) const; + IMPORT_C TPtrC NameFromUidL(const TUid aUid) const; + IMPORT_C TUid UidFromNameL(const TDesC& aName) const; + IMPORT_C TInt Count() const; + IMPORT_C void Reset(); + + IMPORT_C void InternalizeL(RReadStream& aReadStream); + IMPORT_C void ExternalizeL(RWriteStream& aWriteStream) const; + + IMPORT_C void AppendMessageTypeL(const TDesC& aMessageTypeName, TUid aMessageTypeUid); + IMPORT_C void RemoveMessageType(TInt aIndex); + IMPORT_C TInt Size() const; + +private: + CSendAsMessageTypes(); + void ConstructL(); + +private: + CDesCArrayFlat* iMessageTypeNames; + RArray iMessageTypeUids; + }; + +#endif // __CSENDASMESSAGETYPES_H__