equal
deleted
inserted
replaced
35 #include <spsettings.h> |
35 #include <spsettings.h> |
36 #include <spentry.h> |
36 #include <spentry.h> |
37 #include <spproperty.h> |
37 #include <spproperty.h> |
38 |
38 |
39 #include <cch.h> |
39 #include <cch.h> |
40 #include "vimpstdebugtrace.h" |
40 |
|
41 |
|
42 #include "uiservicetabtracer.h" |
41 |
43 |
42 _LIT8(KAppIdForBrand,"xsp"); |
44 _LIT8(KAppIdForBrand,"xsp"); |
43 _LIT8(KDefaultBrandIdForBrand,"xsp"); |
45 _LIT8(KDefaultBrandIdForBrand,"xsp"); |
44 |
46 |
45 // ================= MEMBER FUNCTIONS ======================= |
47 // ================= MEMBER FUNCTIONS ======================= |
90 // CVIMPSTDetailsViewBrandHandler::ConstructL() |
92 // CVIMPSTDetailsViewBrandHandler::ConstructL() |
91 // --------------------------------------------------------------------------- |
93 // --------------------------------------------------------------------------- |
92 // Symbian OS default constructor can leave. |
94 // Symbian OS default constructor can leave. |
93 void CVIMPSTDetailsViewBrandHandler::ConstructL() |
95 void CVIMPSTDetailsViewBrandHandler::ConstructL() |
94 { |
96 { |
95 |
97 TRACER_AUTO; |
96 iBrandId = HBufC8::NewL( KVIMPSTUISPSMaxPropertyLength ); |
98 iBrandId = HBufC8::NewL( KVIMPSTUISPSMaxPropertyLength ); |
97 TPtr8 brandIdPtr( iBrandId->Des() ); |
99 TPtr8 brandIdPtr( iBrandId->Des() ); |
98 |
100 |
99 TInt version = 1 ; // default |
101 TInt version = 1 ; // default |
100 |
102 |
363 // CVIMPSTDetailsViewBrandHandler::PropertyBrandVersionL() |
365 // CVIMPSTDetailsViewBrandHandler::PropertyBrandVersionL() |
364 // --------------------------------------------------------------------------- |
366 // --------------------------------------------------------------------------- |
365 // |
367 // |
366 void CVIMPSTDetailsViewBrandHandler::PropertyReadBrandL( TUint32 aServiceId ,TInt &aBrand, TServicePropertyName aPropertyName ) |
368 void CVIMPSTDetailsViewBrandHandler::PropertyReadBrandL( TUint32 aServiceId ,TInt &aBrand, TServicePropertyName aPropertyName ) |
367 { |
369 { |
|
370 TRACER_AUTO; |
368 CSPProperty* property = CSPProperty::NewLC(); |
371 CSPProperty* property = CSPProperty::NewLC(); |
369 iSettings->FindPropertyL( aServiceId, |
372 iSettings->FindPropertyL( aServiceId, |
370 aPropertyName, |
373 aPropertyName, |
371 *property ); |
374 *property ); |
372 if ( property ) |
375 if ( property ) |
413 // CVIMPSTDetailsViewBrandHandler::GetServiceNameL() |
416 // CVIMPSTDetailsViewBrandHandler::GetServiceNameL() |
414 // --------------------------------------------------------------------------- |
417 // --------------------------------------------------------------------------- |
415 // |
418 // |
416 void CVIMPSTDetailsViewBrandHandler::GetServiceNameL( TDes& aServiceName ) |
419 void CVIMPSTDetailsViewBrandHandler::GetServiceNameL( TDes& aServiceName ) |
417 { |
420 { |
|
421 TRACER_AUTO; |
418 CSPEntry* entry = CSPEntry::NewLC(); |
422 CSPEntry* entry = CSPEntry::NewLC(); |
419 TRAPD( err, iSettings->FindEntryL( iServiceId, *entry ) ); |
423 TRAPD( err, iSettings->FindEntryL( iServiceId, *entry ) ); |
420 if ( !err ) |
424 if ( !err ) |
421 { |
425 { |
422 aServiceName = entry->GetServiceName(); |
426 aServiceName = entry->GetServiceName(); |
428 // CVIMPSTDetailsViewBrandHandler::ServiceStoreUriL() |
432 // CVIMPSTDetailsViewBrandHandler::ServiceStoreUriL() |
429 // --------------------------------------------------------------------------- |
433 // --------------------------------------------------------------------------- |
430 // |
434 // |
431 const TDesC& CVIMPSTDetailsViewBrandHandler::ServiceStoreUriL() |
435 const TDesC& CVIMPSTDetailsViewBrandHandler::ServiceStoreUriL() |
432 { |
436 { |
|
437 TRACER_AUTO; |
433 if( !iServiceStoreUri ) |
438 if( !iServiceStoreUri ) |
434 { |
439 { |
435 iServiceStoreUri = HBufC::NewL( KVIMPST_MAX_LENGTH ); |
440 iServiceStoreUri = HBufC::NewL( KVIMPST_MAX_LENGTH ); |
436 TPtr serviceStorePtr( iServiceStoreUri->Des() ); |
441 TPtr serviceStorePtr( iServiceStoreUri->Des() ); |
437 |
442 |
449 // CVIMPSTDetailsViewBrandHandler::ServiceSupportedL( ) |
454 // CVIMPSTDetailsViewBrandHandler::ServiceSupportedL( ) |
450 // --------------------------------------------------------------------------- |
455 // --------------------------------------------------------------------------- |
451 // |
456 // |
452 TBool CVIMPSTDetailsViewBrandHandler::ServiceSupportedL( ) |
457 TBool CVIMPSTDetailsViewBrandHandler::ServiceSupportedL( ) |
453 { |
458 { |
|
459 TRACER_AUTO; |
454 TBool ret = EFalse; |
460 TBool ret = EFalse; |
455 CCch* cchClient = CCch::NewLC(); |
461 CCch* cchClient = CCch::NewLC(); |
456 if (cchClient) |
462 if (cchClient) |
457 { |
463 { |
458 CCchService* service = cchClient->GetService( iServiceId ); |
464 CCchService* service = cchClient->GetService( iServiceId ); |