|
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 the License "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: Video on Demand schedule settings item class.* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CVCXNSSCHEDULESETTINGSSETTINGITEM_H |
|
21 #define CVCXNSSCHEDULESETTINGSSETTINGITEM_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "CVcxNsScheduleSettingsViewContainer.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CVcxNsScheduleSettingsList; |
|
28 |
|
29 /** |
|
30 * |
|
31 * VoD schedule settings view setting item class. |
|
32 * |
|
33 */ |
|
34 class CVcxNsScheduleSettingsSettingItem : public CBase |
|
35 { |
|
36 public: // constructors and destructor |
|
37 |
|
38 /** |
|
39 * Two-phased constructor |
|
40 * |
|
41 * @param Parent container |
|
42 * @param Scheduled download settings |
|
43 */ |
|
44 static CVcxNsScheduleSettingsSettingItem* NewL( |
|
45 CVcxNsScheduleSettingsViewContainer* aParent, |
|
46 CVcxNsServiceSettings& aScheduleSettings ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CVcxNsScheduleSettingsSettingItem(); |
|
52 |
|
53 private: // Construction. |
|
54 |
|
55 /** |
|
56 * Default C++ constructor. |
|
57 * |
|
58 * @param aParent Parent container |
|
59 */ |
|
60 CVcxNsScheduleSettingsSettingItem( |
|
61 CVcxNsScheduleSettingsViewContainer* aParent ); |
|
62 |
|
63 /** |
|
64 * EPOC constructor. |
|
65 * |
|
66 * @param aScheduleSettings Scheduled download settings |
|
67 */ |
|
68 void ConstructL( CVcxNsServiceSettings& aScheduleSettings ); |
|
69 |
|
70 public: // New methods |
|
71 |
|
72 /** |
|
73 * Activate setting item. |
|
74 */ |
|
75 void ActivateL(); |
|
76 |
|
77 /** |
|
78 * Deactivate settings item. |
|
79 */ |
|
80 void Deactivate(); |
|
81 |
|
82 /** |
|
83 * Edit selected item. |
|
84 */ |
|
85 void ChangeSelectedItemL(); |
|
86 |
|
87 /** |
|
88 * Returns pointer to the settings list box. |
|
89 * Ownership is not transferred. |
|
90 * |
|
91 * @return List box pointer. |
|
92 */ |
|
93 CVcxNsScheduleSettingsList* Listbox(); |
|
94 |
|
95 private: // Data |
|
96 |
|
97 /** |
|
98 * Pointer to parent container |
|
99 * Not own. |
|
100 */ |
|
101 CVcxNsScheduleSettingsViewContainer* iParent; |
|
102 |
|
103 /** |
|
104 * Settings list box |
|
105 * Own. |
|
106 */ |
|
107 CVcxNsScheduleSettingsList* iListbox; |
|
108 |
|
109 }; |
|
110 |
|
111 #endif /* CVCXNSSCHEDULESETTINGSSETTINGITEM_H */ |
|
112 |
|
113 // End of File |