|
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: Generic CT Query Dialog |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __CTCONFIRMATIONQUERYDIALOG_H |
|
21 #define __CTCONFIRMATIONQUERYDIALOG_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknQueryDialog.h> |
|
25 |
|
26 // DATA TYPES |
|
27 enum TCTQueryDialogType |
|
28 { |
|
29 ECTConfirmationDialog, |
|
30 ECTErrorDialog, |
|
31 ECTInfoDialog, |
|
32 ECTWarningDialog, |
|
33 ECTOkDialog |
|
34 }; |
|
35 |
|
36 |
|
37 // CLASS DECLARATION |
|
38 |
|
39 /** |
|
40 * Query dialog class |
|
41 * |
|
42 * @lib CTSecDlgNotifier.dll |
|
43 * @since Series 60 2.6 |
|
44 */ |
|
45 NONSHARABLE_CLASS( CCTQueryDialog ): public CAknQueryDialog |
|
46 { |
|
47 |
|
48 public: // Constructors and destructor |
|
49 |
|
50 ~CCTQueryDialog(); |
|
51 |
|
52 public: // Functions from CAknQueryDialog |
|
53 |
|
54 /** |
|
55 * RunDlgLD launches the Text Query Dialog |
|
56 * @param aStatus Client status |
|
57 * @param aRetVal ETrue for positive user response, EFalse for negative |
|
58 * @param aQueryText Text for query dialog |
|
59 * @param aDlgButtonResourceId ID of softkey resource to be used in the dlg (Default is Yes-No). |
|
60 * @param aDlgType Dialog layout type |
|
61 */ |
|
62 static void RunDlgLD( |
|
63 TRequestStatus& aStatus, |
|
64 TBool& aRetVal, |
|
65 const TDesC& aQueryText, |
|
66 TInt aDlgButtonResourceId = 0, |
|
67 const TCTQueryDialogType aDlgType = ECTConfirmationDialog); |
|
68 |
|
69 private: |
|
70 |
|
71 /** |
|
72 * C++ default constructor. |
|
73 */ |
|
74 CCTQueryDialog( |
|
75 TRequestStatus& aStatus, |
|
76 TBool& aRetVal, |
|
77 const TDesC& aQueryText, |
|
78 TInt aDlgButtonResourceId, |
|
79 const TCTQueryDialogType aDlgType); |
|
80 |
|
81 private: // Functions from CAknQueryDialog |
|
82 |
|
83 /** |
|
84 * |
|
85 */ |
|
86 void PreLayoutDynInitL(); |
|
87 /** |
|
88 * |
|
89 */ |
|
90 void PostLayoutDynInitL(); |
|
91 |
|
92 /** |
|
93 * |
|
94 */ |
|
95 TBool OkToExitL( TInt aButtonId ); |
|
96 |
|
97 private: // Data |
|
98 TCTQueryDialogType iDlgType; |
|
99 TInt iDlgButtonResourceId; |
|
100 const TDesC& iQueryText; |
|
101 TRequestStatus* iClientStatus; |
|
102 TBool& iRetVal; |
|
103 }; |
|
104 |
|
105 #endif // __CTCONFIRMATIONQUERYDIALOG_H |
|
106 |
|
107 // End of File |