57
|
1 |
/*
|
|
2 |
* ============================================================================
|
|
3 |
* Name : btnotifgeninfonotifier.h
|
|
4 |
* Part of : BTProximity / BTProximity
|
|
5 |
* Description : Class for the generic info notifier.
|
|
6 |
*
|
|
7 |
* Copyright © 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
8 |
* All rights reserved.
|
|
9 |
* This component and the accompanying materials are made available
|
|
10 |
* under the terms of "Eclipse Public License v1.0"
|
|
11 |
* which accompanies this distribution, and is available
|
|
12 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
13 |
*
|
|
14 |
* Initial Contributors:
|
|
15 |
* Nokia Corporation - initial contribution.
|
|
16 |
*
|
|
17 |
* Contributors:
|
|
18 |
* Nokia Corporation
|
|
19 |
* ============================================================================
|
|
20 |
* Template version: 4.2
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef BTNOTIFGENINFONOTIFIER_H
|
|
24 |
#define BTNOTIFGENINFONOTIFIER_H
|
|
25 |
|
|
26 |
|
|
27 |
#include "bluetoothnotification.h"
|
|
28 |
#include "btnotifserver.h"
|
|
29 |
#include <btservices/btdevextension.h>
|
|
30 |
#include <hb/hbcore/hbsymbianvariant.h>
|
|
31 |
|
|
32 |
/**
|
|
33 |
* CBTNotifGenInfoNotifier for generic info notifier
|
|
34 |
*
|
|
35 |
* @since Symbian^4
|
|
36 |
*/
|
|
37 |
NONSHARABLE_CLASS( CBTNotifGenInfoNotifier ) :
|
|
38 |
public CBase,
|
|
39 |
public MBTNotificationResult
|
|
40 |
{
|
|
41 |
|
|
42 |
public:
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Two-phased constructor.
|
|
46 |
* @param aServer Pointer to our parent
|
|
47 |
*/
|
|
48 |
static CBTNotifGenInfoNotifier* NewL( CBTNotifServer* aServer );
|
|
49 |
|
|
50 |
/**
|
|
51 |
* Destructor.
|
|
52 |
*/
|
|
53 |
virtual ~CBTNotifGenInfoNotifier();
|
|
54 |
|
|
55 |
/**
|
|
56 |
* Processes a message from a notifier client related to settings.
|
|
57 |
*
|
|
58 |
* @since Symbian^4
|
|
59 |
* @param aMessage The message containing the details of the client request.
|
|
60 |
*/
|
|
61 |
void HandleNotifierRequestL( const RMessage2& aMessage );
|
|
62 |
|
|
63 |
private:
|
|
64 |
// from base class MBTNotificationResult
|
|
65 |
|
|
66 |
/**
|
|
67 |
* From MBTNotificationResult.
|
|
68 |
* Handle an intermediate result from a user query.
|
|
69 |
* This function is called if the user query passes information
|
|
70 |
* back before it has finished i.e. is dismissed. The final acceptance/
|
|
71 |
* denial of a query is passed back in MBRNotificationClosed.
|
|
72 |
*
|
|
73 |
* @since Symbian^4
|
|
74 |
* @param aData the returned data. The actual format
|
|
75 |
* is dependent on the actual notifier.
|
|
76 |
*/
|
|
77 |
virtual void MBRDataReceived( CHbSymbianVariantMap& aData );
|
|
78 |
|
|
79 |
/**
|
|
80 |
* From MBTNotificationResult.
|
|
81 |
* The notification is finished. The resulting data (e.g. user input or
|
|
82 |
* acceptance/denial of the query) is passed back here.
|
|
83 |
*
|
|
84 |
* @since Symbian^4
|
|
85 |
* @param aErr KErrNone or one of the system-wide error codes.
|
|
86 |
* @param aData the returned data. The actual format
|
|
87 |
* is dependent on the actual notifier.
|
|
88 |
*/
|
|
89 |
virtual void MBRNotificationClosed( TInt aError, const TDesC8& aData );
|
|
90 |
|
|
91 |
// From MDevDiscoveryObserver
|
|
92 |
|
|
93 |
private:
|
|
94 |
|
|
95 |
CBTNotifGenInfoNotifier( CBTNotifServer* aServer );
|
|
96 |
|
|
97 |
void ConstructL();
|
|
98 |
|
|
99 |
void ShowNotificationL(const RMessage2& aMessage);
|
|
100 |
|
|
101 |
private: // data
|
|
102 |
|
|
103 |
/**
|
|
104 |
* Reference to our parent the server class.
|
|
105 |
* Not own.
|
|
106 |
*/
|
|
107 |
CBTNotifServer* iServer;
|
|
108 |
|
|
109 |
/**
|
|
110 |
* Pointer to an outstanding user interaction.
|
|
111 |
* Not own.
|
|
112 |
*/
|
|
113 |
CBluetoothNotification* iNotification;
|
70
|
114 |
|
|
115 |
/**
|
|
116 |
* Pointer to the entering SAP notification.
|
|
117 |
*
|
|
118 |
*/
|
|
119 |
CBluetoothNotification* iEnterSAPNotification;
|
|
120 |
|
57
|
121 |
};
|
|
122 |
|
|
123 |
#endif // BTNOTIFDEVICESELECTOR_H
|