vpnengine/dmadpki/inc/dmadddf.h
changeset 0 33413c0669b9
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2002-2008 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 CDmAdDdf
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __DMADDDF_H__
       
    21 #define __DMADDDF_H__
       
    22 
       
    23 #include <smldmadapter.h>
       
    24 #include "dmadddfapi.h"
       
    25 #include "dmadcallback.h"
       
    26 #include "DmAdStore.h"
       
    27 #include "dmadddf_lits.h"
       
    28 //------------------------------------------------------------------------------------------------
       
    29 // CDmAdDdf 
       
    30 //------------------------------------------------------------------------------------------------
       
    31 class CDmAdDdf : public CBase, public MDmAdDdfApi
       
    32     {
       
    33 public:
       
    34     static CDmAdDdf* NewL(MDmAdCallBack* aDmAdCallBack, CDmAdStore* aStore);
       
    35     static CDmAdDdf* NewLC(MDmAdCallBack* aDmAdCallBack, CDmAdStore* aStore);
       
    36     ~CDmAdDdf();
       
    37 
       
    38     void BuildDDFVersionL(CBufBase& aDDFVersion);
       
    39     void BuildDDFStructureL(MSmlDmDDFObject& aDDF);
       
    40     
       
    41     void NotRtNodeAddNodeObjectL(const TDesC8& aUri, const TDesC8& aParentLuid, TInt aStatusRef);
       
    42     void NotRtNodeUpdateLeafObjectL(const TDesC8& aUri, const TDesC8& aLuid, const TDesC8& aObject, const TDesC8& aType, TInt aStatusRef);
       
    43     TInt NotRtNodeFetchLeafObjectLC(const TDesC8& aUri, const TDesC8& /*aLuid*/, const TDesC8& /*aType*/, CBufBase*& aObject); 
       
    44     void NotRtNodeDeleteObjectL(const TDesC8& aUri, const TDesC8& aLuid, TInt aStatusRef);
       
    45     
       
    46     TBool IsNodeRtNodeL(const TDesC8& aUri);
       
    47     TBool IsLeafUnderRtNodeL(const TDesC8& aUri);
       
    48     TPtrC8 RtNodeUriForLeafL(const TDesC8& aLeafUri);
       
    49     TBool IsTopLevelRtNode(const TDesC8& aUri);
       
    50     HBufC8* ParentRtNodeUriForRtNodeLC(const TDesC8& aUri);
       
    51     void BuildChildUriListLC(const TDesC8& aUri, const TDesC8& aParentLuid, const CArrayFix<TSmlDmMappingInfo>& aPreviousUriSegmentList, CBufBase*& aCurrentList);
       
    52     
       
    53 private:
       
    54     CDmAdDdf(MDmAdCallBack* aDmAdCallBack, CDmAdStore* aStore);
       
    55 
       
    56 private:
       
    57     MDmAdCallBack*          iCallBack;
       
    58     CDmAdStore*             iStore;
       
    59     };
       
    60 
       
    61 #endif