usbengines/usbotgwatcher/src/cusbnotifier.cpp
changeset 34 7858bc6ead78
parent 31 dfdd8240f7c8
child 35 9d8b04ca6939
equal deleted inserted replaced
31:dfdd8240f7c8 34:7858bc6ead78
     1 /*
       
     2  * Copyright (c) 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:  Base classes for Usb notifier wrapper
       
    15  *
       
    16  */
       
    17 
       
    18 #include "cusbnotifmanager.h"
       
    19 #include "cusbnotifier.h"
       
    20 
       
    21 #include "debug.h"
       
    22 #include "panic.h"
       
    23 
       
    24 // ======== MEMBER FUNCTIONS ========
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // Desctructor
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 CUsbNotifier::~CUsbNotifier()
       
    31     {
       
    32     LOG_FUNC
       
    33     }
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 // Getter for returning if the notifier needs input from end-user
       
    37 // ---------------------------------------------------------------------------
       
    38 //
       
    39 TBool CUsbNotifier::IsFeedbackNeeded() const
       
    40     {
       
    41     return iIsFeedbackNeeded;
       
    42     }
       
    43 
       
    44 // ---------------------------------------------------------------------------
       
    45 // C++ constructor
       
    46 // ---------------------------------------------------------------------------
       
    47 //
       
    48 CUsbNotifier::CUsbNotifier(CUsbNotifManager& aNotifManager, TUid aCat,
       
    49         TUint aNotifId) :
       
    50     iNotifManager(aNotifManager), iCat(aCat), iNotifId(aNotifId),
       
    51             iIsFeedbackNeeded(EFalse)
       
    52     {
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // Set by child-classe if the concrete notifier needs feedback from end-user
       
    57 // ---------------------------------------------------------------------------
       
    58 //
       
    59 void CUsbNotifier::SetFeedbackNeeded()
       
    60     {
       
    61     iIsFeedbackNeeded = ETrue;
       
    62     }
       
    63 
       
    64 // End of file