|
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: Container for Call Image settings view. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PSLNCALLIMAGEPLUGINCONTAINER_H |
|
20 #define PSLNCALLIMAGEPLUGINCONTAINER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <pslnfwbasecontainer.h> |
|
24 #include <centralrepository.h> |
|
25 |
|
26 // CONSTANTS |
|
27 // Central repository values for key KThemesCallImageSupport |
|
28 enum TPslnCRCallImageValues |
|
29 { |
|
30 EPlsnCRCallImageNone = 0, |
|
31 EPlsnCRUserDefinedImage, |
|
32 EPlsnCRThemeImage |
|
33 }; |
|
34 |
|
35 // Setting values, order must be same than in R_PSLN_CI_VIEW_LBX |
|
36 enum TPslnCallImageSetting |
|
37 { |
|
38 EPlsnCallImageThemeImage, |
|
39 EPlsnCallImageNone, |
|
40 EPlsnCallImageUserDefinedImage |
|
41 }; |
|
42 |
|
43 // FORWARD DECLARATION |
|
44 // CLASS DECLARATION |
|
45 |
|
46 /** |
|
47 * CPslnCallImagePluginContainer container class. |
|
48 * @since Series 60_3.1 |
|
49 * |
|
50 */ |
|
51 class CPslnCallImagePluginContainer : |
|
52 public CPslnFWBaseContainer |
|
53 { |
|
54 public: // Constructors and destructor |
|
55 |
|
56 /** |
|
57 * Symbian OS constructor. |
|
58 * @param aRect Listbox's rect. |
|
59 * |
|
60 */ |
|
61 void ConstructL( const TRect& aRect ); |
|
62 |
|
63 /** |
|
64 * Destructor. |
|
65 */ |
|
66 ~CPslnCallImagePluginContainer(); |
|
67 |
|
68 public: //new |
|
69 |
|
70 /** |
|
71 * Updates listbox's item's value. |
|
72 * @param aItemId specific item ID (ignored). |
|
73 */ |
|
74 void UpdateListBoxL(); |
|
75 |
|
76 /** |
|
77 * Gets currently active index of given property. |
|
78 * @return index of currently active property, or error code. |
|
79 */ |
|
80 TInt CurrentSelectionIndexL(); |
|
81 |
|
82 protected: |
|
83 |
|
84 void ConstructListBoxL( TInt aResLbxId ); |
|
85 |
|
86 private: // new |
|
87 |
|
88 void CreateListBoxItemsL(); |
|
89 |
|
90 /** |
|
91 * From CCoeControl. Gets help context. |
|
92 */ |
|
93 void GetHelpContext( TCoeHelpContext& aContext ) const; |
|
94 |
|
95 private: // data |
|
96 |
|
97 // Listbox array for items. |
|
98 CDesCArray* iItemArray; |
|
99 |
|
100 // List of items from resources. |
|
101 CDesCArrayFlat* iItems; |
|
102 |
|
103 // One setting item. |
|
104 HBufC* iItemBuf; |
|
105 }; |
|
106 |
|
107 #endif //PSLNCALLIMAGEPLUGINCONTAINER_H |
|
108 |
|
109 // End of File |