williamr@2: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __OBEXIRTRANSPORTINFO_H__ williamr@2: #define __OBEXIRTRANSPORTINFO_H__ williamr@2: williamr@2: #include williamr@2: #include williamr@2: williamr@2: /** williamr@2: Concrete transport info type for use when using Irda ttp transport controller. williamr@2: @see KObexIrTTPProtocol williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: NONSHARABLE_CLASS(TObexIrTransportInfo) : public TObexTransportInfo williamr@2: williamr@2: { williamr@2: //From TObexIrProtocolInfo williamr@2: public: williamr@2: /** IrDA address information for this connection, as used in the IrDA sockets interface. williamr@2: Refer to the SDK for more information about this. williamr@2: Its main use is for setting the port that the local machine will listen on. */ williamr@2: TIrdaSockAddr iAddr; williamr@2: /** The IAS class value that the OBEX session will register its listener port, williamr@2: or request remote port with. */ williamr@2: TBuf8 iClassName; williamr@2: /** The IAS attribute value that the OBEX session will register its listener port, williamr@2: or request remote port with. */ williamr@2: TBuf8 iAttributeName; williamr@2: }; williamr@2: williamr@2: /** williamr@2: Concrete transport info type for use when using Irda ttp transport controller, with discovery extensions. williamr@2: @see KObexIrTTPProtocolV2 williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: NONSHARABLE_CLASS(TObexIrV2TransportInfo) : public TObexIrTransportInfo williamr@2: williamr@2: { williamr@2: //From TObexIrProtocolInfo williamr@2: public: williamr@2: /** The number of discovery slots to use. */ williamr@2: TUint8 iDiscoverySlots; williamr@2: /** The number of discovery attempts to make. */ williamr@2: TUint8 iDiscoveryAttempts; williamr@2: williamr@2: private: williamr@2: // This data padding has been added to help prevent future binary compatibility breaks williamr@2: // None of these padding variables have been zero'd because they are currently not used williamr@2: TUint32 iPadding1; williamr@2: TUint32 iPadding2; williamr@2: TUint32 iPadding3; williamr@2: TUint32 iPadding4; williamr@2: }; williamr@2: williamr@2: williamr@2: /** williamr@2: Concrete transport info type for use when using Irda ttp transport controller, with nickname extension. williamr@2: @see KObexIrTTPProtocolV3 williamr@2: @publishedAll williamr@2: williamr@2: @capability WriteDeviceData If the TObexIrV3TransportInfo is passed as the argument williamr@2: to CObexServer::NewL or CObexClient::NewL and the associated williamr@2: name is valid. williamr@2: williamr@2: @released williamr@2: */ williamr@2: NONSHARABLE_CLASS(TObexIrV3TransportInfo) : public TObexIrV2TransportInfo williamr@2: { williamr@2: public: williamr@2: /** The device nickname. The maximum length in the IrDA specification williamr@2: is defined as 23 - (number of hint octets [2] + 1) = 20 williamr@2: */ williamr@2: TBuf<20> iLocalDeviceNickname; williamr@2: williamr@2: /** A flag indicating if the device nickname field is valid. This williamr@2: allows Symbian to make further derivations of this interface without making williamr@2: the device nickname mandatory */ williamr@2: TBool iLocalDeviceNicknameValid; williamr@2: }; williamr@2: williamr@2: #endif // __OBEXIRTRANSPORTINFO_H__