1 // Copyright (c) 1999-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Header file for the Generic File parser
18 #if !defined (__GFP_H__)
23 class CMsvGenericFileParser : public CBaseScriptParser2
30 IMPORT_C static CMsvGenericFileParser* NewL(CRegisteredParserDll& aRegisteredParserDll, CMsvEntry& aEntry, RFs& aFs);
32 ~CMsvGenericFileParser();
34 void ParseL(TRequestStatus& aStatus, const TDesC& aSms);
35 void ProcessL(TRequestStatus& aStatus);
44 //EUnfoldMessage, // Don't have to unfold the message, just save it
45 EParseMessage, // Parsing
46 ECompleteMessage // Completing ..
49 CMsvGenericFileParser(CRegisteredParserDll& aRegisteredParserDll, CMsvEntry& aEntry, RFs& aFs);
52 void ChangeStateL(TParseSession aState); // Advance state machine to next state
54 void CompleteMessageL();
55 void GetResourceFileL(TFileName& aFileName);
57 void RequestComplete(TRequestStatus& aStatus, TInt aError);
59 TInt iState; // Current session state
60 TBuf<256> iDescriptionText; // Holds on to the description text.
62 TRequestStatus* iReport;
63 TInt iCompleted; // Stores completion code from previous session state