|
1 /* |
|
2 * Copyright (c) 2006 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 "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: Class CCatalogsAccessPointSettings declation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CATALOGSACCESSPOINTSETTINGS_H |
|
20 #define C_CATALOGSACCESSPOINTSETTINGS_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <ApAccessPointItem.h> |
|
24 #include <badesca.h> |
|
25 |
|
26 |
|
27 class CCatalogsAccessPointSettings: public CBase |
|
28 { |
|
29 public: |
|
30 static CCatalogsAccessPointSettings* NewL(); |
|
31 static CCatalogsAccessPointSettings* NewLC(); |
|
32 |
|
33 virtual ~CCatalogsAccessPointSettings(); |
|
34 |
|
35 void SetLongTextParameterL(const TApMember& aKey, const TDesC16& aValue); |
|
36 void SetText16ParameterL(const TApMember& aKey, const TDesC16& aValue); |
|
37 void SetText8ParameterL(const TApMember& aKey, const TDesC8& aValue); |
|
38 void SetUintParameterL(const TApMember& aKey, const TUint32& aValue); |
|
39 void SetBoolParameterL(const TApMember& aKey, const TBool& aValue); |
|
40 |
|
41 TInt LongTextParameterCount() const; |
|
42 TInt Text16ParameterCount() const; |
|
43 TInt Text8ParameterCount() const; |
|
44 TInt UintParameterCount() const; |
|
45 TInt BoolParameterCount() const; |
|
46 |
|
47 void LongTextParameter( |
|
48 TInt aIndex, TApMember& aKey, TPtrC16& aValue) const; |
|
49 void Text16Parameter( |
|
50 TInt aIndex, TApMember& aKey, TPtrC16& aValue) const; |
|
51 void Text8Parameter( |
|
52 TInt aIndex, TApMember& aKey, TPtrC8& aValue) const; |
|
53 void UintParameter( |
|
54 TInt aIndex, TApMember& aKey, TUint32& aValue) const; |
|
55 void BoolParameter( |
|
56 TInt aIndex, TApMember& aKey, TBool& aValue) const; |
|
57 |
|
58 protected: |
|
59 CCatalogsAccessPointSettings(); |
|
60 void ConstructL(); |
|
61 void ExternalizeL(RWriteStream& aStream); |
|
62 void InternalizeL(RReadStream& aStream); |
|
63 |
|
64 private: |
|
65 RArray<TApMember> iLongTextMembers; |
|
66 RArray<TApMember> iText16Members; |
|
67 RArray<TApMember> iText8Members; |
|
68 RArray<TApMember> iUintMembers; |
|
69 RArray<TApMember> iBoolMembers; |
|
70 |
|
71 CDesC16ArrayFlat* iLongTextData; |
|
72 CDesC16ArrayFlat* iText16Data; |
|
73 CDesC8ArrayFlat* iText8Data; |
|
74 RArray<TUint32> iUintData; |
|
75 RArray<TBool> iBoolData; |
|
76 }; |
|
77 |
|
78 |
|
79 #endif |