messagingfw/biomsgfw/BIOSINC/BIOSMTM.H
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #if !defined(__BIOSMTM_H__)
       
    17 #define __BIOSMTM_H__
       
    18 #if !defined(__MTSR_H__)
       
    19 #include <mtsr.h>
       
    20 #endif
       
    21 #if !defined(__MSVENTRY_H__)
       
    22 #include <msventry.h>
       
    23 #endif
       
    24 #if !defined(__BIOSCMDS_H__)
       
    25 #include <bioscmds.h>
       
    26 #endif
       
    27 
       
    28 
       
    29 
       
    30 // package buffer for progress info.
       
    31 typedef TPckgBuf<TBioProgress> TBioProgressBuf;
       
    32 
       
    33 //
       
    34 
       
    35 enum TBioServerState { EBiosWaiting, EBiosCreating, EBiosParsing, EBiosProcessing, EBiosComplete };
       
    36 enum TBioOperation { EBioParseOnly, EBioParseAndProcess, EBioProcess };
       
    37 
       
    38 //
       
    39 
       
    40 //class CConfigEngine;
       
    41 
       
    42 //forward declarations
       
    43 class CBaseScriptParser;
       
    44 class CRegisteredParserDll;
       
    45 class CBIODatabase;
       
    46 class CBIOServerMtm : public CBaseServerMtm
       
    47 /**
       
    48 @internalTechnology
       
    49 @released
       
    50 */
       
    51 	{
       
    52 public:
       
    53 	IMPORT_C static CBIOServerMtm* NewL(CRegisteredMtmDll& aRegisteredMtmDll, CMsvServerEntry* aEntry);
       
    54 	~CBIOServerMtm();
       
    55 
       
    56 	void CopyToLocalL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
       
    57 	void CopyFromLocalL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
       
    58 	void CopyWithinServiceL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
       
    59 	void DeleteAllL(const CMsvEntrySelection& aSelection, TRequestStatus& aStatus);
       
    60 	void CreateL(TMsvEntry aNewEntry, TRequestStatus& aStatus);
       
    61 	void ChangeL(TMsvEntry aNewEntry, TRequestStatus& aStatus);
       
    62 	void MoveToLocalL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
       
    63 	void MoveFromLocalL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
       
    64 	void MoveWithinServiceL(const CMsvEntrySelection& aSelection,TMsvId aDestination, TRequestStatus& aStatus);
       
    65 	//
       
    66 	void StartCommandL(CMsvEntrySelection& aSelection, TInt aCommand, const TDesC8& aParameter, TRequestStatus& aStatus);
       
    67 	//
       
    68 	TBool CommandExpected();
       
    69 	//
       
    70 	const TDesC8& Progress();
       
    71 
       
    72 protected:
       
    73 	void DoCancel();
       
    74 	void DoRunL();
       
    75 	void DoComplete(TInt aError);
       
    76 
       
    77 private:
       
    78 	CBIOServerMtm(CRegisteredMtmDll& aRegisteredMtmDll, CMsvServerEntry* aEntry);
       
    79 	void ConstructL();
       
    80 
       
    81 	};
       
    82 
       
    83 #endif