|
1 /* |
|
2 * Copyright (c) 2006-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: Handles the dialog used in tutorial mode |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef VUICTUTORIALMESSAGEDIALOG_H |
|
20 #define VUICTUTORIALMESSAGEDIALOG_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <coecntrl.h> |
|
24 |
|
25 #include <secondarydisplay/vuisecondarydisplayapi.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMessageQueryDialog; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * Handles the dialog used in tutorial mode |
|
33 */ |
|
34 NONSHARABLE_CLASS( CTutorialMessageDialog ) : public CCoeControl |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Symbian two-phased constructor. |
|
40 */ |
|
41 static CTutorialMessageDialog* NewL(); |
|
42 |
|
43 /** |
|
44 * Symbian two-phased constructor. |
|
45 */ |
|
46 static CTutorialMessageDialog* NewLC(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CTutorialMessageDialog(); |
|
52 |
|
53 |
|
54 public: // New functions |
|
55 |
|
56 /** |
|
57 * Shows a message dialog |
|
58 * @param aDialogResourceId Resource id of the dialog |
|
59 * @param aHeaderId Resource id of header text |
|
60 * @param aMessagePart1Id Resource id of message text part 1 |
|
61 * @param aMessagePart2Id Resource id of message text part 2 |
|
62 * @param aCommandResourceId Resource id of the softkeys |
|
63 * @param aDialog Secondary display dialog id |
|
64 * @return Keycode of the pressed key |
|
65 */ |
|
66 TInt ShowMessageDialogL( TInt aDialogResourceId, |
|
67 TInt aHeaderId, |
|
68 TInt aMessagePart1Id, |
|
69 TInt aMessagePart2Id, |
|
70 TInt aCommandResourceId, |
|
71 SecondaryDisplay::TVUISecondaryDisplayDialogs aDialog = |
|
72 SecondaryDisplay::ECmdVoiceNoNote ); |
|
73 |
|
74 public: // Functions from base classes |
|
75 |
|
76 private: |
|
77 |
|
78 /** |
|
79 * C++ default constructor. |
|
80 */ |
|
81 CTutorialMessageDialog(); |
|
82 |
|
83 /** |
|
84 * Symbian OS 2nd phase constructor. |
|
85 */ |
|
86 void ConstructL(); |
|
87 |
|
88 /** |
|
89 * Concatenates given strings and inserts a space between the strings |
|
90 * @param aString1 First string |
|
91 * @param aString2 Second string |
|
92 * @return Concatenated string |
|
93 */ |
|
94 HBufC* ConcatenateLC( const TDesC& aString1, const TDesC& aString2 ); |
|
95 |
|
96 private: // Data |
|
97 |
|
98 // Message dialog |
|
99 CMessageQueryDialog* iDlg; |
|
100 |
|
101 // Current command set |
|
102 TInt iCommands; |
|
103 }; |
|
104 |
|
105 #endif // VUICTUTORIALMESSAGEDIALOG_H |
|
106 |
|
107 // End of File |