vpnengine/dmadengine/inc/dmadcallbackc.h
changeset 0 33413c0669b9
equal deleted inserted replaced
-1:000000000000 0:33413c0669b9
       
     1 /*
       
     2 * Copyright (c) 2002-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:   Call back implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __DMADCALLBACKC_H__
       
    21 #define __DMADCALLBACKC_H__
       
    22 
       
    23 #include "dmadengineexportdef.h"
       
    24 #include "dmadcallback.h"
       
    25 
       
    26 //------------------------------------------------------------------------------------------------
       
    27 // CDmAdCallBack
       
    28 //------------------------------------------------------------------------------------------------
       
    29 class CDmAdCallBack : public CBase, public MDmAdCallBack
       
    30     {
       
    31 public:
       
    32     DMAD_IMPORT_C static CDmAdCallBack* NewL(MSmlDmCallback* aCallBack, const TDesC8& aSomeOwnUri);
       
    33     DMAD_IMPORT_C static CDmAdCallBack* NewLC(MSmlDmCallback* aCallBack, const TDesC8& aSomeOwnUri);
       
    34     DMAD_IMPORT_C ~CDmAdCallBack();
       
    35 
       
    36     DMAD_IMPORT_C void SetMappingL(const TDesC8& aURI, const TDesC8& aLuid);
       
    37     DMAD_IMPORT_C void SetStatusL(TInt aStatusRef, TInt aError);
       
    38     DMAD_IMPORT_C void SetResultsL(TInt aResultsRef, CBufBase& aObject, const TDesC8& aType);
       
    39     DMAD_IMPORT_C void FetchLinkL(const TDesC8& aUri, CBufBase& aData, MSmlDmAdapter::TError& aStatus);
       
    40     DMAD_IMPORT_C HBufC8* GetLuidAllocL(const TDesC8& aUri);
       
    41     DMAD_IMPORT_C HBufC8* FindChildUriL(const TDesC8& aParentUri, const TDesC8& aChildLuid); 
       
    42     
       
    43 private:
       
    44     void ConstructL(const TDesC8& aSomeOwnUri);
       
    45     CDmAdCallBack(MSmlDmCallback* aCallBack);
       
    46 private:
       
    47     MSmlDmCallback* iCallBack;
       
    48     HBufC8*         iSomeOwnUri;
       
    49    };
       
    50 
       
    51 #endif