usbclasses/usbobexclasscontroller/inc/CUsbObexClassController.h
branchRCL_3
changeset 7 ff9df6630274
parent 0 1e05558e2206
child 23 25fce757be94
equal deleted inserted replaced
6:a15c582fbf97 7:ff9df6630274
     1 /*
     1 /*
     2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    21 
    21 
    22 #include <e32std.h>
    22 #include <e32std.h>
    23 #include <cusbclasscontrollerplugin.h>
    23 #include <cusbclasscontrollerplugin.h>
    24 #include <usbobex.h>
    24 #include <usbobex.h>
    25 #include <usb/usblogger.h>
    25 #include <usb/usblogger.h>
       
    26 #include "obexsmwatcher.h"
    26 
    27 
    27 const TInt KObexClassPriority = 2;
    28 const TInt KObexClassPriority = 2;
    28 const TInt KObexNumInterfaces = 2;
    29 const TInt KObexNumInterfaces = 2;
    29 
    30 
    30 _LIT(KUsbObexLddName, "eusbc");
    31 _LIT(KUsbObexLddName, "eusbc");
    33 /**
    34 /**
    34  *  This class implements OBEX class controller
    35  *  This class implements OBEX class controller
    35  *
    36  *
    36  *  @since S60 V3.1
    37  *  @since S60 V3.1
    37  */
    38  */
    38 NONSHARABLE_CLASS(CUsbObexClassController) : public CUsbClassControllerPlugIn
    39 NONSHARABLE_CLASS(CUsbObexClassController) : public CUsbClassControllerPlugIn, public MObexSMObserver
    39     {
    40     {
    40 public:
    41 public:
    41     /**
    42     /**
    42      * Constructs a CUsbObexClassController object.
    43      * Constructs a CUsbObexClassController object.
    43      *
    44      *
    50 // from base class CActive.
    51 // from base class CActive.
    51 
    52 
    52     virtual void RunL();
    53     virtual void RunL();
    53     virtual void DoCancel();
    54     virtual void DoCancel();
    54     virtual TInt RunError(TInt aError);
    55     virtual TInt RunError(TInt aError);
       
    56 
       
    57 // from MObexSMObserver    
       
    58     void MosmError(TInt aError);
    55 
    59 
    56 // from base class CUsbClassControllerBase
    60 // from base class CUsbClassControllerBase
    57     
    61     
    58     /**
    62     /**
    59      * From CUsbClassControllerBase.
    63      * From CUsbClassControllerBase.
    93     void ConstructL();
    97     void ConstructL();
    94 
    98 
    95 private: // data
    99 private: // data
    96     TRequestStatus* iRequestStatus;
   100     TRequestStatus* iRequestStatus;
    97     CObexUSB* iObexSM; 
   101     CObexUSB* iObexSM; 
       
   102     CObexSMWatcher *iObexSMWatcher;
    98     };
   103     };
    99 
   104 
   100 #endif // CUSBOBEXCLASSCONTROLLER_H
   105 #endif // CUSBOBEXCLASSCONTROLLER_H