1 /* |
1 /* |
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-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: Usb warning notifier implementation |
|
15 * |
8 * |
16 */ |
9 * Initial Contributors: |
17 |
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Usb warning notifier implementation |
|
15 * |
|
16 */ |
18 |
17 |
19 #include <e32std.h> |
18 #include <e32std.h> |
20 #include <usbuinotif.h> |
19 #include <usbuinotif.h> |
21 |
20 |
22 #include "cusbnotifmanager.h" |
21 #include "cusbnotifmanager.h" |
32 // ----------------------------------------------------------------------------- |
31 // ----------------------------------------------------------------------------- |
33 // Two-phased constructor. |
32 // Two-phased constructor. |
34 // ----------------------------------------------------------------------------- |
33 // ----------------------------------------------------------------------------- |
35 // |
34 // |
36 CUsbWarningNotifier* CUsbWarningNotifier::NewL(RNotifier& aNotifier, |
35 CUsbWarningNotifier* CUsbWarningNotifier::NewL(RNotifier& aNotifier, |
37 CUsbNotifManager* aNotifManager, TUint aNotifId) |
36 CUsbNotifManager& aNotifManager, TUint aNotifId) |
38 { |
37 { |
39 FTRACE( FPrint(_L( "[USBOTGWATCHER]\tCUsbWarningNotifier::NewL aNotifId = %d" ), aNotifId)); |
38 LOG_FUNC |
|
39 |
|
40 LOG1( "aNotifId = %d" , aNotifId); |
40 |
41 |
41 CUsbWarningNotifier* self = new (ELeave) CUsbWarningNotifier(aNotifier, |
42 CUsbWarningNotifier* self = new (ELeave) CUsbWarningNotifier(aNotifier, |
42 aNotifManager, aNotifId); |
43 aNotifManager, aNotifId); |
43 CleanupStack::PushL(self); |
44 CleanupStack::PushL(self); |
44 self->ConstructL(); |
45 self->ConstructL(); |
50 // Destructor |
51 // Destructor |
51 // --------------------------------------------------------------------------- |
52 // --------------------------------------------------------------------------- |
52 // |
53 // |
53 CUsbWarningNotifier::~CUsbWarningNotifier() |
54 CUsbWarningNotifier::~CUsbWarningNotifier() |
54 { |
55 { |
55 FLOG( _L( "[USBOTGWATCHER]\tCUsbWarningNotifier::~CUsbWarningNotifier" ) ); |
56 LOG_FUNC |
56 } |
57 } |
57 |
58 |
58 // --------------------------------------------------------------------------- |
59 // --------------------------------------------------------------------------- |
59 // C++ constructor |
60 // C++ constructor |
60 // --------------------------------------------------------------------------- |
61 // --------------------------------------------------------------------------- |
61 // |
62 // |
62 CUsbWarningNotifier::CUsbWarningNotifier(RNotifier& aNotifier, |
63 CUsbWarningNotifier::CUsbWarningNotifier(RNotifier& aNotifier, |
63 CUsbNotifManager* aNotifManager, TUint aNotifId) : |
64 CUsbNotifManager& aNotifManager, TUint aNotifId) : |
64 CUsbNoteNotifier(aNotifier, aNotifManager, KUsbUiNotifOtgWarning, |
65 CUsbNoteNotifier(aNotifier, aNotifManager, KUsbUiNotifOtgWarning, |
65 aNotifId) |
66 aNotifId) |
66 { |
67 { |
67 FLOG( _L( "[USBOTGWATCHER]\tCUsbWarningNotifier::CUsbWarningNotifier" ) ); |
|
68 } |
68 } |
69 |
69 |
70 // ----------------------------------------------------------------------------- |
70 // ----------------------------------------------------------------------------- |
71 // Second-phase constructor |
71 // Second-phase constructor |
72 // ----------------------------------------------------------------------------- |
72 // ----------------------------------------------------------------------------- |
73 // |
73 // |
74 void CUsbWarningNotifier::ConstructL() |
74 void CUsbWarningNotifier::ConstructL() |
75 { |
75 { |
76 FLOG( _L( "[USBOTGWATCHER]\tCUsbWarningNotifier::ConstructL" ) ); |
76 LOG_FUNC |
77 |
77 |
78 CUsbNoteNotifier::ConstructL(); |
78 CUsbNoteNotifier::ConstructL(); |
79 } |
79 } |
80 |
80 |
81 // End of file |
81 // End of file |