equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * CIdAndString class declaration |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @publishedAll |
|
23 @released |
|
24 */ |
|
25 |
|
26 #ifndef IDANDSTRING_H |
|
27 #define IDANDSTRING_H |
|
28 |
|
29 #include <s32strm.h> |
|
30 #include <ct/rcpointerarray.h> |
|
31 #include "authserver/authtypes.h" |
|
32 |
|
33 namespace AuthServer |
|
34 { |
|
35 /** |
|
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. |
|
39 * |
|
40 */ |
|
41 NONSHARABLE_CLASS(CIdAndString) : public CBase |
|
42 { |
|
43 public: |
|
44 |
|
45 IMPORT_C static CIdAndString* NewLC(TIdentityId aId, const TDesC& aString); |
|
46 IMPORT_C static CIdAndString* NewLC(RReadStream& aStream); |
|
47 |
|
48 IMPORT_C void ConstructL(TIdentityId aId, const TDesC& aString); |
|
49 |
|
50 IMPORT_C ~CIdAndString(); |
|
51 |
|
52 IMPORT_C void ExternalizeL(RWriteStream& aStream) const; |
|
53 void InternalizeL(RReadStream& aStream); |
|
54 |
|
55 IMPORT_C TIdentityId Id() const; |
|
56 IMPORT_C HBufC* String() const; |
|
57 |
|
58 private: |
|
59 TIdentityId iId; |
|
60 HBufC* iString; |
|
61 }; |
|
62 |
|
63 typedef RCPointerArray<CIdAndString> RIdAndStringArray; |
|
64 |
|
65 } |
|
66 |
|
67 #endif // IDANDSTRING_H |