TObexProtocolPolicy Class Reference

#include <mw/obexconstants.h>

Link against: obex.lib

class TObexProtocolPolicy
Public Member Functions
TObexProtocolPolicy()
IMPORT_C TUint16ReceiveMtu()
IMPORT_C TIntSetReceiveMtu(TUint16)
IMPORT_C TIntSetTransmitMtu(TUint16)
IMPORT_C TUint16TransmitMtu()
IMPORT_C TUint16Version()

Detailed Description

Contains information about OBEX packet sizing policy, defining the maximum buffer size for receive and transmit packets

Constructor & Destructor Documentation

TObexProtocolPolicy ( )

IMPORT_CTObexProtocolPolicy()

Sets up class with default values

Member Function Documentation

ReceiveMtu ( )

IMPORT_C TUint16ReceiveMtu()const

Gets the policy's receive packet buffer size

Returns: Receive packet buffer size

SetReceiveMtu ( TUint16 )

IMPORT_C TIntSetReceiveMtu(TUint16aReceiveMtu)

Sets the maximum size of the receive packet buffer for the policy. For the IrDA transport, if the new receive buffer size is different to KObexPacketDefaultSize the receive packet size is set to equal the new buffer size. Otherwise the packet size is set to the protocol defined limit.

ParameterDescription
aReceiveMtuThe new buffer size

Returns: KErrNone on success. KErrArgument if the packet size is not supported

SetTransmitMtu ( TUint16 )

IMPORT_C TIntSetTransmitMtu(TUint16aTransmitMtu)

Sets the maximum size of the transmit packet buffer for the policy

ParameterDescription
aTransmitMtuThe new buffer size

Returns: KErrNone on success. KErrArgument if the packet size is not supported

TransmitMtu ( )

IMPORT_C TUint16TransmitMtu()const

Gets the policy's transmit packet buffer size

Returns: Transmit packet buffer size

Version ( )

IMPORT_C TUint16Version()const

Gets the version of the protocol policy format that this class supports

Returns: Protocol policy version