1 // Copyright (c) 2004-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
24 #ifndef REMCONADDRESS_H
25 #define REMCONADDRESS_H
30 Represents a single remote device address in terms of the bearer used to
31 connect to the device and some bearer-specific connection information.
36 /** This is maximum supported size for a bearer-specific remote device
37 address (cf. TSockAddr). */
38 static const TUint KMaxAddrSize = 0x1c;
40 /** Link between elements of this type in a TSglQue. */
45 IMPORT_C TRemConAddress();
48 IMPORT_C ~TRemConAddress();
52 The address is null if the bearer UID is the null UID.
53 @return ETrue if the address is invalid/null, EFalse otherwise.
55 IMPORT_C TBool IsNull() const;
58 @return The bearer UID. Set this to null to make the address
61 IMPORT_C TUid& BearerUid();
64 @return The bearer UID.
66 IMPORT_C TUid BearerUid() const;
69 @return The bearer-specific address information.
71 IMPORT_C TBuf8<KMaxAddrSize>& Addr();
74 @return The bearer-specific address information.
76 IMPORT_C const TBuf8<KMaxAddrSize>& Addr() const;
80 @param An address to compare with.
81 @return ETrue if both bearer UIDs and sets of bearer-specific information
82 match, EFalse otherwise.
84 IMPORT_C TBool operator==(const TRemConAddress& aRhs) const;
87 /** Implementation UID of bearer (ECOM) plugin. */
90 /** Buffer for bearer-specific connection address information. */
91 TBuf8<KMaxAddrSize> iAddr;
94 Pad for BC-friendly future change.
99 #endif // REMCONADDRESS_H