|
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: Setting page class for "Alert for" setting. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CPROFILEALERTFORSETTINGPAGE_H |
|
21 #define CPROFILEALERTFORSETTINGPAGE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <akncheckboxsettingpage.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 /** |
|
28 * Setting page class for "Alert for" setting. |
|
29 * CProfileAlertForSettingPage extends CAknCheckBoxSettingPage in order to |
|
30 * hide left softkey when no contact groups are selected. However, it is |
|
31 * the responsibility of the setting page observer to call UpdateCbaL, when |
|
32 * setting changes. |
|
33 * |
|
34 * @lib ProfileSettingsView.lib |
|
35 * @since 1.2 |
|
36 */ |
|
37 NONSHARABLE_CLASS( CProfileAlertForSettingPage ) |
|
38 : public CAknCheckBoxSettingPage |
|
39 { |
|
40 |
|
41 public: // Constructor |
|
42 |
|
43 /** |
|
44 * C++ constructor. |
|
45 * @param aResourceID Setting page resource id. |
|
46 * @param aItemArray The array which contains all setting items. |
|
47 */ |
|
48 CProfileAlertForSettingPage( |
|
49 TInt aResourceID, CSelectionItemList* aItemArray ); |
|
50 |
|
51 public: // New functions |
|
52 |
|
53 /** |
|
54 * Hides left softkey (Ok) if no items are selected. |
|
55 */ |
|
56 void UpdateCba(); |
|
57 |
|
58 }; |
|
59 |
|
60 #endif // CPROFILEALERTFORSETTINGPAGE_H |
|
61 |
|
62 // End of File |