usbengines/usbotgwatcher/src/cusbwaitnotifier.cpp
branchRCL_3
changeset 65 a44cdf4b4bf0
parent 0 1e05558e2206
child 21 ff9df6630274
equal deleted inserted replaced
64:8ecef05bbada 65:a44cdf4b4bf0
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2008-2009 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".
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Usb waiting notifier implementation
       
    15  *
     8  *
    16 */
     9  * Initial Contributors:
    17 
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Usb waiting notifier implementation
       
    15  *
       
    16  */
    18 
    17 
    19 #include <e32std.h>
    18 #include <e32std.h>
    20 #include <usbuinotif.h>
    19 #include <usbuinotif.h>
    21 
    20 
    22 #include "cusbnotifmanager.h"
    21 #include "cusbnotifmanager.h"
    30 // -----------------------------------------------------------------------------
    29 // -----------------------------------------------------------------------------
    31 // Two-phased constructor.
    30 // Two-phased constructor.
    32 // -----------------------------------------------------------------------------
    31 // -----------------------------------------------------------------------------
    33 //
    32 //
    34 CUsbWaitNotifier* CUsbWaitNotifier::NewL(RNotifier& aNotifier,
    33 CUsbWaitNotifier* CUsbWaitNotifier::NewL(RNotifier& aNotifier,
    35         CUsbNotifManager* aNotifManager, TUint aNotifId)
    34         CUsbNotifManager& aNotifManager, TUint aNotifId)
    36     {
    35     {
    37         FLOG( _L( "[USBOTGWATCHER]\tCUsbWaitNotifier::NewL" ) );
    36     LOG_FUNC
    38 
    37 
    39     CUsbWaitNotifier* self = new (ELeave) CUsbWaitNotifier(aNotifier,
    38     CUsbWaitNotifier* self = new (ELeave) CUsbWaitNotifier(aNotifier,
    40             aNotifManager, aNotifId);
    39             aNotifManager, aNotifId);
    41     CleanupStack::PushL(self);
    40     CleanupStack::PushL(self);
    42     self->ConstructL();
    41     self->ConstructL();
    48 // Destructor
    47 // Destructor
    49 // -----------------------------------------------------------------------------
    48 // -----------------------------------------------------------------------------
    50 //
    49 //
    51 CUsbWaitNotifier::~CUsbWaitNotifier()
    50 CUsbWaitNotifier::~CUsbWaitNotifier()
    52     {
    51     {
    53         FLOG( _L( "[USBOTGWATCHER]\tCUsbWaitNotifier::~CUsbWaitNotifier" ) );
    52     LOG_FUNC
    54     }
    53     }
    55 
    54 
    56 // ---------------------------------------------------------------------------
    55 // ---------------------------------------------------------------------------
    57 // C++ constructor
    56 // C++ constructor
    58 // ---------------------------------------------------------------------------
    57 // ---------------------------------------------------------------------------
    59 //
    58 //
    60 CUsbWaitNotifier::CUsbWaitNotifier(RNotifier& aNotifier,
    59 CUsbWaitNotifier::CUsbWaitNotifier(RNotifier& aNotifier,
    61         CUsbNotifManager* aNotifManager, TUint aNotifId) :
    60         CUsbNotifManager& aNotifManager, TUint aNotifId) :
    62     CUsbNoteNotifier(aNotifier, aNotifManager, KUsbUiNotifOtgError, aNotifId)
    61     CUsbNoteNotifier(aNotifier, aNotifManager, KUsbUiNotifOtgError, aNotifId)
    63     {
    62     {
    64     SetFeedbackNeeded();
    63     SetFeedbackNeeded();
    65     }
    64     }
    66 
    65 
    68 // Second-phase constructor
    67 // Second-phase constructor
    69 // ---------------------------------------------------------------------------
    68 // ---------------------------------------------------------------------------
    70 //
    69 //
    71 void CUsbWaitNotifier::ConstructL()
    70 void CUsbWaitNotifier::ConstructL()
    72     {
    71     {
    73     FLOG( _L( "[USBOTGWATCHER]\tCUsbWaitNotifier::ConstructL" ) );
    72     LOG_FUNC
    74 
    73 
    75     CUsbNoteNotifier::ConstructL();
    74     CUsbNoteNotifier::ConstructL();
    76     }
    75     }
    77 
    76 
    78 // End of file
    77 // End of file