1 // Copyright (c) 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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
27 #include <btsecurity.h>
29 NONSHARABLE_CLASS(TBTSockAddr) : public TSockAddr
30 /** Bluetooth socket address
32 Stores bluetooth device address, and security - these are common to all Bluetooth addresses
37 struct SBTAddrSecurity
40 TBTServiceSecurity iSecurity;
44 IMPORT_C TBTSockAddr();
45 IMPORT_C TBTSockAddr(const TSockAddr& aAddr);
46 IMPORT_C TBTDevAddr BTAddr() const;
47 IMPORT_C void SetBTAddr(const TBTDevAddr& aRemote);
48 IMPORT_C void SetSecurity(const TBTServiceSecurity& aSecurity);
49 IMPORT_C TBTServiceSecurity BTSecurity() const;
50 IMPORT_C static TBTSockAddr& Cast(const TSockAddr& aAddr);
53 IMPORT_C TAny* EndBTSockAddrPtr() const;
56 SBTAddrSecurity& BTAddrSecStruct() const;
57 TPtr8 AddressPtr() const;
60 #endif // BTSOCKADDR_H