Msrp/MsrpServer/inc/MMSRPWriterObserver.h
branchMSRP_FrameWork
changeset 58 cdb720e67852
parent 25 505ad3f0ce5c
equal deleted inserted replaced
25:505ad3f0ce5c 58:cdb720e67852
    34 	enum TMsgStatus
    34 	enum TMsgStatus
    35 	    {
    35 	    {
    36         EUndefined = 0,
    36         EUndefined = 0,
    37 	    EPending, //Sending incomplete. Same observer is called again immediately
    37 	    EPending, //Sending incomplete. Same observer is called again immediately
    38 	    EComplete, //No more to send. A new observer is called, this is removed 
    38 	    EComplete, //No more to send. A new observer is called, this is removed 
    39 	    EInterrupted //There is more to send. Same observer called later
    39 	    EInterrupted, //There is more to send. Same observer called later
       
    40 	    EWaitingForResponse,
       
    41 	    ESendingReport // sending report when requested
    40 	    };	
    42 	    };	
    41 	
    43 	
    42 	    /**
    44 	    /**
    43 	     * Called by writer to fetch the content to send
    45 	     * Called by writer to fetch the content to send
    44 	     * @param aData Output param, Points to data to be sent 
    46 	     * @param aData Output param, Points to data to be sent 
    45 	     * @param aInterrupt Signals whether other msgs are queued waiting to be sent
    47 	     * @param aInterrupt Signals whether other msgs are queued waiting to be sent
    46 	     * @return KErrNone or system wide eror codes 
    48 	     * @return KErrNone or system wide eror codes 
    47 	     */	    
    49 	     */	    
    48 	    virtual TWriteStatus GetSendBufferL( TPtrC8& aData, TBool aInterrupt ) = 0;
    50 	    virtual const TDesC8& GetSendBufferL( TWriteStatus& aStatus, TBool aInterrupt ) = 0;
    49 
    51 
    50 	   /**           
    52 	   /**           
    51         * Called when the message has been written to the socket
    53         * Called when the message has been written to the socket
    52 		* @param aSendstatus status of the write operation, communicates prev send result
    54 		* @param aSendstatus status of the write operation, communicates prev send result
    53         * @return Indicates which observer has to be called the next time                 
    55         * @return Indicates which observer has to be called the next time