equal
deleted
inserted
replaced
2308 } |
2308 } |
2309 AppendProgressL ( aContent, aResult->iProgress ); |
2309 AppendProgressL ( aContent, aResult->iProgress ); |
2310 |
2310 |
2311 if ( aResult->iApps.Count() > 0 ) |
2311 if ( aResult->iApps.Count() > 0 ) |
2312 { |
2312 { |
2313 // 5 * KMaxFileName should be enought |
2313 // 6 * KMaxFileName should be enought |
2314 // ( 4 items of TFileName and uid + type + size + 6* "#" ) |
2314 // ( 5 items of TFileName and uid + type + size + 7* "#" ) |
2315 HBufC8* buf = HBufC8::NewLC( 5 * KMaxFileName ); |
2315 HBufC8* buf = HBufC8::NewLC( 6 * KMaxFileName ); |
2316 TPtr8 ptrBuf = buf->Des(); |
2316 TPtr8 ptrBuf = buf->Des(); |
2317 |
2317 |
2318 aContent->applications = new ( ELeave ) ConML_Applications_t(); |
2318 aContent->applications = new ( ELeave ) ConML_Applications_t(); |
2319 for ( TInt i=0; i<aResult->iApps.Count(); i++) |
2319 for ( TInt i=0; i<aResult->iApps.Count(); i++) |
2320 { |
2320 { |
2328 app->data->name = new ( ELeave ) pcdata_t(); |
2328 app->data->name = new ( ELeave ) pcdata_t(); |
2329 app->data->name->SetDataL( BufToDesLC( |
2329 app->data->name->SetDataL( BufToDesLC( |
2330 aResult->iApps[i]->iName)); |
2330 aResult->iApps[i]->iName)); |
2331 CleanupStack::PopAndDestroy(); // BufToDesLC |
2331 CleanupStack::PopAndDestroy(); // BufToDesLC |
2332 |
2332 |
2333 // create uid: UID # Type # Size # Version # Vendor # Parent app. name # |
2333 // create uid: UID # Type # Size # Version # Vendor # Parent app. name # WidgetBundleId # |
2334 LOGGER_WRITE( "CSConPCConnSession::AppendListInstalledAppsResultsL() : Create Uid" ); |
2334 LOGGER_WRITE( "CSConPCConnSession::AppendListInstalledAppsResultsL() : Create Uid" ); |
2335 |
2335 |
2336 ptrBuf.Copy( UidToDesLC( aResult->iApps[i]->iUid ) ); |
2336 ptrBuf.Copy( UidToDesLC( aResult->iApps[i]->iUid ) ); |
2337 CleanupStack::PopAndDestroy(); // UidToDesLC |
2337 CleanupStack::PopAndDestroy(); // UidToDesLC |
2338 |
2338 |
2354 CleanupStack::PopAndDestroy(); // BufToDesLC |
2354 CleanupStack::PopAndDestroy(); // BufToDesLC |
2355 |
2355 |
2356 ptrBuf.Append( KSConAppInfoSeparator ); |
2356 ptrBuf.Append( KSConAppInfoSeparator ); |
2357 ptrBuf.Append( BufToDesLC( aResult->iApps[i]->iParentName ) ); |
2357 ptrBuf.Append( BufToDesLC( aResult->iApps[i]->iParentName ) ); |
2358 CleanupStack::PopAndDestroy(); // BufToDesLC |
2358 CleanupStack::PopAndDestroy(); // BufToDesLC |
|
2359 |
|
2360 ptrBuf.Append( KSConAppInfoSeparator ); |
|
2361 if (aResult->iApps[i]->iWidgetBundleId) |
|
2362 { |
|
2363 ptrBuf.Append( BufToDesLC( *aResult->iApps[i]->iWidgetBundleId ) ); |
|
2364 CleanupStack::PopAndDestroy(); // BufToDesLC |
|
2365 } |
2359 |
2366 |
2360 ptrBuf.Append( KSConAppInfoSeparator ); |
2367 ptrBuf.Append( KSConAppInfoSeparator ); |
2361 |
2368 |
2362 LOGGER_WRITE( "CSConPCConnSession::AppendListInstalledAppsResultsL() : set data" ); |
2369 LOGGER_WRITE( "CSConPCConnSession::AppendListInstalledAppsResultsL() : set data" ); |
2363 app->data->uid = new ( ELeave ) pcdata_t(); |
2370 app->data->uid = new ( ELeave ) pcdata_t(); |