natplugins/natpdevmgmtnatfwadapter/tsrc/UT_CNSmlDmNATFWTraversalAdapter/stubs/inc/SmlDmCallback_stub.h
changeset 0 1bce908db942
child 10 267e1b1adf0c
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef SmlDmCallback_stub_H
       
    21 #define SmlDmCallback_stub_H
       
    22 
       
    23 #include <smldmadapter.h>
       
    24 
       
    25 // CONSTANTS
       
    26 //const ?type ?constant_var = ?constant;
       
    27 
       
    28 // MACROS
       
    29 //#define ?macro ?macro_def
       
    30 
       
    31 // DATA TYPES
       
    32 //enum ?declaration
       
    33 //typedef ?declaration
       
    34 //extern ?data_type;
       
    35 
       
    36 // FUNCTION PROTOTYPES
       
    37 //?type ?function_name(?arg_list);
       
    38 
       
    39 // FORWARD DECLARATIONS
       
    40 //class ?FORWARD_CLASSNAME;
       
    41 
       
    42 // CLASS DECLARATION
       
    43 
       
    44 /**
       
    45 *  ?one_line_short_description.
       
    46 *  ?other_description_lines
       
    47 *
       
    48 *  @lib ?library
       
    49 *  @since Series ?XX ?SeriesXX_version
       
    50 */
       
    51 class CSmlDmCallback_stub : public MSmlDmCallback
       
    52     {
       
    53     public:
       
    54     
       
    55         static CSmlDmCallback_stub* NewL();
       
    56         
       
    57         /**
       
    58         * ?member_description.
       
    59         * @since Series ?XX ?SeriesXX_version
       
    60         */
       
    61         virtual ~CSmlDmCallback_stub();
       
    62 
       
    63         void SetResultsL(TInt aResultsRef, CBufBase& aObject,
       
    64                                   const TDesC8& aType);
       
    65         
       
    66         void SetResultsL(TInt aResultsRef, RReadStream*& aStream,
       
    67                                   const TDesC8& aType);
       
    68 
       
    69         void SetStatusL(TInt aStatusRef,
       
    70                                  MSmlDmAdapter::TError aErrorCode);
       
    71 
       
    72         void SetMappingL(const TDesC8& aURI, const TDesC8& aLUID);
       
    73 
       
    74         void FetchLinkL(const TDesC8& aURI, CBufBase& aData,
       
    75                                  MSmlDmAdapter::TError& aStatus);
       
    76 
       
    77         HBufC8* GetLuidAllocL(const TDesC8& aURI);
       
    78         
       
    79     private:
       
    80     
       
    81         /**
       
    82         * ?member_description.
       
    83         * @since Series ?XX ?SeriesXX_version
       
    84         */
       
    85         CSmlDmCallback_stub();    
       
    86         
       
    87         void ConstructL();
       
    88         
       
    89     public:
       
    90     
       
    91         MSmlDmAdapter::TError iStatus;
       
    92         HBufC8* iLUID;
       
    93         HBufC8* iLUID2;
       
    94         TBuf8<255> iResult;
       
    95 
       
    96     };
       
    97 
       
    98 #endif      // SmlDmCallback_stub_H
       
    99 
       
   100 // End of File