|
1 /* |
|
2 * Copyright (c) 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: IMSWCheckBoxPage.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IMSWCHECKBOXPAGE_H |
|
21 #define IMSWCHECKBOXPAGE_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <akncheckboxsettingpage.h> |
|
25 |
|
26 /** |
|
27 * Check box settings dialog. |
|
28 * This class adds into CAknCheckBoxSettingPage an enforcement where |
|
29 * at least one box has to be checked when the dialog is exited by OK |
|
30 * softkey. Left softkey is set empty if all boxes are unchecked. |
|
31 * |
|
32 * @since S60 3.2 |
|
33 */ |
|
34 NONSHARABLE_CLASS( CIMSSettingsWizardCheckBoxPage ): public CAknCheckBoxSettingPage |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 CIMSSettingsWizardCheckBoxPage(TInt aResourceID, |
|
39 CSelectionItemList* aItemArray, TBool aMustFillOne ); |
|
40 |
|
41 virtual ~CIMSSettingsWizardCheckBoxPage(); |
|
42 |
|
43 |
|
44 protected: // Functions from base classes |
|
45 |
|
46 // From CAknListBoxSettingPage |
|
47 virtual void UpdateSettingL(); |
|
48 |
|
49 private: // Functions from base classes |
|
50 |
|
51 // Make unavailable to set itemArray after construction as we have |
|
52 // a copy of item array pointer |
|
53 void SetSelectionItemArrayL( CSelectionItemList* aItemArray ); |
|
54 |
|
55 private: // Data |
|
56 |
|
57 // This is private in CAknCheckBoxSettingPage. Has to keep own copy. |
|
58 CSelectionItemList* iItemArray; // not owned |
|
59 |
|
60 TBool iMustFillOne; // true if at least one box must be filled |
|
61 TInt iLeftSkResource; // current left softkey resource ID |
|
62 }; |
|
63 |
|
64 #endif // IMSWTEXTEDITORPAGE_H |
|
65 |
|
66 // End of File |