vpnengine/dmadipsecvpn/inc/DmAdStore.h
changeset 0 33413c0669b9
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2002 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 definition of CDmAdStore.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __DMADSTORE_H__
       
    21 #define __DMADSTORE_H__
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "dmadstoreapi.h"
       
    26 #include "DmAdRtNode.h"
       
    27 
       
    28 #include "dmadstorevpnap.h"
       
    29 #include "vpnapi.h"
       
    30 
       
    31 #include "eventlogger.h"
       
    32 
       
    33 //------------------------------------------------------------------------------------------------
       
    34 // CDmAdStore
       
    35 //------------------------------------------------------------------------------------------------
       
    36 class CDmAdStore : public CBase, public MDmAdStoreApi
       
    37     {
       
    38 public:
       
    39     static CDmAdStore* NewL(void);
       
    40     ~CDmAdStore();
       
    41     TBool FindRtNodeL(const TDesC8& aLuid, const TDesC8& aUri);
       
    42     void LuidListL(const TDesC8& aUri, const TDesC8& aLuid, RPointerArray<HBufC8>& aLuidList);
       
    43     void FetchRtNodeL(CDmAdRtNode& aRtNode);
       
    44     void SaveTopLevelRtNodeL(CDmAdRtNode& aRtNode, CArrayPtr<CDmAdRtNode>& aChildRtNodes);
       
    45     void SaveChildLevelRtNodeL(CDmAdRtNode& aRtNode);
       
    46     void DeleteRtNodeL(const TDesC8& aLuid, const TDesC8& aUri);
       
    47 
       
    48 private:
       
    49     void ConstructL(void);
       
    50     CDmAdStore();
       
    51 
       
    52     TBool VpnApFindRtNodeL(const TDesC8& aLuid, const TDesC8& aUri);
       
    53     void VpnApLuidListL(RPointerArray<HBufC8>& aLuidList);
       
    54     void VpnApFetchRtNodeL(CDmAdRtNode& aRtNode);
       
    55     void VpnApSaveTopLevelRtNodeL(CDmAdRtNode& aRtNode, CArrayPtr<CDmAdRtNode>& aChildRtNodes);
       
    56     void VpnApDeleteRtNodeL(const TDesC8& aLuid);
       
    57     
       
    58     TPtrC8 PolicyRefToLuid(const TDesC& aPolicyRef);
       
    59     TPtrC LuidToPolicyRef(const TDesC8& aLuid);
       
    60     TBool PolicyFindRtNodeL(const TDesC8& aLuid, const TDesC8& aUri);
       
    61     void PolicyLuidListL(RPointerArray<HBufC8>& aLuidList);
       
    62     void PolicyFetchRtNodeL(CDmAdRtNode& aRtNode);
       
    63     void PolicySaveTopLevelRtNodeL(CDmAdRtNode& aRtNode, CArrayPtr<CDmAdRtNode>& aChildRtNodes);
       
    64     void PolicyDeleteRtNodeL(const TDesC8& aLuid);
       
    65     
       
    66 private:
       
    67     CVpnAp*         iVpnAp;
       
    68     RVpnServ        iVpnApi;
       
    69         
       
    70     DEFINE_EVENT_LOGGER
       
    71     };
       
    72 
       
    73 #endif