|
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 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: Base class for all Media Settings containers.* |
|
15 */ |
|
16 |
|
17 |
|
18 // Version : %version: 2 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MPSETTINGSBASECONTAINER_H |
|
23 #define MPSETTINGSBASECONTAINER_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <coeccntx.h> |
|
27 #include <eikclb.h> |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * CMPSettingsBaseContainer container class |
|
33 * |
|
34 * @lib MPSettBase.dll |
|
35 * @since 2.0 |
|
36 */ |
|
37 class CMPSettingsBaseContainer : public CCoeControl |
|
38 { |
|
39 public: // constructors and destructor |
|
40 |
|
41 /* |
|
42 * C++ constructor. |
|
43 */ |
|
44 IMPORT_C CMPSettingsBaseContainer(); |
|
45 |
|
46 /** |
|
47 * Constructs all common parts of the container. |
|
48 * @param aRect Listbox control's rect. |
|
49 */ |
|
50 IMPORT_C void ConstructL(const TRect& aRect); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 IMPORT_C virtual ~CMPSettingsBaseContainer(); |
|
56 |
|
57 public: // Functions from base classes |
|
58 |
|
59 /** |
|
60 * From CCoeControl. |
|
61 */ |
|
62 IMPORT_C void SizeChanged(); |
|
63 |
|
64 /** |
|
65 * From CCoeControl |
|
66 */ |
|
67 IMPORT_C void HandleResourceChange(TInt aType); |
|
68 |
|
69 /** |
|
70 * From CCoeControl. |
|
71 */ |
|
72 IMPORT_C TInt CountComponentControls() const; |
|
73 |
|
74 /** |
|
75 * From CCoeControl. |
|
76 */ |
|
77 IMPORT_C CCoeControl* ComponentControl(TInt aIndex) const; |
|
78 |
|
79 /** |
|
80 * From CCoeControl. |
|
81 */ |
|
82 IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, |
|
83 TEventCode aType); |
|
84 |
|
85 public: // New |
|
86 /** |
|
87 * Provides access to listbox control. |
|
88 * @since 2.0 |
|
89 * @return pointer to listbox control. |
|
90 */ |
|
91 IMPORT_C virtual CEikTextListBox* ListBox(); |
|
92 |
|
93 /** |
|
94 * Sets selected item in the listbox. |
|
95 * @param aIndex Index of the item. |
|
96 */ |
|
97 IMPORT_C void SetSelectedItem( TInt aIndex ); |
|
98 |
|
99 |
|
100 protected: // New functions |
|
101 /** |
|
102 * Constructs component controls owned by the child class. |
|
103 * Pure virtual. |
|
104 * @since 2.0 |
|
105 */ |
|
106 virtual void ConstructComponentControlsL() = 0; |
|
107 |
|
108 private: // New functions |
|
109 /** |
|
110 * Returns title resource id. |
|
111 * @since 2.0 |
|
112 * @return title resource id. |
|
113 */ |
|
114 virtual TInt TitleResourceId() = 0; |
|
115 |
|
116 protected: // Data |
|
117 CCoeControl* iComponentControl; // Not owned |
|
118 CEikTextListBox* iListBox; // Not owned |
|
119 }; |
|
120 |
|
121 #endif //MPSETTINGSBASECONTAINER_H |
|
122 |
|
123 // End of File |