usbclasses/usbobexclasscontroller/src/obexsmwatcher.cpp
branchRCL_3
changeset 23 25fce757be94
parent 7 ff9df6630274
child 24 e02eb84a14d2
equal deleted inserted replaced
22:5b2a402e96ac 23:25fce757be94
    16 */
    16 */
    17 
    17 
    18 #include "obexsmwatcher.h"
    18 #include "obexsmwatcher.h"
    19 #include <e32base.h>
    19 #include <e32base.h>
    20 #include <obexservicemanprop.h>
    20 #include <obexservicemanprop.h>
    21 #include <usb/usblogger.h>
    21 #include "debug.h"
    22 
    22 
    23 #ifdef __FLOG_ACTIVE
       
    24 _LIT8(KLogComponent, "UsbObexCcSMW");
       
    25 #endif
       
    26 
    23 
    27 /**
    24 /**
    28  * @since S60 V5.2
    25  * @since S60 V5.2
    29  */
    26  */
    30 CObexSMWatcher* CObexSMWatcher::NewL(MObexSMObserver& aObserver)
    27 CObexSMWatcher* CObexSMWatcher::NewL(MObexSMObserver& aObserver)
    31     {
    28     {
    32     LOG_STATIC_FUNC_ENTRY
    29     LOG_FUNC
    33 
    30 
    34     CObexSMWatcher* self = new (ELeave) CObexSMWatcher(aObserver);
    31     CObexSMWatcher* self = new (ELeave) CObexSMWatcher(aObserver);
    35     CleanupStack::PushL( self);
    32     CleanupStack::PushL( self);
    36     self->ConstructL();
    33     self->ConstructL();
    37     CleanupStack::Pop(self);
    34     CleanupStack::Pop(self);
    77  */
    74  */
    78 void CObexSMWatcher::RunL()
    75 void CObexSMWatcher::RunL()
    79     {
    76     {
    80     LOG_FUNC 
    77     LOG_FUNC 
    81     
    78     
    82     LOGTEXT2(_L8(">>CObexSMWatcher::RunL [iStatus=%d]"), iStatus.Int());
    79     LOG1("iStatus=%d", iStatus.Int());
    83     
    80     
    84     iObexSMPostInit.Subscribe( iStatus );
    81     iObexSMPostInit.Subscribe( iStatus );
    85     SetActive();
    82     SetActive();
    86     
    83     
    87     TInt value = KErrNone;
    84     TInt value = KErrNone;
    88     TInt err = iObexSMPostInit.Get(value);
    85     TInt err = iObexSMPostInit.Get(value);
    89     if (err == KErrNone && value != KErrNone)
    86     if (err == KErrNone && value != KErrNone)
    90         {
    87         {
    91         iObserver.MosmError(value);
    88         iObserver.MosmError(value);
    92         }
    89         }    
    93     
    90 
    94     LOGTEXT(_L8("<<CObexSMWatcher::RunL"));
       
    95     }
    91     }
    96 
    92 
    97 /**
    93 /**
    98  *
    94  *
    99  */
    95  */