obex/obexprotocol/obextransport/public/obexactivewriter.h
changeset 57 f6055a57ae18
parent 0 d0791faffa3f
equal deleted inserted replaced
54:4dc88a4ac6f4 57:f6055a57ae18
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef __OBEXACTIVEWRITER_H__
       
    22 #define __OBEXACTIVEWRITER_H__
       
    23 
       
    24 #include <obex/transport/obexwriterbase.h>
       
    25 #include <obex/transport/obexconnector.h>
       
    26 
       
    27 class RSocket;
       
    28 
       
    29 /**
       
    30 Functionality specific to writing to a socket.
       
    31 @internalTechnology
       
    32 */
       
    33 NONSHARABLE_CLASS(CObexActiveWriter) : public CObexWriterBase
       
    34 	{
       
    35 public:
       
    36 	IMPORT_C static CObexActiveWriter* NewL(MObexTransportNotify& aOwner, RSocket& aSocket, TObexConnectionInfo& aInfo);
       
    37 	IMPORT_C ~CObexActiveWriter();
       
    38 
       
    39 private:
       
    40 	CObexActiveWriter(MObexTransportNotify& aOwner, RSocket& aSocket, TObexConnectionInfo& aInfo);
       
    41 
       
    42 private: // from CObexWriterBase
       
    43 	virtual void StartTransfer(CObexPacket& aPacket);
       
    44 	virtual void DoCancel();
       
    45 	virtual void DoTransfer();
       
    46 
       
    47 private:
       
    48 	TInt iTransportWriteLimit;
       
    49 	TObexConnectionInfo iInfo; // used to find out transport limits per transfer
       
    50 	RSocket& iSocket;
       
    51 	};
       
    52 
       
    53 #endif // __OBEXACTIVEWRITER_H__