btobexprofiles/obexserviceman/obexservicemanclient/src/usbobex.cpp
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     1 /*
       
     2 * Copyright (c) 2006 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:  USB obexservicemanager client implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "usbobex.h"
       
    20 #include "debug.h"
       
    21 #include "obexsmclient.h"
       
    22 #include "usbclientwrapper.h"
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // NewL
       
    26 // ---------------------------------------------------------------------------
       
    27 EXPORT_C CObexUSB* CObexUSB::NewL()
       
    28     {
       
    29     TRACE_FUNC
       
    30     CObexUSB* self = new (ELeave) CObexUSB();
       
    31     CleanupStack::PushL(self);
       
    32     self->ConstructL();
       
    33     CleanupStack::Pop();
       
    34     return self;
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // Destructor
       
    39 // ---------------------------------------------------------------------------
       
    40 CObexUSB::~CObexUSB()
       
    41     {
       
    42     delete iUSBWrapper;
       
    43     iUSBWrapper = NULL;
       
    44     }
       
    45     
       
    46 // ---------------------------------------------------------------------------
       
    47 // ManageUSBServices
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 EXPORT_C void CObexUSB::ManageUSBServices(TBool aUSBStatus, TRequestStatus &aStatus)
       
    51     {
       
    52     iUSBWrapper->ManageUSBServices( aUSBStatus, aStatus );
       
    53     }
       
    54     
       
    55 // ---------------------------------------------------------------------------
       
    56 // CancelManageUSBServices
       
    57 // ---------------------------------------------------------------------------
       
    58 //
       
    59 EXPORT_C void  CObexUSB::CancelManageUSBServices()
       
    60     {    
       
    61     iUSBWrapper->CancelManageUSBServices();
       
    62     }   
       
    63     
       
    64 // ---------------------------------------------------------------------------
       
    65 // Constructor
       
    66 // ---------------------------------------------------------------------------
       
    67 //
       
    68 CObexUSB::CObexUSB()    
       
    69     {	        
       
    70 	}
       
    71 	
       
    72 // ---------------------------------------------------------------------------
       
    73 // ConstructL
       
    74 // ---------------------------------------------------------------------------
       
    75 //
       
    76 void CObexUSB::ConstructL()
       
    77     {    
       
    78     TRACE_FUNC    
       
    79     iUSBWrapper = CUSBClientWrapper::NewL();
       
    80     }  
       
    81