omasuplasnconverterstubimpl/inc/asnimplementationbase.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:01:22 +0200
changeset 3 f935d51494d1
parent 0 0ce1b5ce9557
permissions -rw-r--r--
Revision: 201005 Kit: 201005

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Asn ImplementationBase
*
*/


#ifndef ASNIMPLEMENTATIONBASE_H_
#define ASNIMPLEMENTATIONBASE_H_

#include <e32base.h>
#include <e32def.h> 
#include <e32cmn.h> 
#include "epos_comasuplasnbase.h"
#include "epos_comasuplasnmessagebase.h"


class COMASuplAsnMessageBase;
class COMASuplAsnHandlerBase;
class CStubSuplStart;
class CStubSuplResponse;
class CStubSuplPosInit;
class CStubSuplPos;
class CStubSuplInit;
class CStubSuplEnd;
class CStubSuplAuthRequest;
class CStubSuplAuthResponse;

class CAsnImplementationBase : public COMASuplAsnHandlerBase
    {

public: 
    /**
     * Instanitates an object..
     */
    IMPORT_C static CAsnImplementationBase* NewL();
        
  virtual HBufC8* EncodeL(COMASuplAsnMessageBase*, TInt& aErrorCode);
  
  virtual COMASuplAsnMessageBase* DecodeL(const TPtrC8& aPacket,TInt& aErrorCode,TInt& aUnConsumedBytes );
  
  virtual COMASuplAsnMessageBase* CreateOMASuplMessageL(COMASuplAsnMessageBase::TSuplMessageType aOMASuplMessageType);

	
  virtual TOMASuplVersion GetSuplMessageVersionL(TInt& aErrorCode,
                const TPtrC8& aSuplAsnMessage);
    /**
     * Destructor
     */
 IMPORT_C ~CAsnImplementationBase();

protected:   
    /**
     * Constructor
     */
    CAsnImplementationBase();
    /**
     * Two phase construction
     */
    void ConstructL(); 

    
private:

    /**
     *  By default, prohibit copy constructor
     */
         
    CAsnImplementationBase( const CAsnImplementationBase& );
    
    /**
     *  By default, Prohibit assigment operator
     */

    CAsnImplementationBase& operator= ( const CAsnImplementationBase& );
    
    
    };

#endif /* ASNIMPLEMENTATIONBASE_H_ */