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