syncmlfw/common/xml/inc/wbxml2xmlconverter.h
changeset 0 b497e44ab2fc
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2002 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:  wbxml to xml converter
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __WBXML2XMLCONVERTER_H__
       
    20 #define __WBXML2XMLCONVERTER_H__
       
    21 
       
    22 #include "WBXMLSyncMLParser.h"
       
    23 #include "WBXMLParser.h"
       
    24 #include "smlmetinfdtd.h"
       
    25 #include "XMLSyncMLGenerator.h"
       
    26 
       
    27 class CWbxml2XmlConverter : public CBase, public MWBXMLSyncMLCallbacks
       
    28 	{
       
    29 public:
       
    30 	IMPORT_C static CWbxml2XmlConverter* NewL();
       
    31 	IMPORT_C static CWbxml2XmlConverter* NewLC();
       
    32 	IMPORT_C void ConvertL( const TUint8* aPtr, TInt32 aLength ); 
       
    33 	IMPORT_C void ConvertL( RReadStream& aSource ); 
       
    34 	IMPORT_C TPtrC8 Document() const;
       
    35 	IMPORT_C ~CWbxml2XmlConverter();
       
    36 
       
    37 protected:
       
    38 	void doConvertL( RReadStream& aSource );
       
    39 	void ConstructL();
       
    40 	
       
    41 	Ret_t smlStartMessageFuncL(SmlSyncHdrPtr_t pContent);
       
    42 	Ret_t smlEndMessageFuncL(Boolean_t final);
       
    43 	Ret_t smlStartSyncFuncL(SmlSyncPtr_t pContent);
       
    44 	Ret_t smlEndSyncFuncL();
       
    45 	Ret_t smlStartAtomicFuncL(SmlAtomicPtr_t pContent);
       
    46 	Ret_t smlEndAtomicFuncL();
       
    47 	Ret_t smlStartSequenceFuncL(SmlSequencePtr_t pContent);
       
    48 	Ret_t smlEndSequenceFuncL();
       
    49 	Ret_t smlAddCmdFuncL(SmlAddPtr_t pContent);
       
    50 	Ret_t smlReplaceCmdFuncL(SmlReplacePtr_t pContent);
       
    51 	Ret_t smlAlertCmdFuncL(SmlAlertPtr_t pContent);
       
    52 	Ret_t smlDeleteCmdFuncL(SmlDeletePtr_t pContent);
       
    53 	Ret_t smlGetCmdFuncL(SmlGetPtr_t pContent);
       
    54 	Ret_t smlPutCmdFuncL(SmlPutPtr_t pContent);
       
    55 	Ret_t smlMapCmdFuncL(SmlMapPtr_t pContent);
       
    56 	Ret_t smlResultsCmdFuncL(SmlResultsPtr_t pContent);
       
    57 	Ret_t smlStatusCmdFuncL(SmlStatusPtr_t pContent);
       
    58 	Ret_t smlCopyCmdFuncL(SmlCopyPtr_t pContent);
       
    59 	Ret_t smlMoveCmdFuncL(SmlMovePtr_t pContent);	//1.2 CHANGES: Move command
       
    60 	Ret_t smlExecCmdFuncL(SmlExecPtr_t pContent);
       
    61 	Ret_t smlSearchCmdFuncL(SmlSearchPtr_t pContent);
       
    62 
       
    63 private:
       
    64 	CXMLSyncMLGenerator* iGenerator;
       
    65 	};
       
    66 
       
    67 #endif
       
    68 
       
    69 
       
    70 
       
    71 
       
    72