localconnectivityservice/obexserviceman/obexservicemanclient/inc/usbobex.h
branchRCL_3
changeset 39 4096754ee773
parent 38 3dcb815346df
child 40 52a167391590
equal deleted inserted replaced
38:3dcb815346df 39:4096754ee773
     1 /*
       
     2 * Copyright (c) 2006-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:  USB obexservicemanager client definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef USBOBEX_H
       
    20 #define USBOBEX_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 
       
    25 class CUSBClientWrapper;
       
    26 
       
    27 
       
    28 /**
       
    29 *	Transportation string definition
       
    30 */
       
    31 _LIT8(KSrcsTransportBT,"OBEX/BT");
       
    32 _LIT8(KSrcsTransportUSB,"OBEX/USB");
       
    33 _LIT8(KSrcsTransportIrDA,"OBEX/IrDA");
       
    34 
       
    35 
       
    36 /**
       
    37  *  obexservicemanager client for usb.
       
    38  *  @lib obexusbapi.lib
       
    39  *  @since S60 v3.2
       
    40  */
       
    41 class CObexUSB : public CBase
       
    42     {
       
    43 public:
       
    44 
       
    45    /**
       
    46     * Two-phased constructor.    
       
    47     */
       
    48     IMPORT_C static CObexUSB* NewL();
       
    49         
       
    50    /**
       
    51     * Destructor.
       
    52     */
       
    53     ~CObexUSB();
       
    54     
       
    55    /**
       
    56     * Turn USB services on or off
       
    57     *
       
    58     * @since S60 v3.2
       
    59     * @param aUSBStatus the requested USB service status
       
    60     * @param aStatus the Request status
       
    61     * @return None
       
    62     */
       
    63     IMPORT_C void  ManageUSBServices( TBool aUSBStatus, TRequestStatus &aStatus );     
       
    64       
       
    65    /**
       
    66     * Cancel managment request and turn services off   
       
    67     * @since S60 v3.2
       
    68     *
       
    69     */
       
    70     IMPORT_C void  CancelManageUSBServices();     
       
    71 
       
    72 private: 
       
    73 
       
    74     CObexUSB();
       
    75     void ConstructL();
       
    76 
       
    77 private: //data
       
    78 
       
    79    /**
       
    80     * Obexserviceman client wrapper
       
    81     */
       
    82     CUSBClientWrapper* iUSBWrapper;        
       
    83     };
       
    84 #endif // USBOBEX_H