91 // --------------------------------------------------------------------------- |
90 // --------------------------------------------------------------------------- |
92 // ReadConfigResourceL |
91 // ReadConfigResourceL |
93 // --------------------------------------------------------------------------- |
92 // --------------------------------------------------------------------------- |
94 // |
93 // |
95 void TPhoneTouchButtonConfig::ReadConfigResourceL( |
94 void TPhoneTouchButtonConfig::ReadConfigResourceL( |
96 const TFixedArray<TInt,KTelButtonsConfigKeyCount>& aKeyValues ) |
95 const TFixedArray<TInt,KTelButtonsConfigKeyCount>& /*aKeyValues*/ ) |
97 { |
96 { |
98 TResourceReader reader; |
|
99 CCoeEnv::Static()->CreateResourceReaderLC( |
|
100 reader, |
|
101 R_PHONEUI_TOUCH_BUTTON_CONFIG ); |
|
102 |
|
103 TInt configItemCount = reader.ReadInt16(); |
|
104 for ( TInt i=0; i < configItemCount; i++ ) |
|
105 { |
|
106 TInt buttonSetId = reader.ReadInt16(); |
|
107 TInt buttonSetCount = reader.ReadInt16(); |
|
108 for ( TInt j=0; j < buttonSetCount ; j++ ) |
|
109 { |
|
110 TInt buttonSetResourceId = reader.ReadInt32(); |
|
111 if ( j == aKeyValues[ buttonSetId ] ) |
|
112 { |
|
113 iConfiguration[ buttonSetId ] = buttonSetResourceId; |
|
114 } |
|
115 } |
|
116 } |
|
117 |
|
118 CleanupStack::PopAndDestroy(); // reader |
|
119 } |
97 } |
120 |
98 |
121 // --------------------------------------------------------------------------- |
99 // --------------------------------------------------------------------------- |
122 // MapToCenRepKey |
100 // MapToCenRepKey |
123 // --------------------------------------------------------------------------- |
101 // --------------------------------------------------------------------------- |