bluetoothmgmt/bluetoothclientlib/btlib/ACLSockAddr.cpp
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2005-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <bt_sock.h>
       
    17 #include <bluetooth/aclsockaddr.h>
       
    18 
       
    19 EXPORT_C TACLSockAddr::TACLSockAddr()
       
    20 /** Constructor
       
    21 */
       
    22 	{
       
    23 	}
       
    24 
       
    25 EXPORT_C TACLSockAddr::TACLSockAddr(const TSockAddr &aAddr)
       
    26 	: TBTSockAddr(aAddr)
       
    27 /** Construct from a BT address.
       
    28 @param aAddr BT address used to populate the object.
       
    29 */
       
    30 	{
       
    31 	}
       
    32 
       
    33 EXPORT_C TACLSockAddr& TACLSockAddr::Cast(const TSockAddr &aAddr)
       
    34 	{
       
    35 	return *((TACLSockAddr*)&aAddr);
       
    36 	}
       
    37 
       
    38 EXPORT_C TACLPort TACLSockAddr::Port() const
       
    39 	{
       
    40 	return static_cast<TACLPort>(TSockAddr::Port());
       
    41 	}
       
    42 
       
    43 EXPORT_C void TACLSockAddr::SetPort(TACLPort aPort)
       
    44 	{
       
    45 	TSockAddr::SetPort(aPort);
       
    46 	}
       
    47 
       
    48 // EOF