localconnectivityservice/obexsendservices/obexservicesendutils/src/BTSController.cpp
branchRCL_3
changeset 39 4096754ee773
parent 38 3dcb815346df
child 40 52a167391590
equal deleted inserted replaced
38:3dcb815346df 39:4096754ee773
     1 /*
       
     2 * Copyright (c) 2007-2007 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #include "BTSBIPController.h"
       
    22 #include "BTServiceClient.h"
       
    23 #include "BTSUDebug.h"
       
    24 
       
    25 
       
    26 // ======== MEMBER FUNCTIONS ========
       
    27 
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // Constructor
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 CBTSController::CBTSController()
       
    34     {    
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // Destructor
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 CBTSController::~CBTSController()
       
    42     {    
       
    43     FLOG(_L("[BTSU]\t CBTSController::Destructor()"));
       
    44     delete iClient;
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // CBTSController::Abort
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 void CBTSController::Abort()
       
    52     {
       
    53     FLOG(_L("[BTSU]\t CBTSController::Abort"));        
       
    54     if ( iClient )
       
    55         {
       
    56         iClient->Abort();
       
    57         }
       
    58     FLOG(_L("[BTSU]\t CBTSController::Abort"));            
       
    59     }
       
    60 
       
    61 // ---------------------------------------------------------------------------
       
    62 // CBTSController::Abort
       
    63 // ---------------------------------------------------------------------------
       
    64 //
       
    65 void CBTSController::CreateClientL(MBTServiceClientObserver* aObserver,
       
    66                                         const TBTDevAddr& aRemoteDevice,
       
    67                                         const TUint aRemotePort,
       
    68                                         RArray<CObexHeader*> aHeaderList )                                        
       
    69     {
       
    70     FLOG(_L("[BTSU]\t CBTSController::CreateClient"));        
       
    71     iClient = CBTServiceClient::NewL( aObserver, aRemoteDevice, aRemotePort, aHeaderList );
       
    72     FLOG(_L("[BTSU]\t CBTSController::Abort"));            
       
    73     }
       
    74