usbengines/usbotgwatcher/src/cusbtimer.cpp
branchRCL_3
changeset 66 3cb82e326395
parent 65 a44cdf4b4bf0
equal deleted inserted replaced
65:a44cdf4b4bf0 66:3cb82e326395
     1 /*
     1 /*
     2  * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2008 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".
    46 // ---------------------------------------------------------------------------
    46 // ---------------------------------------------------------------------------
    47 //
    47 //
    48 void CUsbTimer::ConstructL()
    48 void CUsbTimer::ConstructL()
    49     {
    49     {
    50     LOG_FUNC
    50     LOG_FUNC
    51     User::LeaveIfError(iTimer.CreateLocal());
    51     LEAVEIFERROR(iTimer.CreateLocal());
    52     }
    52     }
    53 
    53 
    54 // ---------------------------------------------------------------------------
    54 // ---------------------------------------------------------------------------
    55 // 
    55 // 
    56 // ---------------------------------------------------------------------------
    56 // ---------------------------------------------------------------------------
    89 void CUsbTimer::RunL()
    89 void CUsbTimer::RunL()
    90     {
    90     {
    91 
    91 
    92     if (KErrNone != iStatus.Int())
    92     if (KErrNone != iStatus.Int())
    93         {
    93         {
    94         User::Leave(iStatus.Int());
    94         LEAVE(iStatus.Int());
    95         }
    95         }
    96 
    96 
    97     iObserver.TimerElapsedL(iTimerId);
    97     iObserver.TimerElapsedL(iTimerId);
    98     }
    98     }
    99 
    99