|
1 /* |
|
2 * Copyright (c) 2008 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSTSSEPROMPT_H |
|
20 #define CSTSSEPROMPT_H |
|
21 |
|
22 // INCLUDE |
|
23 #include <e32base.h> |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CAknGlobalNote; |
|
30 class CAOSynchronizer; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Shows a security element prompt. Security element prompt informs |
|
36 * the user to insert a security element. The actual text shown in the |
|
37 * prompt is given by the midlet. |
|
38 */ |
|
39 NONSHARABLE_CLASS(CSTSSEPrompt): public CBase |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 */ |
|
46 static CSTSSEPrompt* NewLC(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CSTSSEPrompt(); |
|
52 |
|
53 public: // New functions |
|
54 |
|
55 /** |
|
56 * Shows the prompt with an OK button. |
|
57 */ |
|
58 void DisplayPromptL(const TDesC& aPrompt); |
|
59 |
|
60 private: // Constructors and destructor |
|
61 |
|
62 /** |
|
63 * C++ constructor |
|
64 */ |
|
65 CSTSSEPrompt(); |
|
66 |
|
67 /** |
|
68 * Second phase constructor |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 |
|
73 private: // data |
|
74 |
|
75 // displays the prompt asynchronously, owned |
|
76 CAknGlobalNote* iGlobalNote; |
|
77 // waits for the prompt to finish, owned |
|
78 CAOSynchronizer* iSynchronizer; |
|
79 |
|
80 }; |
|
81 |
|
82 |
|
83 |
|
84 #endif // CSTSSEPROMPT_H |