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 warning notifier implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <e32std.h> |
|
19 #include <usbuinotif.h> |
|
20 |
|
21 #include "cusbnotifmanager.h" |
|
22 #include "cusbnotifier.h" |
|
23 #include "cusbwarningnotifier.h" |
|
24 |
|
25 #include "definitions.h" |
|
26 #include "debug.h" |
|
27 #include "panic.h" |
|
28 |
|
29 // ======== MEMBER FUNCTIONS ======== |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // Two-phased constructor. |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 CUsbWarningNotifier* CUsbWarningNotifier::NewL(RNotifier& aNotifier, |
|
36 CUsbNotifManager& aNotifManager, TUint aNotifId) |
|
37 { |
|
38 LOG_FUNC |
|
39 |
|
40 LOG1( "aNotifId = %d" , aNotifId); |
|
41 |
|
42 CUsbWarningNotifier* self = new (ELeave) CUsbWarningNotifier(aNotifier, |
|
43 aNotifManager, aNotifId); |
|
44 CleanupStack::PushL(self); |
|
45 self->ConstructL(); |
|
46 CleanupStack::Pop(self); |
|
47 return self; |
|
48 } |
|
49 |
|
50 // --------------------------------------------------------------------------- |
|
51 // Destructor |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 CUsbWarningNotifier::~CUsbWarningNotifier() |
|
55 { |
|
56 LOG_FUNC |
|
57 } |
|
58 |
|
59 // --------------------------------------------------------------------------- |
|
60 // C++ constructor |
|
61 // --------------------------------------------------------------------------- |
|
62 // |
|
63 CUsbWarningNotifier::CUsbWarningNotifier(RNotifier& aNotifier, |
|
64 CUsbNotifManager& aNotifManager, TUint aNotifId) : |
|
65 CUsbNoteNotifier(aNotifier, aNotifManager, KUsbUiNotifOtgWarning, |
|
66 aNotifId) |
|
67 { |
|
68 } |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // Second-phase constructor |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 void CUsbWarningNotifier::ConstructL() |
|
75 { |
|
76 LOG_FUNC |
|
77 |
|
78 CUsbNoteNotifier::ConstructL(); |
|
79 } |
|
80 |
|
81 // End of file |
|