diff -r 2580314736af -r 2669f8761a99 xdmprotocols/LocalProtocol/LocalOperations/inc/LocalOperationFactory.h --- a/xdmprotocols/LocalProtocol/LocalOperations/inc/LocalOperationFactory.h Thu Aug 19 10:19:02 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,120 +0,0 @@ -/* -* Copyright (c) 2005 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: CLocalOperationFactory -* -*/ - - - - -#ifndef __LOCALOPERATIONFACTORY__ -#define __LOCALOPERATIONFACTORY__ - -#include -#include "XdmOperationFactory.h" - -_LIT( KLocalOpLogFile, "LocalOperations" ); -const TInt KLocalProtLogBufferMaxSize = 2000; - -//FORWARD DECLARATION -class CXdmDocument; -class MXdmOperation; -class CXdmLogWriter; -class CXdmDocumentNode; - -//CLASS DECLARATION -NONSHARABLE_CLASS( CLocalOperationFactory ) : public CXdmOperationFactory - { - public: - - /** - * Two-phased constructor. - * @param CXdmProtocolInfo Protocol info - * @return CXdmProtocol - */ - static CLocalOperationFactory* NewL(); - - /** - * Destructor. A simple wrapper to the C++ destructor. - * - */ - virtual ~CLocalOperationFactory(); - - private: //From CXdmoperationFactory - - /** - * Return an operation object that knows how to manipulate - * whole documents - */ - MXdmOperation* FetchL( CXdmDocument& aTargetDocument, - CXdmDocumentNode* aTargetNode = NULL ) const; - - /** - * Return an operation object that knows how to manipulate - * partial document - */ - MXdmOperation* InsertL( CXdmDocument& aTargetDocument, - CXdmDocumentNode* aTargetNode ) const; - - /** - * Return an operation object that knows how to manipulate - * partial document - */ - MXdmOperation* ReplaceL( CXdmDocument& aOldDocument, - CXdmDocumentNode* aNewNode, - CXdmDocumentNode* aOldNode ) const; - - /** - * Return an operation object that knows how to manipulate - * partial document - */ - MXdmOperation* AppendL( CXdmDocument& aTargetDocument, - CXdmDocumentNode* aTargetNode ) const; - - /** - * Return an operation object that knows how to manipulate - * partial document - */ - MXdmOperation* DeletionL( CXdmDocument& aTargetDocument, - CXdmDocumentNode* aTargetNode ) const; - - public: - - /** - * Logging function - * @param TRefByValue aFmt,... - * @return void - */ - void WriteToLog( TRefByValue aFmt,... ); - - private: - - /** - * C++ constructor - * @return CImpsTcpCirWatcher - */ - void ConstructL(); - - /** - * C++ constructor - * @return CImpsTcpCirWatcher - */ - CLocalOperationFactory(); - - private: //Data - - CXdmLogWriter* iLogWriter; - }; - -#endif