author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 21:37:10 +0300 | |
branch | RCL_3 |
changeset 24 | 269724087bed |
parent 23 | 9386f31cc85b |
permissions | -rw-r--r-- |
23 | 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 BTNPAIREDDEVSETTNOTIFIER_H |
|
20 |
#define BTNPAIREDDEVSETTNOTIFIER_H |
|
21 |
||
22 |
// INCLUDES |
|
23 |
#include "btnotifier.h" // Base class |
|
24 |
||
25 |
// FORWARD DECLARATIONS |
|
26 |
||
27 |
// CLASS DECLARATION |
|
28 |
NONSHARABLE_CLASS(CBTPairedDevSettNotifier) : public CBTNotifierBase |
|
29 |
{ |
|
30 |
public: // Constructors and destructor |
|
31 |
||
32 |
/** |
|
33 |
* Two-phased constructor. |
|
34 |
*/ |
|
35 |
static CBTPairedDevSettNotifier* NewL(); |
|
36 |
||
37 |
/** |
|
38 |
* Destructor. |
|
39 |
*/ |
|
40 |
virtual ~CBTPairedDevSettNotifier(); |
|
41 |
||
42 |
private: // Functions from base classes |
|
43 |
||
44 |
/** |
|
45 |
* From CBTNotifierBase Called when a notifier is first loaded |
|
46 |
* to allow any initial construction that is required. |
|
47 |
* @param None. |
|
48 |
* @return A structure containing priority and channel info. |
|
49 |
*/ |
|
50 |
TNotifierInfo RegisterL(); |
|
51 |
||
52 |
/** |
|
53 |
* From CBTNotifierBase The notifier has been deactivated |
|
54 |
* so resources can be freed and outstanding messages completed. |
|
55 |
* @param None. |
|
56 |
* @return None. |
|
57 |
*/ |
|
58 |
void Cancel(); |
|
59 |
||
60 |
/** |
|
24
269724087bed
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
61 |
* From CBTNotifierBase |
269724087bed
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
62 |
* Used in asynchronous notifier launch to start the actual processing |
269724087bed
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
63 |
* of parameters received in StartL. StartL just stores a copy of the |
269724087bed
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
64 |
* parameter buffer, schedules a callback to call this method and returns |
269724087bed
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
65 |
* ASAP, so the actual work begins here, safely outside of the StartL |
269724087bed
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
66 |
* context so that waiting dialogs can be freely used if need be. |
23 | 67 |
* @return None. |
68 |
*/ |
|
24
269724087bed
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
69 |
void ProcessStartParamsL(); |
23 | 70 |
|
71 |
/** |
|
72 |
* From CBTNotifierBase Updates a currently active notifier. |
|
73 |
* @param aBuffer The updated data. |
|
74 |
* @return A pointer to return value. |
|
75 |
*/ |
|
76 |
TPtrC8 UpdateL(const TDesC8& aBuffer); |
|
77 |
||
78 |
/** |
|
79 |
* From CBTNotifierBase |
|
80 |
*/ |
|
81 |
void HandleGetDeviceCompletedL(const CBTDevice* aDev); |
|
82 |
||
83 |
private: |
|
84 |
||
85 |
/** |
|
86 |
* Parse the data out of the message that is sent by the client of the notifier. |
|
87 |
* @param aBuffer A package buffer containing received parameters. |
|
88 |
* @return None. |
|
89 |
*/ |
|
90 |
void ProcessParamBufferL(const TDesC8& aBuffer); |
|
91 |
||
92 |
/** |
|
93 |
* Query to assign the friendly name when adding it into paired device list |
|
94 |
* if the current device name is not unique in the paired devices view. |
|
95 |
*/ |
|
96 |
void QueryRenameDeviceL(const CBTDevice& aDevice); |
|
97 |
||
98 |
/** |
|
99 |
* C++ default constructor. |
|
100 |
*/ |
|
101 |
CBTPairedDevSettNotifier(); |
|
102 |
||
103 |
/** |
|
104 |
* Process pairing error code to show corresponding notes. |
|
105 |
* @param aErr The pairing error code from HCI error. |
|
106 |
* @return The resouce ID of notes |
|
107 |
*/ |
|
108 |
TInt ProcessPairingErrorCode( const TInt aErr ); |
|
109 |
||
110 |
private: |
|
111 |
||
112 |
TSecondaryDisplayBTnotifDialogs iSecondaryDisplayCommand; |
|
113 |
TBool iIsMessageQuery; |
|
114 |
TInt iPairingStatus; |
|
115 |
||
116 |
}; |
|
117 |
||
118 |
#endif //BTNPAIREDDEVSETTNOTIFIER_H |
|
119 |
||
120 |
// End of File |