Msrp/MsrpServer/inc/MMSRPParserObserver.h
branchMSRP_FrameWork
changeset 25 505ad3f0ce5c
child 58 cdb720e67852
equal deleted inserted replaced
22:f1578314b8da 25:505ad3f0ce5c
       
     1 /*
       
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html."
       
     8 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 * Contributors:
       
    11 *
       
    12 * Description:
       
    13 * MSRP Implementation
       
    14 *
       
    15 */
       
    16 
       
    17 #ifndef __MMMSRPPARSEROBSERVER_H
       
    18 #define __MMMSRPPARSEROBSERVER_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <e32base.h>
       
    22 
       
    23 /**
       
    24  * ideally msg received shud directly go to msrp session mngr(subsession mngr)
       
    25  * msgs unclaimed by any session shud be handled by thesession mngr
       
    26  * xpected dummy subsession to handle or send responses to unclaimed msgs  
       
    27  */
       
    28 
       
    29 class CMSRPMessageHandler;
       
    30 
       
    31 
       
    32 // CLASS DECLARATIONS
       
    33 /**
       
    34 * The parser event interface
       
    35 */
       
    36 class MMSRPParserObserver
       
    37 	{
       
    38 	public:
       
    39 
       
    40 	    /**
       
    41 	     * Message, Report, Response
       
    42 	     * MessageReceived
       
    43 	     * @return true if consumed 
       
    44 	     */
       
    45         virtual void ParseStatusL (CMSRPMessageHandler* aMsg, TInt aStatus) = 0;
       
    46 	    
       
    47 	    /**
       
    48 	     * Parse error: Handle similar to connection error now
       
    49 	     * Try to recover from parse errors, using byte-range etc. later 
       
    50 	     */
       
    51 	    //virtual void ParseResult (TInt aStatus, CMessage* aMsg) = 0;
       
    52         //virtual void ParseError () = 0;
       
    53 	    
       
    54         /**
       
    55 	     * Part of large chunk
       
    56 	     * Same as message received, msg internal state incomplete
       
    57 	     * msg co-owned by parser and subsession, parsing continues after transfer to msrp session
       
    58 	     * the content ptrs can be completed and closed (Removing them from msg' content_ptrs_list) and thus freeing content buffers for reuse if needed
       
    59 	     */
       
    60 	    
       
    61 	};
       
    62 
       
    63 #endif // __MMMSRPPARSEROBSERVER_H
       
    64 
       
    65 // End of file