|
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 CCatalogsAccessPointMap declation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32base.h> |
|
20 #include "catalogsaccesspointmanagerimpl.h" |
|
21 |
|
22 class CCatalogsAccessPointMap : public CBase |
|
23 { |
|
24 public: |
|
25 static CCatalogsAccessPointMap* NewL(RReadStream& aStream); |
|
26 |
|
27 static CCatalogsAccessPointMap* NewL( |
|
28 const TDesC& aNameSpace, |
|
29 const CCatalogsAccessPointManager::TAction& aAction, |
|
30 const TDesC& aAccessPointId); |
|
31 |
|
32 static CCatalogsAccessPointMap* NewL( |
|
33 const TDesC& aNameSpace, |
|
34 const TDesC& aCatalogId, |
|
35 const CCatalogsAccessPointManager::TAction& aAction, |
|
36 const TDesC& aAccessPointId); |
|
37 |
|
38 static CCatalogsAccessPointMap* NewLC(RReadStream& aStream); |
|
39 |
|
40 static CCatalogsAccessPointMap* NewLC( |
|
41 const TDesC& aNameSpace, |
|
42 const CCatalogsAccessPointManager::TAction& aAction, |
|
43 const TDesC& aAccessPointId); |
|
44 |
|
45 static CCatalogsAccessPointMap* NewLC( |
|
46 const TDesC& aNameSpace, |
|
47 const TDesC& aCatalogId, |
|
48 const CCatalogsAccessPointManager::TAction& aAction, |
|
49 const TDesC& aAccessPointId); |
|
50 |
|
51 ~CCatalogsAccessPointMap(); |
|
52 |
|
53 const TDesC& NameSpace() const; |
|
54 |
|
55 TBool HasCatalogId() const; |
|
56 const TDesC& CatalogId() const; |
|
57 |
|
58 CCatalogsAccessPointManager::TAction Action() const; |
|
59 |
|
60 const TDesC& AccessPointId() const; |
|
61 |
|
62 void ExternalizeL(RWriteStream& aStream); |
|
63 void InternalizeL(RReadStream& aStream); |
|
64 |
|
65 protected: |
|
66 CCatalogsAccessPointMap(); |
|
67 void ConstructL( |
|
68 const TDesC& aNameSpace, |
|
69 const CCatalogsAccessPointManager::TAction& aAction, |
|
70 const TDesC& aAccessPointId); |
|
71 void ConstructL( |
|
72 const TDesC& aNameSpace, |
|
73 const TDesC& aCatalogId, |
|
74 const CCatalogsAccessPointManager::TAction& aAction, |
|
75 const TDesC& aAccessPointId); |
|
76 |
|
77 private: |
|
78 HBufC* iNameSpace; |
|
79 TBool iHasCatalogId; |
|
80 HBufC* iCatalogId; |
|
81 CCatalogsAccessPointManager::TAction iAction; |
|
82 HBufC* iAccessPointId; |
|
83 }; |