1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 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: Base classes for Usb notifier wrapper |
|
15 * |
8 * |
16 */ |
9 * Initial Contributors: |
17 |
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Base classes for Usb notifier wrapper |
|
15 * |
|
16 */ |
18 |
17 |
19 #include "cusbnotifmanager.h" |
18 #include "cusbnotifmanager.h" |
20 #include "cusbnotifier.h" |
19 #include "cusbnotifier.h" |
21 |
20 |
22 #include "debug.h" |
21 #include "debug.h" |
23 #include "panic.h" |
22 #include "panic.h" |
24 |
23 |
25 // ======== MEMBER FUNCTIONS ======== |
24 // ======== MEMBER FUNCTIONS ======== |
26 |
25 |
28 // Desctructor |
27 // Desctructor |
29 // --------------------------------------------------------------------------- |
28 // --------------------------------------------------------------------------- |
30 // |
29 // |
31 CUsbNotifier::~CUsbNotifier() |
30 CUsbNotifier::~CUsbNotifier() |
32 { |
31 { |
33 FLOG( _L( "[USBOTGWATCHER]\tCUsbNotifier::~CUsbNotifier" ) ); |
32 LOG_FUNC |
34 } |
33 } |
35 |
34 |
36 // --------------------------------------------------------------------------- |
35 // --------------------------------------------------------------------------- |
37 // Getter for returning if the notifier needs input from end-user |
36 // Getter for returning if the notifier needs input from end-user |
38 // --------------------------------------------------------------------------- |
37 // --------------------------------------------------------------------------- |
44 |
43 |
45 // --------------------------------------------------------------------------- |
44 // --------------------------------------------------------------------------- |
46 // C++ constructor |
45 // C++ constructor |
47 // --------------------------------------------------------------------------- |
46 // --------------------------------------------------------------------------- |
48 // |
47 // |
49 CUsbNotifier::CUsbNotifier(CUsbNotifManager* aNotifManager, TUid aCat, |
48 CUsbNotifier::CUsbNotifier(CUsbNotifManager& aNotifManager, TUid aCat, |
50 TUint aNotifId) : |
49 TUint aNotifId) : |
51 iNotifManager(aNotifManager), iCat(aCat), iNotifId(aNotifId), |
50 iNotifManager(aNotifManager), iCat(aCat), iNotifId(aNotifId), |
52 iIsFeedbackNeeded(EFalse) |
51 iIsFeedbackNeeded(EFalse) |
53 { |
52 { |
54 FLOG( _L( "[USBOTGWATCHER]\tCUsbNotifier::CUsbNotifier" ) ); |
|
55 } |
53 } |
56 |
54 |
57 // --------------------------------------------------------------------------- |
55 // --------------------------------------------------------------------------- |
58 // Set by child-classe if the concrete notifier needs feedback from end-user |
56 // Set by child-classe if the concrete notifier needs feedback from end-user |
59 // --------------------------------------------------------------------------- |
57 // --------------------------------------------------------------------------- |
60 // |
58 // |
61 void CUsbNotifier::SetFeedbackNeeded() |
59 void CUsbNotifier::SetFeedbackNeeded() |
62 { |
60 { |
63 FLOG( _L( "[USBOTGWATCHER]\tCUsbNotifier::SetFeedbackNeeded" ) ); |
|
64 iIsFeedbackNeeded = ETrue; |
61 iIsFeedbackNeeded = ETrue; |
65 } |
62 } |
66 |
63 |
67 // End of file |
64 // End of file |