|
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 |
|
19 #include "cusbnotifmanager.h" |
|
20 #include "cusbnotifier.h" |
|
21 |
|
22 #include "debug.h" |
|
23 #include "panic.h" |
|
24 |
|
25 // ======== MEMBER FUNCTIONS ======== |
|
26 |
|
27 // --------------------------------------------------------------------------- |
|
28 // Desctructor |
|
29 // --------------------------------------------------------------------------- |
|
30 // |
|
31 CUsbNotifier::~CUsbNotifier() |
|
32 { |
|
33 FLOG( _L( "[USBOTGWATCHER]\tCUsbNotifier::~CUsbNotifier" ) ); |
|
34 } |
|
35 |
|
36 // --------------------------------------------------------------------------- |
|
37 // Getter for returning if the notifier needs input from end-user |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 TBool CUsbNotifier::IsFeedbackNeeded() const |
|
41 { |
|
42 return iIsFeedbackNeeded; |
|
43 } |
|
44 |
|
45 // --------------------------------------------------------------------------- |
|
46 // C++ constructor |
|
47 // --------------------------------------------------------------------------- |
|
48 // |
|
49 CUsbNotifier::CUsbNotifier(CUsbNotifManager* aNotifManager, TUid aCat, |
|
50 TUint aNotifId) : |
|
51 iNotifManager(aNotifManager), iCat(aCat), iNotifId(aNotifId), |
|
52 iIsFeedbackNeeded(EFalse) |
|
53 { |
|
54 FLOG( _L( "[USBOTGWATCHER]\tCUsbNotifier::CUsbNotifier" ) ); |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------------------------- |
|
58 // Set by child-classe if the concrete notifier needs feedback from end-user |
|
59 // --------------------------------------------------------------------------- |
|
60 // |
|
61 void CUsbNotifier::SetFeedbackNeeded() |
|
62 { |
|
63 FLOG( _L( "[USBOTGWATCHER]\tCUsbNotifier::SetFeedbackNeeded" ) ); |
|
64 iIsFeedbackNeeded = ETrue; |
|
65 } |
|
66 |
|
67 // End of file |