45
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 - 2007 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: Test notifiers_api
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
/*
|
|
20 |
*INCLUDES
|
|
21 |
*/
|
|
22 |
#ifndef C_CACTIVEEXAMPLE_H
|
|
23 |
#define C_CACTIVEEXAMPLE_H
|
|
24 |
|
|
25 |
#include <e32base.h> // For CActive, link against: euser.lib
|
|
26 |
#include <e32std.h> // For RTimer, link against: euser.lib
|
|
27 |
#include <fbs.h>
|
|
28 |
#include<bamdesca.h>
|
|
29 |
|
|
30 |
/*
|
|
31 |
* class declare
|
|
32 |
*/
|
|
33 |
class CAknGlobalConfirmationQuery;
|
|
34 |
class CAknGlobalListQuery;
|
|
35 |
class CAknGlobalMsgQuery;
|
|
36 |
class CAknGlobalNote;
|
|
37 |
class CAknGlobalProgressDialog;
|
|
38 |
class CAknGlobalListMsgQuery;
|
|
39 |
|
|
40 |
/*
|
|
41 |
* This class inherit from CActive, it is used to test the asynchronous function
|
|
42 |
*/
|
|
43 |
class CActiveExample : public CActive
|
|
44 |
{
|
|
45 |
public:
|
|
46 |
/*
|
|
47 |
* This function is used to test the showconfirmationqueryL function
|
|
48 |
*/
|
|
49 |
static void ShowAndCancelConfirmationQueryLL( const TDesC& aPrompt );
|
|
50 |
/*
|
|
51 |
* This function is used to test the showconfirmationqueryL function
|
|
52 |
*/
|
|
53 |
void ShowAndCancelConfirmationQueryL( const TDesC& aPrompt );
|
|
54 |
/*
|
|
55 |
* This function is used to test the showlistqueryL function
|
|
56 |
*/
|
|
57 |
static void ShowAndCancelListQueryLL( const MDesCArray* aItems );
|
|
58 |
/*
|
|
59 |
* This function is used to test the showlistqueryL function
|
|
60 |
*/
|
|
61 |
void ShowAndCancelListQueryL( const MDesCArray* aItems );
|
|
62 |
/*
|
|
63 |
* This function is used to test the showmsgqueryL function
|
|
64 |
*/
|
|
65 |
static void ShowMsgQueryLL( const TDesC& aMsgText,
|
|
66 |
TInt aSoftkeys,
|
|
67 |
const TDesC& aHeaderText,
|
|
68 |
const TDesC& aHeaderImageFile,
|
|
69 |
TInt aImageId,
|
|
70 |
TInt aImageMaskId );
|
|
71 |
/*
|
|
72 |
* This function is used to test the showmsgqueryL function
|
|
73 |
*/
|
|
74 |
void ShowMsgQueryL( const TDesC& aMsgText,
|
|
75 |
TInt aSoftkeys,
|
|
76 |
const TDesC& aHeaderText,
|
|
77 |
const TDesC& aHeaderImageFile,
|
|
78 |
TInt aImageId,
|
|
79 |
TInt aImageMaskId );
|
|
80 |
/*
|
|
81 |
* This function is used to test the shownotel function
|
|
82 |
*/
|
|
83 |
static void ShowNoteLL( TAknGlobalNoteType aType, const TDesC& aNoteText );
|
|
84 |
/*
|
|
85 |
* This function is used to test the shownotel function
|
|
86 |
*/
|
|
87 |
void ShowNoteL( TAknGlobalNoteType aType, const TDesC& aNoteText );
|
|
88 |
/*
|
|
89 |
* This function is used to test the showprogressdialogl function and
|
|
90 |
* refer to the cancel function
|
|
91 |
*/
|
|
92 |
static void ShowAndCancelProgressDialogLL( const TDesC& aPrompt );
|
|
93 |
/*
|
|
94 |
* This function is used to test the showprogressdialogl function and
|
|
95 |
* refer to the cancel function
|
|
96 |
*/
|
|
97 |
void ShwoAndCancelProgressDialogL( const TDesC& aPrompt );
|
|
98 |
/*
|
|
99 |
* NewL fuction
|
|
100 |
*/
|
|
101 |
static CActiveExample* NewL();
|
|
102 |
/*
|
|
103 |
* NewLC function
|
|
104 |
*/
|
|
105 |
static CActiveExample* NewLC();
|
|
106 |
/*
|
|
107 |
* Destructor
|
|
108 |
*/
|
|
109 |
~CActiveExample();
|
|
110 |
/*
|
|
111 |
* DoCancel function
|
|
112 |
*/
|
|
113 |
void DoCancel();
|
|
114 |
/*
|
|
115 |
* This function is used to test the ShowListMsgQueryL function
|
|
116 |
*/
|
|
117 |
void ShowTheListMsgQueryL();
|
|
118 |
|
|
119 |
protected:
|
|
120 |
/*
|
|
121 |
* RunL function
|
|
122 |
*/
|
|
123 |
void RunL();
|
|
124 |
|
|
125 |
private:
|
|
126 |
/*
|
|
127 |
* Constructor
|
|
128 |
*/
|
|
129 |
CActiveExample();
|
|
130 |
/*
|
|
131 |
* Constructl function
|
|
132 |
*/
|
|
133 |
void ConstructL();
|
|
134 |
|
|
135 |
private:
|
|
136 |
CAknGlobalConfirmationQuery* iConfirmationquery;
|
|
137 |
CAknGlobalListQuery* iListQuery;
|
|
138 |
CAknGlobalMsgQuery* iMsgQuery;
|
|
139 |
CAknGlobalNote* iNote;
|
|
140 |
CAknGlobalProgressDialog* iProgressDialog;
|
|
141 |
CAknGlobalListMsgQuery* iGlobalListMsgQuery;
|
|
142 |
};
|
|
143 |
|
|
144 |
#endif
|
|
145 |
|
|
146 |
// End of File
|