author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Tue, 14 Sep 2010 21:37:10 +0300 | |
branch | RCL_3 |
changeset 61 | 269724087bed |
parent 56 | 9386f31cc85b |
child 72 | 4b59561a31c0 |
permissions | -rw-r--r-- |
56 | 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 generic information notifier class. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef BTNGENERICINFONNOTIFIER_H |
|
20 |
#define BTNGENERICINFONNOTIFIER_H |
|
21 |
||
22 |
// INCLUDES |
|
23 |
||
24 |
#include "btnotifier.h" // Base class |
|
25 |
||
26 |
// FORWARD DECLARATIONS |
|
27 |
class CAknInformationNote; |
|
28 |
||
29 |
// CLASS DECLARATION |
|
30 |
NONSHARABLE_CLASS(CBTGenericInfoNotifier) : public CBTNotifierBase |
|
31 |
{ |
|
32 |
public: // Constructors and destructor |
|
33 |
||
34 |
/** |
|
35 |
* Two-phased constructor. |
|
36 |
*/ |
|
37 |
static CBTGenericInfoNotifier* NewL(); |
|
38 |
||
39 |
/** |
|
40 |
* Destructor. |
|
41 |
*/ |
|
42 |
virtual ~CBTGenericInfoNotifier(); |
|
43 |
||
44 |
private: // Functions from base classes |
|
45 |
||
46 |
/** |
|
47 |
* From CBTNotifierBase Called when a notifier is first loaded |
|
48 |
* to allow any initial construction that is required. |
|
49 |
* @param None. |
|
50 |
* @return A structure containing priority and channel info. |
|
51 |
*/ |
|
52 |
TNotifierInfo RegisterL(); |
|
53 |
||
54 |
/** From CBTNotifierBase Synchronic notifier launch. |
|
55 |
* @param aBuffer Received parameter data. |
|
56 |
* @return A pointer to return value. |
|
57 |
*/ |
|
58 |
TPtrC8 StartL(const TDesC8& aBuffer ); |
|
59 |
||
60 |
/** |
|
61
269724087bed
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
61 |
* From CBTNotifierBase |
269724087bed
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
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:
56
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:
56
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:
56
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:
56
diff
changeset
|
66 |
* context so that waiting dialogs can be freely used if need be. |
56 | 67 |
* @return None. |
68 |
*/ |
|
61
269724087bed
Revision: 201033
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
56
diff
changeset
|
69 |
void ProcessStartParamsL(); |
56 | 70 |
|
71 |
/** |
|
72 |
* From CBTNotifierBase |
|
73 |
*/ |
|
74 |
void HandleGetDeviceCompletedL(const CBTDevice* aDev); |
|
75 |
||
76 |
private: |
|
77 |
||
78 |
/** |
|
79 |
* Parse the data out of the message that is sent by the client of the notifier. |
|
80 |
* @param aBuffer A package buffer containing received parameters. |
|
81 |
* @return None. |
|
82 |
*/ |
|
83 |
void ProcessParamBufferL(const TDesC8& aBuffer, TBool aSyncCall); |
|
84 |
||
85 |
/** |
|
86 |
* C++ default constructor. |
|
87 |
*/ |
|
88 |
CBTGenericInfoNotifier(); |
|
89 |
||
90 |
/** |
|
91 |
* Show Information note and complete message. |
|
92 |
*/ |
|
93 |
void ShowNoteAndCompleteL(TBool aSyncCall); |
|
94 |
||
95 |
private: |
|
96 |
RBuf iQueryMessage; |
|
97 |
TInt iMessageResourceId; |
|
98 |
TSecondaryDisplayBTnotifDialogs iSecondaryDisplayCommand; |
|
99 |
}; |
|
100 |
||
101 |
#endif |
|
102 |
||
103 |
// End of File |