messagingfw/biomsgfw/BIOSINC/BIOSMTM.H
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/messagingfw/biomsgfw/BIOSINC/BIOSMTM.H	Wed Nov 03 22:41:46 2010 +0530
@@ -0,0 +1,83 @@
+// Copyright (c) 1998-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(__BIOSMTM_H__)
+#define __BIOSMTM_H__
+#if !defined(__MTSR_H__)
+#include <mtsr.h>
+#endif
+#if !defined(__MSVENTRY_H__)
+#include <msventry.h>
+#endif
+#if !defined(__BIOSCMDS_H__)
+#include <bioscmds.h>
+#endif
+
+
+
+// package buffer for progress info.
+typedef TPckgBuf<TBioProgress> TBioProgressBuf;
+
+//
+
+enum TBioServerState { EBiosWaiting, EBiosCreating, EBiosParsing, EBiosProcessing, EBiosComplete };
+enum TBioOperation { EBioParseOnly, EBioParseAndProcess, EBioProcess };
+
+//
+
+//class CConfigEngine;
+
+//forward declarations
+class CBaseScriptParser;
+class CRegisteredParserDll;
+class CBIODatabase;
+class CBIOServerMtm : public CBaseServerMtm
+/**
+@internalTechnology
+@released
+*/
+	{
+public:
+	IMPORT_C static CBIOServerMtm* NewL(CRegisteredMtmDll& aRegisteredMtmDll, CMsvServerEntry* aEntry);
+	~CBIOServerMtm();
+
+	void CopyToLocalL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
+	void CopyFromLocalL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
+	void CopyWithinServiceL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
+	void DeleteAllL(const CMsvEntrySelection& aSelection, TRequestStatus& aStatus);
+	void CreateL(TMsvEntry aNewEntry, TRequestStatus& aStatus);
+	void ChangeL(TMsvEntry aNewEntry, TRequestStatus& aStatus);
+	void MoveToLocalL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
+	void MoveFromLocalL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
+	void MoveWithinServiceL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
+	//
+	void StartCommandL(CMsvEntrySelection& aSelection, TInt aCommand, const TDesC8& aParameter, TRequestStatus& aStatus);
+	//
+	TBool CommandExpected();
+	//
+	const TDesC8& Progress();
+
+protected:
+	void DoCancel();
+	void DoRunL();
+	void DoComplete(TInt aError);
+
+private:
+	CBIOServerMtm(CRegisteredMtmDll& aRegisteredMtmDll, CMsvServerEntry* aEntry);
+	void ConstructL();
+
+	};
+
+#endif