williamr@4: // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@4: // All rights reserved. williamr@4: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@4: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@4: // williamr@4: // Initial Contributors: williamr@4: // Nokia Corporation - initial contribution. williamr@4: // williamr@4: // Contributors: williamr@4: // williamr@4: // Description: williamr@4: // williamr@4: williamr@4: #if !defined(__E32BASE_H__) williamr@4: #include williamr@4: #endif williamr@4: #if !defined (__BIOSCMDS_H__) williamr@4: #define __BIOSCMDS_H__ williamr@4: williamr@4: #if !defined (__MSVSTD_HRH__) williamr@4: #include williamr@4: #endif williamr@4: williamr@4: /** BIO message MTM commands for CBIOClientMtm::InvokeAsyncFunctionL(). williamr@4: williamr@4: The behaviour resulting from the command is specific to the BIO message type. williamr@4: Typically, parsing causes an interpretation of the raw message body, and storage williamr@4: of the results. Processing causes some system action to take place according williamr@4: to the instructions in the message. */ williamr@4: enum TBiosCmds { williamr@4: /** Parse the BIO message. */ williamr@4: KBiosMtmParse = KMtmFirstFreeMtmFunctionId, williamr@4: /** Parse then process the BIO message. */ williamr@4: KBiosMtmParseThenProcess, williamr@4: /** Process the BIO message. */ williamr@4: KBiosMtmProcess williamr@4: }; williamr@4: williamr@4: // williamr@4: // progress class (just report a state and an error code) williamr@4: // williamr@4: class TBioProgress williamr@4: /** Progress information for BIO server MTM. williamr@4: williamr@4: Progress information can be requested using CMsvOperation::ProgressL(). williamr@4: @publishedPartner williamr@4: @released williamr@4: */ williamr@4: { williamr@4: public: williamr@4: /** BIO server MTM state. */ williamr@4: enum TBioState williamr@4: { williamr@4: /** Waiting for a command. */ williamr@4: EBiosWaiting, williamr@4: /** Creating a parser. */ williamr@4: EBiosCreating, williamr@4: /** Parsing a message. */ williamr@4: EBiosParsing, williamr@4: /** Processing a message. */ williamr@4: EBiosProcessing williamr@4: }; williamr@4: williamr@4: /** BIO server MTM state. */ williamr@4: TBioState iBioState; williamr@4: /** Error code. */ williamr@4: TInt iErrorCode; // client side needs to be informed of an error williamr@4: /** Percentage of operation done. */ williamr@4: TInt iPercentDone; williamr@4: }; williamr@4: williamr@4: #endif