omasuplasnconverterstubimpl/inc/asnimplementationbase.h
changeset 0 0ce1b5ce9557
equal deleted inserted replaced
-1:000000000000 0:0ce1b5ce9557
       
     1 /*
       
     2 * Copyright (c) 2009 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: Asn ImplementationBase
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ASNIMPLEMENTATIONBASE_H_
       
    20 #define ASNIMPLEMENTATIONBASE_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <e32def.h> 
       
    24 #include <e32cmn.h> 
       
    25 #include "epos_comasuplasnbase.h"
       
    26 #include "epos_comasuplasnmessagebase.h"
       
    27 
       
    28 
       
    29 class COMASuplAsnMessageBase;
       
    30 class COMASuplAsnHandlerBase;
       
    31 class CStubSuplStart;
       
    32 class CStubSuplResponse;
       
    33 class CStubSuplPosInit;
       
    34 class CStubSuplPos;
       
    35 class CStubSuplInit;
       
    36 class CStubSuplEnd;
       
    37 class CStubSuplAuthRequest;
       
    38 class CStubSuplAuthResponse;
       
    39 
       
    40 class CAsnImplementationBase : public COMASuplAsnHandlerBase
       
    41     {
       
    42 
       
    43 public: 
       
    44     /**
       
    45      * Instanitates an object..
       
    46      */
       
    47     IMPORT_C static CAsnImplementationBase* NewL();
       
    48         
       
    49   virtual HBufC8* EncodeL(COMASuplAsnMessageBase*, TInt& aErrorCode);
       
    50   
       
    51   virtual COMASuplAsnMessageBase* DecodeL(const TPtrC8& aPacket,TInt& aErrorCode,TInt& aUnConsumedBytes );
       
    52   
       
    53   virtual COMASuplAsnMessageBase* CreateOMASuplMessageL(COMASuplAsnMessageBase::TSuplMessageType aOMASuplMessageType);
       
    54 
       
    55 	
       
    56   virtual TOMASuplVersion GetSuplMessageVersionL(TInt& aErrorCode,
       
    57                 const TPtrC8& aSuplAsnMessage);
       
    58     /**
       
    59      * Destructor
       
    60      */
       
    61  IMPORT_C ~CAsnImplementationBase();
       
    62 
       
    63 protected:   
       
    64     /**
       
    65      * Constructor
       
    66      */
       
    67     CAsnImplementationBase();
       
    68     /**
       
    69      * Two phase construction
       
    70      */
       
    71     void ConstructL(); 
       
    72 
       
    73     
       
    74 private:
       
    75 
       
    76     /**
       
    77      *  By default, prohibit copy constructor
       
    78      */
       
    79          
       
    80     CAsnImplementationBase( const CAsnImplementationBase& );
       
    81     
       
    82     /**
       
    83      *  By default, Prohibit assigment operator
       
    84      */
       
    85 
       
    86     CAsnImplementationBase& operator= ( const CAsnImplementationBase& );
       
    87     
       
    88     
       
    89     };
       
    90 
       
    91 #endif /* ASNIMPLEMENTATIONBASE_H_ */