153 CreateContentInfoArrayL( *contentArray, aCount ); |
153 CreateContentInfoArrayL( *contentArray, aCount ); |
154 // connect to widget registry |
154 // connect to widget registry |
155 RWidgetRegistryClientSession registryClient; |
155 RWidgetRegistryClientSession registryClient; |
156 User::LeaveIfError( registryClient.Connect() ); |
156 User::LeaveIfError( registryClient.Connect() ); |
157 CleanupClosePushL( registryClient ); |
157 CleanupClosePushL( registryClient ); |
|
158 TSize dummySize(40,40); |
|
159 CWmResourceLoader* resLoader = NULL; // not used in this case |
|
160 while( contentArray->Array().Count() > 0 ) |
|
161 { |
|
162 CWmWidgetData* data = CWmWidgetData::NewL( |
|
163 dummySize, *resLoader, |
|
164 contentArray->Array()[0], |
|
165 ®istryClient); |
158 |
166 |
159 while( contentArray->Array().Count() > 0 ) |
|
160 { |
|
161 CWmWidgetData* data = CWmWidgetData::NewL( |
|
162 contentArray->Array()[0], ®istryClient); |
|
163 contentArray->Array().Remove( 0 ); |
167 contentArray->Array().Remove( 0 ); |
164 CleanupStack::PushL( data ); |
168 CleanupStack::PushL( data ); |
165 aArray.AppendL( data ); |
169 aArray.AppendL( data ); |
166 CleanupStack::Pop( data ); |
170 CleanupStack::Pop( data ); |
167 } |
171 } |