epoc32/include/mw/obexirtransportinfo.h
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/mw/obexirtransportinfo.h	Wed Mar 31 12:27:01 2010 +0100
     1.3 @@ -0,0 +1,96 @@
     1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// 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
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef __OBEXIRTRANSPORTINFO_H__
    1.20 +#define __OBEXIRTRANSPORTINFO_H__
    1.21 +
    1.22 +#include <ir_sock.h>
    1.23 +#include <obextransportinfo.h>
    1.24 +
    1.25 +/**
    1.26 +Concrete transport info type for use when using Irda ttp  transport controller.
    1.27 +@see KObexIrTTPProtocol
    1.28 +@publishedAll
    1.29 +@released
    1.30 +*/
    1.31 +NONSHARABLE_CLASS(TObexIrTransportInfo) : public TObexTransportInfo
    1.32 +
    1.33 +	{
    1.34 +//From TObexIrProtocolInfo
    1.35 +public:
    1.36 +	/** IrDA address information for this connection, as used in the IrDA sockets interface.
    1.37 +	Refer to the SDK for more information about this.
    1.38 +	Its main use is for setting the port that the local machine will listen on. */
    1.39 +	TIrdaSockAddr iAddr;
    1.40 +	/** The IAS class value that the OBEX session will register its listener port,
    1.41 +	or request remote port with. */
    1.42 +	TBuf8<KIASClassNameMax> iClassName;
    1.43 +	/** The IAS attribute value that the OBEX session will register its listener port,
    1.44 +	or request remote port with. */
    1.45 +	TBuf8<KIASAttributeNameMax> iAttributeName;
    1.46 +	};
    1.47 +
    1.48 +/**
    1.49 +Concrete transport info type for use when using Irda ttp  transport controller, with discovery extensions.
    1.50 +@see KObexIrTTPProtocolV2
    1.51 +@publishedAll
    1.52 +@released
    1.53 +*/
    1.54 +NONSHARABLE_CLASS(TObexIrV2TransportInfo) : public TObexIrTransportInfo
    1.55 +
    1.56 +	{
    1.57 +//From TObexIrProtocolInfo
    1.58 +public:
    1.59 +	/** The number of discovery slots to use. */
    1.60 +	TUint8 iDiscoverySlots;
    1.61 +	/** The number of discovery attempts to make. */
    1.62 +	TUint8 iDiscoveryAttempts;
    1.63 +	
    1.64 +private:
    1.65 +	// This data padding has been added to help prevent future binary compatibility breaks	
    1.66 +	// None of these padding variables have been zero'd because they are currently not used
    1.67 +	TUint32     iPadding1; 
    1.68 +	TUint32     iPadding2; 		
    1.69 +	TUint32     iPadding3; 
    1.70 +	TUint32     iPadding4; 	
    1.71 +	};
    1.72 +
    1.73 +
    1.74 +/**
    1.75 +Concrete transport info type for use when using Irda ttp transport controller, with nickname extension.
    1.76 +@see KObexIrTTPProtocolV3
    1.77 +@publishedAll
    1.78 +
    1.79 +@capability WriteDeviceData If the TObexIrV3TransportInfo is passed as the argument
    1.80 +                            to CObexServer::NewL or CObexClient::NewL and the associated 
    1.81 +                            name is valid.
    1.82 +
    1.83 +@released
    1.84 +*/
    1.85 +NONSHARABLE_CLASS(TObexIrV3TransportInfo) : public TObexIrV2TransportInfo
    1.86 +	{
    1.87 +public:
    1.88 +	/** The device nickname.  The maximum length in the IrDA specification
    1.89 +	is defined as 23 - (number of hint octets [2] + 1)  =  20
    1.90 +	*/
    1.91 +	TBuf<20> iLocalDeviceNickname;
    1.92 +	
    1.93 +	/** A flag indicating if the device nickname field is valid.  This
    1.94 +	allows Symbian to make further derivations of this interface without making
    1.95 +	the device nickname mandatory */
    1.96 +	TBool iLocalDeviceNicknameValid;
    1.97 +	};
    1.98 +
    1.99 +#endif // __OBEXIRTRANSPORTINFO_H__