epoc32/include/gfp.h
branchSymbian2
changeset 2 2fe1408b6811
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/epoc32/include/gfp.h	Tue Mar 16 16:12:26 2010 +0000
@@ -0,0 +1,68 @@
+// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// 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
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// Header file for the Generic File parser
+// 
+//
+
+#if !defined (__GFP_H__)
+#define __GFP_H__
+
+#include <bsp.h>
+
+class CMsvGenericFileParser : public CBaseScriptParser2
+/**
+@internalComponent
+@released
+*/
+    {
+public:
+    IMPORT_C static CMsvGenericFileParser* NewL(CRegisteredParserDll& aRegisteredParserDll, CMsvEntry& aEntry, RFs& aFs);
+
+    ~CMsvGenericFileParser();
+
+    void ParseL(TRequestStatus& aStatus, const TDesC& aSms);
+    void ProcessL(TRequestStatus& aStatus);
+
+private:
+    void DoCancel();
+    void RunL();
+
+private:
+    enum TParseSession
+        { 
+        //EUnfoldMessage,     //  Don't have to unfold the message, just save it
+        EParseMessage,      //  Parsing 
+        ECompleteMessage    //  Completing ..
+        };
+
+    CMsvGenericFileParser(CRegisteredParserDll& aRegisteredParserDll, CMsvEntry& aEntry, RFs& aFs);
+    void ConstructL();
+
+    void ChangeStateL(TParseSession aState);    // Advance state machine to next state
+    void ParseMessageL();
+    void CompleteMessageL();
+	void GetResourceFileL(TFileName& aFileName);
+
+    void RequestComplete(TRequestStatus& aStatus, TInt aError);
+
+    TInt            iState;                 // Current session state
+	TBuf<256>		iDescriptionText;		// Holds on to the description text.
+
+    TRequestStatus* iReport;
+    TInt            iCompleted;             // Stores completion code from previous session state
+	TInt32			iBioType;
+    };
+
+
+#endif // __GFP_H__