|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef S60BTDIALOG_H |
|
21 #define S60BTDIALOG_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <btnotif.h> |
|
25 #include <btextnotifiers.h> |
|
26 |
|
27 |
|
28 namespace java |
|
29 { |
|
30 namespace bluetooth |
|
31 { |
|
32 |
|
33 |
|
34 |
|
35 /** |
|
36 * This class shows dialogs for BT power management and |
|
37 * discoverability mode. |
|
38 * |
|
39 */ |
|
40 NONSHARABLE_CLASS(CS60BTDialog) |
|
41 { |
|
42 public: |
|
43 |
|
44 static CS60BTDialog* NewLC(); |
|
45 |
|
46 ~CS60BTDialog(); |
|
47 |
|
48 /** |
|
49 * Displays BT query dialog. |
|
50 * |
|
51 * @param[in] aAppName application name. |
|
52 * @param[in] aInstalling True if called during installation, |
|
53 * False if called during runtime. |
|
54 * @param[in] aQueryType identifies which query to show. |
|
55 * @return boolean telling user response to query. |
|
56 */ |
|
57 TBool ShowBTQueryDialog(const TDesC& aAppName, const TBool aInstalling, |
|
58 TBTGenericQueryNoteType aQueryType); |
|
59 |
|
60 /** |
|
61 * Cancels the asynchronous request to the query list dialog. |
|
62 * |
|
63 */ |
|
64 void DoCancel(); |
|
65 |
|
66 |
|
67 private: |
|
68 |
|
69 CS60BTDialog(); |
|
70 |
|
71 void ConstructL(); |
|
72 |
|
73 private: // data |
|
74 TRequestStatus mStatus; |
|
75 RNotifier mNotifier; |
|
76 TBTGenericQueryNotiferParamsPckg mQueryParamsPckg; |
|
77 TPckgBuf<TBool> mQueryResult; |
|
78 }; |
|
79 |
|
80 } //end namespace java |
|
81 } //end namespace bluetooth |
|
82 |
|
83 #endif // S60BTDIALOG_H |