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