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