usbengines/usbotgwatcher/src/cusbwaitnotifier.cpp
changeset 0 1e05558e2206
child 6 a15c582fbf97
equal deleted inserted replaced
-1:000000000000 0:1e05558e2206
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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 waiting notifier implementation
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #include <e32std.h>
       
    20 #include <usbuinotif.h>
       
    21 
       
    22 #include "cusbnotifmanager.h"
       
    23 #include "cusbwaitnotifier.h"
       
    24 
       
    25 #include "debug.h"
       
    26 #include "panic.h"
       
    27 
       
    28 // ======== MEMBER FUNCTIONS ========
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // Two-phased constructor.
       
    32 // -----------------------------------------------------------------------------
       
    33 //
       
    34 CUsbWaitNotifier* CUsbWaitNotifier::NewL(RNotifier& aNotifier,
       
    35         CUsbNotifManager* aNotifManager, TUint aNotifId)
       
    36     {
       
    37         FLOG( _L( "[USBOTGWATCHER]\tCUsbWaitNotifier::NewL" ) );
       
    38 
       
    39     CUsbWaitNotifier* self = new (ELeave) CUsbWaitNotifier(aNotifier,
       
    40             aNotifManager, aNotifId);
       
    41     CleanupStack::PushL(self);
       
    42     self->ConstructL();
       
    43     CleanupStack::Pop(self);
       
    44     return self;
       
    45     }
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // Destructor
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 CUsbWaitNotifier::~CUsbWaitNotifier()
       
    52     {
       
    53         FLOG( _L( "[USBOTGWATCHER]\tCUsbWaitNotifier::~CUsbWaitNotifier" ) );
       
    54     }
       
    55 
       
    56 // ---------------------------------------------------------------------------
       
    57 // C++ constructor
       
    58 // ---------------------------------------------------------------------------
       
    59 //
       
    60 CUsbWaitNotifier::CUsbWaitNotifier(RNotifier& aNotifier,
       
    61         CUsbNotifManager* aNotifManager, TUint aNotifId) :
       
    62     CUsbNoteNotifier(aNotifier, aNotifManager, KUsbUiNotifOtgError, aNotifId)
       
    63     {
       
    64     SetFeedbackNeeded();
       
    65     }
       
    66 
       
    67 // ---------------------------------------------------------------------------
       
    68 // Second-phase constructor
       
    69 // ---------------------------------------------------------------------------
       
    70 //
       
    71 void CUsbWaitNotifier::ConstructL()
       
    72     {
       
    73     FLOG( _L( "[USBOTGWATCHER]\tCUsbWaitNotifier::ConstructL" ) );
       
    74 
       
    75     CUsbNoteNotifier::ConstructL();
       
    76     }
       
    77 
       
    78 // End of file