ncdengine/engine/accesspointmanager/inc/catalogsaccesspointmap.h
changeset 0 ba25891c3a9e
child 24 84a16765cd86
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ncdengine/engine/accesspointmanager/inc/catalogsaccesspointmap.h	Thu Dec 17 08:51:10 2009 +0200
@@ -0,0 +1,83 @@
+/*
+* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:   Class CCatalogsAccessPointMap declation
+*
+*/
+
+
+#include <e32base.h>
+#include "catalogsaccesspointmanagerimpl.h"
+
+class CCatalogsAccessPointMap : public CBase
+{
+public:
+    static CCatalogsAccessPointMap* NewL(RReadStream& aStream);
+
+    static CCatalogsAccessPointMap* NewL(
+        const TDesC& aNameSpace,
+        const CCatalogsAccessPointManager::TAction& aAction,
+        const TDesC& aAccessPointId);
+
+    static CCatalogsAccessPointMap* NewL(
+        const TDesC& aNameSpace,
+        const TDesC& aCatalogId,
+        const CCatalogsAccessPointManager::TAction& aAction,
+        const TDesC& aAccessPointId);
+
+    static CCatalogsAccessPointMap* NewLC(RReadStream& aStream);
+
+    static CCatalogsAccessPointMap* NewLC(
+        const TDesC& aNameSpace,
+        const CCatalogsAccessPointManager::TAction& aAction,
+        const TDesC& aAccessPointId);
+
+    static CCatalogsAccessPointMap* NewLC(
+        const TDesC& aNameSpace,
+        const TDesC& aCatalogId,
+        const CCatalogsAccessPointManager::TAction& aAction,
+        const TDesC& aAccessPointId);
+               
+    ~CCatalogsAccessPointMap();
+        
+    const TDesC& NameSpace() const;
+
+    TBool HasCatalogId() const;
+    const TDesC& CatalogId() const;
+
+    CCatalogsAccessPointManager::TAction Action() const;
+
+    const TDesC& AccessPointId() const;
+    
+    void ExternalizeL(RWriteStream& aStream);
+    void InternalizeL(RReadStream& aStream);
+    
+protected:
+    CCatalogsAccessPointMap();
+    void ConstructL(
+        const TDesC& aNameSpace,
+        const CCatalogsAccessPointManager::TAction& aAction,
+        const TDesC& aAccessPointId);
+    void ConstructL(
+        const TDesC& aNameSpace,
+        const TDesC& aCatalogId,
+        const CCatalogsAccessPointManager::TAction& aAction,
+        const TDesC& aAccessPointId);
+
+private:
+    HBufC* iNameSpace;
+    TBool iHasCatalogId;
+    HBufC* iCatalogId;
+    CCatalogsAccessPointManager::TAction iAction;
+    HBufC* iAccessPointId;
+};