diff -r 000000000000 -r dfb7c4ff071f commsfwtools/preparedefaultcommsdatabase/Tools/ced/inc/CXMLFile.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/commsfwtools/preparedefaultcommsdatabase/Tools/ced/inc/CXMLFile.h Thu Dec 17 09:22:25 2009 +0200 @@ -0,0 +1,56 @@ +// Copyright (c) 1997-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: +// + +#if !defined(__CXMLFILE_H__) +#define __CXMLFILE_H__ + +#include +#include "dbdef.h" +#include "CXMLContentHandler.h" + + +class CXMLDatabase; + +NONSHARABLE_CLASS(CXMLData) : public CBase +/** +@internalComponent +*/ + { + public: + // Constructor, pass in name of XML file to open, relative to RAM root + static CXMLData* NewL(RFs& aFs, const TDesC& aName, CXMLDatabase* aXmlDb, + TBool aForceXMLProcessing, + TBool aAppendMode); + virtual ~CXMLData(); + TInt GetSetting(const TInt aEntryIndex, const TDesC & aParamName, TPtrC & aParamValue); + TInt GetStartingIndex(const TDesC& aTableName); + TInt GetLastIndex(const TDesC& aTableName); + TInt GetEntryNumberParameters(const TInt aEntryIndex); + const TBuf& GetOperation(const TInt aEntryIndex); + TInt GetElementRecordID(const TInt aEntryIndex) const; + + protected: + CXMLData(CXMLDatabase*, TBool, TBool); + + private: + TBool ConstructL(RFs& aFs, const TDesC& aName, CXMLDatabase* aXmlDb); + + private: + CXMLDatabase* xmlDb; + TBool bForceXMLProcessing; + TBool iAppendMode; + }; + +#endif