2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * CIdAndString class declaration
30 #include <ct/rcpointerarray.h>
31 #include "authserver/authtypes.h"
36 * CIdAndString is an client side class of the authentication server.
37 * It contains the relevant identity and corresponding displayable
38 * text associated with this identity.
41 NONSHARABLE_CLASS(CIdAndString) : public CBase
45 IMPORT_C static CIdAndString* NewLC(TIdentityId aId, const TDesC& aString);
46 IMPORT_C static CIdAndString* NewLC(RReadStream& aStream);
48 IMPORT_C void ConstructL(TIdentityId aId, const TDesC& aString);
50 IMPORT_C ~CIdAndString();
52 IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
53 void InternalizeL(RReadStream& aStream);
55 IMPORT_C TIdentityId Id() const;
56 IMPORT_C HBufC* String() const;
63 typedef RCPointerArray<CIdAndString> RIdAndStringArray;
67 #endif // IDANDSTRING_H