|
1 /* |
|
2 * Copyright (c) 2002 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: Declares power mode setting notifier class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef BTNPWRNOTIFIER_H |
|
20 #define BTNPWRNOTIFIER_H |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 #include "btnotifier.h" // Base class |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * This class is used to confirm Bluetooth power status change from user. |
|
32 */ |
|
33 NONSHARABLE_CLASS(CBTPwrNotifier): public CBTNotifierBase |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 */ |
|
40 static CBTPwrNotifier* NewL(); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CBTPwrNotifier(); |
|
46 |
|
47 private: // Functions from base classes |
|
48 |
|
49 /** |
|
50 * From CBTNotifierBase Called when a notifier is first loaded |
|
51 * to allow any initial construction that is required. |
|
52 * @param None. |
|
53 * @return A structure containing priority and channel info. |
|
54 */ |
|
55 TNotifierInfo RegisterL(); |
|
56 |
|
57 /** |
|
58 * From CBTNotifierBase Used in asynchronous notifier launch to |
|
59 * store received parameters into members variables and |
|
60 * make needed initializations. |
|
61 * @param aBuffer A buffer containing received parameters |
|
62 * @param aReturnVal The return value to be passed back. |
|
63 * @param aMessage Should be completed when the notifier is deactivated. |
|
64 * @return None. |
|
65 */ |
|
66 void GetParamsL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage); |
|
67 |
|
68 private: |
|
69 |
|
70 /** |
|
71 * C++ default constructor. |
|
72 */ |
|
73 CBTPwrNotifier(); |
|
74 |
|
75 /** |
|
76 * Show Information Note and complete message. |
|
77 * @param None. |
|
78 * @return None. |
|
79 */ |
|
80 void ShowNoteAndCompleteMessageL(); |
|
81 |
|
82 }; |
|
83 |
|
84 #endif |
|
85 |
|
86 // End of File |