obex/obexprotocol/obextransport/public/obexactivereader.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 __OBEXACTIVEREADER_H__
       
    22 #define __OBEXACTIVEREADER_H__
       
    23 
       
    24 #include <obex/transport/obexreaderbase.h>
       
    25 
       
    26 class RSocket;
       
    27 
       
    28 /**
       
    29 Functionality specific to reading from a socket 
       
    30 @internalTechnology
       
    31 */
       
    32 NONSHARABLE_CLASS(CObexActiveReader) : public CObexReaderBase
       
    33 	{
       
    34 public:
       
    35 	IMPORT_C static CObexActiveReader* NewL(MObexTransportNotify& aOwner, RSocket& aSocket, TObexConnectionInfo& aInfo);
       
    36 	IMPORT_C ~CObexActiveReader ();
       
    37 
       
    38 private:
       
    39 	CObexActiveReader (MObexTransportNotify& aOwner, RSocket& aSocket, TObexConnectionInfo& aInfo);
       
    40 
       
    41 private: // from CObexReaderBase
       
    42 	virtual void DoCancel ();
       
    43 	virtual void DoTransfer ();
       
    44 	virtual TInt GetMaxPacketSize();
       
    45 	virtual TInt GetInitialPacketSize();
       
    46 
       
    47 private:
       
    48 	RSocket& iSocket;
       
    49 	};
       
    50 
       
    51 #endif // __OBEXACTIVEREADER_H__