btobexprofiles/obexsendservices/obexservicesendutils/src/BTSController.cpp
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     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 void CBTSController::SendUnSupportedFiles()
       
    62     {
       
    63     
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------------------------
       
    67 // CBTSController::Abort
       
    68 // ---------------------------------------------------------------------------
       
    69 //
       
    70 void CBTSController::CreateClientL(MBTServiceClientObserver* aObserver,
       
    71                                         const TBTDevAddr& aRemoteDevice,
       
    72                                         const TUint aRemotePort,
       
    73                                         RArray<CObexHeader*> aHeaderList )                                        
       
    74     {
       
    75     FLOG(_L("[BTSU]\t CBTSController::CreateClient"));        
       
    76     iClient = CBTServiceClient::NewL( aObserver, aRemoteDevice, aRemotePort, aHeaderList );
       
    77     FLOG(_L("[BTSU]\t CBTSController::Abort"));            
       
    78     }
       
    79