diff -r 000000000000 -r d0791faffa3f backupandrestore/backupengine/inc/sbeparserproxy.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/backupandrestore/backupengine/inc/sbeparserproxy.h Tue Feb 02 01:11:40 2010 +0200 @@ -0,0 +1,81 @@ +/** +* Copyright (c) 2006-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: +* Declaration of CSBEParserProxy +* +* +*/ + + + +/** + @file +*/ +#ifndef SBEPARSERPROXY_H +#define SBEPARSERPROXY_H + +// System +#include +#include // MContentHandler mix in class +#include + +// Classes referenced +class CCnvCharacterSetConverter; + +using namespace Xml; + +namespace conn + { + /** Class used as a proxy to redirect CParser calls to the relevant data owner + + @internalTechnology + */ + class CSBEParserProxy : public CBase, public MContentHandler + { + public: + static CSBEParserProxy* NewL( RFs& aFsSession ); + ~CSBEParserProxy(); + // API + void ParseL( const TDesC& aFileName, MContentHandler& aObserver ); + TInt ConvertToUnicodeL( TDes16& aUnicode, const TDesC8& aForeign ); + + private: // Constructors + CSBEParserProxy( RFs& aFsSession ); + void ConstructL(); + + // From MContentHandler + void OnStartDocumentL(const RDocumentParameters& aDocParam, TInt aErrorCode); + void OnEndDocumentL(TInt aErrorCode); + void OnStartElementL(const RTagInfo& aElement, const RAttributeArray& aAttributes, TInt aErrorCode); + void OnEndElementL(const RTagInfo& aElement, TInt aErrorCode); + void OnContentL(const TDesC8& aBytes, TInt aErrorCode); + void OnStartPrefixMappingL(const RString& aPrefix, const RString& aUri, TInt aErrorCode); + void OnEndPrefixMappingL(const RString& aPrefix, TInt aErrorCode); + void OnIgnorableWhiteSpaceL(const TDesC8& aBytes, TInt aErrorCode); + void OnSkippedEntityL(const RString& aName, TInt aErrorCode); + void OnProcessingInstructionL(const TDesC8& aTarget, const TDesC8& aData, TInt aErrorCode); + void OnError(TInt aErrorCode); + TAny* GetExtendedInterface(const TInt32 aUid); + + private: // Internal + RFs& iFsSession; /*