Msrp/MsrpServer/inc/MMSRPParserObserver.h
branchMSRP_FrameWork
changeset 58 cdb720e67852
parent 25 505ad3f0ce5c
--- a/Msrp/MsrpServer/inc/MMSRPParserObserver.h	Sat Jun 12 14:30:11 2010 +0530
+++ b/Msrp/MsrpServer/inc/MMSRPParserObserver.h	Thu Nov 25 13:59:42 2010 +0200
@@ -35,18 +35,35 @@
 */
 class MMSRPParserObserver
 	{
+	public: // enums
+        /** Error codes returned to the client */
+        enum TParseStatusResponses
+            {
+            EParseStatusNotDefined,
+            EParseStatusError,
+            EParseStatusMessageUnclaimed,
+            EParseStatusMessageHandled
+            };
+	
 	public:
 
 	    /**
 	     * Message, Report, Response
-	     * MessageReceived
-	     * @return true if consumed 
+	     * @param aMsg received message
+	     * @param aStatus message status
+	     * @return TParseStatusResponses 
 	     */
-        virtual void ParseStatusL (CMSRPMessageHandler* aMsg, TInt aStatus) = 0;
+        virtual TInt ParseStatusL (CMSRPMessageHandler* aMsg, TInt aStatus) = 0;
+	    
+        /**
+         * Report currently received bytes 
+         * @param aMsg message handler instance 
+         */
+        virtual void ReportReceiveprogressL( CMSRPMessageHandler* aMsg ) = 0; 
 	    
 	    /**
 	     * Parse error: Handle similar to connection error now
-	     * Try to recover from parse errors, using byte-range etc. later 
+	     * Try to recover from parse errors, using byte-range etc. later 
 	     */
 	    //virtual void ParseResult (TInt aStatus, CMessage* aMsg) = 0;
         //virtual void ParseError () = 0;
@@ -55,7 +72,7 @@
 	     * Part of large chunk
 	     * Same as message received, msg internal state incomplete
 	     * msg co-owned by parser and subsession, parsing continues after transfer to msrp session
-	     * the content ptrs can be completed and closed (Removing them from msg' content_ptrs_list) and thus freeing content buffers for reuse if needed
+	     * the content ptrs can be completed and closed (Removing them from msg' content_ptrs_list) and thus freeing content buffers for reuse if needed
 	     */
 	    
 	};