|
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: Calendar checkbox setting item |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CALENBOOLEANSETTINGITEM_H_ |
|
21 #define CALENBOOLEANSETTINGITEM_H_ |
|
22 |
|
23 //System include |
|
24 #include <e32def.h> |
|
25 #include <aknsettingitemlist.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CSelectionItemList; |
|
29 class CCalenCustomisationManager; |
|
30 class TCalenPluginAvailability; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 /** |
|
34 * CCalenCheckboxSettingItem - a checkbox setting item for calendar. |
|
35 * In this case, used to enable and disable plugins. |
|
36 */ |
|
37 class CCalenBooleanSettingItem : public CAknBinaryPopupSettingItem |
|
38 { |
|
39 public: |
|
40 |
|
41 static CCalenBooleanSettingItem* NewLC(TInt aId, |
|
42 TInt aOridinal, |
|
43 CCalenCustomisationManager& aCustMan); |
|
44 |
|
45 ~CCalenBooleanSettingItem(); |
|
46 |
|
47 private: |
|
48 CCalenBooleanSettingItem(TInt aId, |
|
49 CCalenCustomisationManager& aCustMan); |
|
50 |
|
51 void ConstructL(TInt aOrdinal); |
|
52 |
|
53 protected:// From base classes |
|
54 /** |
|
55 * Edits the item. |
|
56 */ |
|
57 void EditItemL( TBool aCalledFromMenu ); |
|
58 |
|
59 // From CAknBinaryPopupSettingItem |
|
60 virtual void StoreL(); |
|
61 |
|
62 virtual void LoadL(); |
|
63 |
|
64 private: |
|
65 /** |
|
66 * Matches a uid to an array item's uid. Used in Find(). |
|
67 */ |
|
68 static TBool PluginUidFinder( const TUid* aUid, |
|
69 const CImplementationInformation& aArrayItem ); |
|
70 |
|
71 |
|
72 private: |
|
73 CCalenCustomisationManager& iCustMan; //Not owns |
|
74 TBool iInternalValue; //Set internally to CAknBinaryPopupSettingItem |
|
75 |
|
76 }; |
|
77 |
|
78 #endif /*CALENBOOLEANSETTINGITEM_H_*/ |