|
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 waiting notifier implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_USBWAITNOTIFIER_H |
|
19 #define C_USBWAITNOTIFIER_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 #include "cusbnotenotifier.h" |
|
24 |
|
25 /** |
|
26 * Class implements functionality of the notifier which wait for answer from user |
|
27 * Class does not provide method to get response from the user |
|
28 */ |
|
29 NONSHARABLE_CLASS( CUsbWaitNotifier) : public CUsbNoteNotifier |
|
30 { |
|
31 public: |
|
32 |
|
33 /** |
|
34 * Two-phased constructor. |
|
35 * @param aNotifier RNotifier API |
|
36 * @param aNotifManager Owner of the class, will destroy the object when needed |
|
37 * @param aNotifId Id of the notifier |
|
38 * @return Pointer to the new instance of CUsbWaitNotifier |
|
39 */ |
|
40 static CUsbWaitNotifier* NewL(RNotifier& aNotifier, |
|
41 CUsbNotifManager& aNotifManager, TUint aNotifId); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CUsbWaitNotifier(); |
|
47 |
|
48 private: |
|
49 |
|
50 /** |
|
51 * Default constructor |
|
52 * @param aNotifier RNotifier API |
|
53 * @param aNotifManager Owner of the class, will destroy the object when needed |
|
54 * @param aNotifId Id of the notifier |
|
55 */ |
|
56 CUsbWaitNotifier(RNotifier& aNotifier, CUsbNotifManager& aNotifManager, |
|
57 TUint aNotifId); |
|
58 |
|
59 /** |
|
60 * 2nd phase constructor |
|
61 */ |
|
62 void ConstructL(); |
|
63 |
|
64 }; |
|
65 |
|
66 #endif // C_USBWAITNOTIFIER_H |