Msrp/MsrpServer/inc/MMSRPWriter.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 __MMMSRPWRITER_H
       
    18 #define __MMMSRPWRITER_H
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <in_sock.h>
       
    22 #include "MMSRPWriterObserver.h"
       
    23 
       
    24 // CLASS DECLARATIONS
       
    25 /**
       
    26 * writer request Interface 
       
    27 */
       
    28 class MMSRPWriter
       
    29 	{
       
    30 	public:
       
    31 	    inline virtual ~MMSRPWriter(){}
       
    32 	    /**
       
    33 	     * register for send service
       
    34 	     * also triggers writer start, inactive on nothing to send
       
    35 	     */	    
       
    36 	    virtual void RequestSendL(MMSRPWriterObserver& aMsg) = 0;
       
    37 
       
    38         /**
       
    39          * Cancel current send, socket state to be verified
       
    40          */
       
    41         //virtual void CancelWrite() = 0; //not supported, only cancel message supported, i.e. chunk abort
       
    42         
       
    43         /**
       
    44          * Stops the writer from sending data
       
    45          */
       
    46         //virtual void Stop() = 0;
       
    47         //virtual void Start() = 0;
       
    48         
       
    49         /**
       
    50          * Stops sending and discards all pending data
       
    51          */
       
    52         //virtual void Flush() = 0;                
       
    53         
       
    54 	};
       
    55 #endif // __MMMSRPWRITER_H
       
    56 
       
    57 // End of file