diff -r 2eacb6118286 -r ba76fc04e6c2 phoneengine/phonemodel/inc/cpeparsermanufacturerhandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneengine/phonemodel/inc/cpeparsermanufacturerhandler.h Fri Jun 04 10:19:18 2010 +0100 @@ -0,0 +1,117 @@ +/* +* Copyright (c) 2006 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: This file contains the header file of the +* CPEParserManufacturerHandler object +* +*/ + + +#ifndef CPEPARSERMANUFACTURERHANDLER_H +#define CPEPARSERMANUFACTURERHANDLER_H + +//INCLUDES +#include +#include + +// CONSTANTS +enum + { + EPhoneCmdDebugPrint, + EPhoneCmdHeapFailure + }; + +// MACROS +// None. + +// DATA TYPES +// None. + +// FUNCTION PROTOTYPES +// None. + +// FORWARD DECLARATIONS +class MPEPhoneModelInternal; +class MPECallHandling; + +// CLASS DECLARATION + +/** +* Provides processing for manufacturer specific Phone Parser requests +* +* @lib phoneengine.lib +* @since Series60_4.0 +*/ +NONSHARABLE_CLASS( CPEParserManufacturerHandler ) : public CPhoneGsmManufacturerHandler + { + public: //Constructors and descructor + /** + * C++ default constructor. + */ + CPEParserManufacturerHandler( MPEPhoneModelInternal& aModel, + MPECallHandling& aCallHandling, + RFs& aFsSession ); + + /** + * Destructor. + */ + virtual ~CPEParserManufacturerHandler(); + + public: // Functions from base classes + + /** + * Process manufacturer specific command. + * @param aCommand command to be performed. + */ + void ProcessCommandL( TUint aCommand ); + + /** + * Process debug code. + * @param aCode code to be processed. + */ + void ProcessDebugL( const TDesC& aCode ); + + private: + + /** + * Gets phone model and sw version + * @param aSwVersion sw version + * return Error Code + */ + TInt GetSwVersionAndPhoneModelL( TDes& aSwVersion ); + + /** + * Add phone model to sw version + * @param aSwVersion sw version + */ + void AppendPhoneModelL( TDes& aSwVersion ); + + /** + * Remove needless line from string + * @param aSwVersion sw version + */ + void RemoveLinesAfterThreeLines( TDes& aSwVersion ); + + private: + //MPEPhoneModelInternal is used to send message to the phone application + MPEPhoneModelInternal& iModel; + // CPEPhoneData is used to create request to the CallHandling subsystem. + MPECallHandling& iCallHandling; + // Handle to a file server session + RFs& iFsSession; + + }; + +#endif // CPEPARSERMANUFACTURERHANDLER_H + +// End of File