bluetoothapitest/bluetoothsvs/T_BTSockAddrAPI/src/T_TBTSockAddrChild.cpp
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 /*
       
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "T_TBTSockAddrChild.h"
       
    20 
       
    21 // Test socket Address class
       
    22 T_TBTSockAddrChild::T_TBTSockAddrChild()
       
    23 	: TBTSockAddr()
       
    24 	{	
       
    25 	}
       
    26 	
       
    27 T_TBTSockAddrChild::T_TBTSockAddrChild(const TSockAddr &aSockAddr)
       
    28 	: TBTSockAddr(aSockAddr)
       
    29 	{
       
    30 			
       
    31 	}
       
    32 
       
    33 T_TBTSockAddrChild& T_TBTSockAddrChild::Cast(const TSockAddr &aAddr)
       
    34 	{
       
    35 	TBTSockAddr &tmp = TBTSockAddr::Cast(aAddr);
       
    36 	return *((T_TBTSockAddrChild *)&tmp);
       
    37 	}
       
    38 		
       
    39 void T_TBTSockAddrChild::T_SetUserLen(TInt aLen)
       
    40 	{
       
    41 	SetUserLen(aLen);	
       
    42 	}
       
    43 
       
    44 TUint8* T_TBTSockAddrChild::T_UserPtr()
       
    45 	{
       
    46 	return UserPtr();
       
    47 	}
       
    48 
       
    49 TAny * T_TBTSockAddrChild::T_EndBTSockAddrPtr()
       
    50 	{
       
    51 	return 	EndBTSockAddrPtr();
       
    52 	}
       
    53 
       
    54 	
       
    55 // EOF