equal
deleted
inserted
replaced
19 // INCLUDES |
19 // INCLUDES |
20 #include "vimpstutils.h" |
20 #include "vimpstutils.h" |
21 #include "StringLoader.h" |
21 #include "StringLoader.h" |
22 //#include "vimpstdebugprint.h" //TODO: for later use |
22 //#include "vimpstdebugprint.h" //TODO: for later use |
23 #include <coemain.h> |
23 #include <coemain.h> |
|
24 #include "uiservicetabtracer.h" |
24 |
25 |
25 // CONSTANTS |
26 // CONSTANTS |
26 // TODO: For later use |
27 // TODO: For later use |
27 // general colon needed in various places |
28 // general colon needed in various places |
28 //_LIT( KColon, ":" ); |
29 //_LIT( KColon, ":" ); |
37 // VIMPSTUtils::DisplayId |
38 // VIMPSTUtils::DisplayId |
38 // ----------------------------------------------------------------------------- |
39 // ----------------------------------------------------------------------------- |
39 // |
40 // |
40 EXPORT_C TPtrC VIMPSTUtils::DisplayId( const TDesC& aId, TBool /*aListHiding*/ ) |
41 EXPORT_C TPtrC VIMPSTUtils::DisplayId( const TDesC& aId, TBool /*aListHiding*/ ) |
41 { |
42 { |
|
43 TRACER_AUTO; |
42 TPtrC ret( aId ); |
44 TPtrC ret( aId ); |
43 |
45 |
44 //TODO: Modify the function body when it is required later |
46 //TODO: Modify the function body when it is required later |
45 |
47 |
46 |
48 |
85 // give ownership to caller |
87 // give ownership to caller |
86 // ----------------------------------------------------------------------------- |
88 // ----------------------------------------------------------------------------- |
87 // |
89 // |
88 EXPORT_C HBufC* VIMPSTUtils::LoadResourceL( TInt aResourceId ) |
90 EXPORT_C HBufC* VIMPSTUtils::LoadResourceL( TInt aResourceId ) |
89 { |
91 { |
|
92 TRACER_AUTO; |
90 CCoeEnv* env = CCoeEnv::Static(); |
93 CCoeEnv* env = CCoeEnv::Static(); |
91 HBufC* ret = NULL; |
94 HBufC* ret = NULL; |
92 if(env) |
95 if(env) |
93 { |
96 { |
94 ret = env->AllocReadResourceL(aResourceId); |
97 ret = env->AllocReadResourceL(aResourceId); |
106 // give ownership to caller |
109 // give ownership to caller |
107 // ----------------------------------------------------------------------------- |
110 // ----------------------------------------------------------------------------- |
108 // |
111 // |
109 EXPORT_C HBufC* VIMPSTUtils::LoadResourceL( TInt aResourceId , const TDesC& aPrompt) |
112 EXPORT_C HBufC* VIMPSTUtils::LoadResourceL( TInt aResourceId , const TDesC& aPrompt) |
110 { |
113 { |
|
114 TRACER_AUTO; |
111 CCoeEnv* env = CCoeEnv::Static(); |
115 CCoeEnv* env = CCoeEnv::Static(); |
112 HBufC* ret = NULL; |
116 HBufC* ret = NULL; |
113 if(env) |
117 if(env) |
114 { |
118 { |
115 ret = StringLoader::LoadL(aResourceId,aPrompt); |
119 ret = StringLoader::LoadL(aResourceId,aPrompt); |
127 // See header for details. |
131 // See header for details. |
128 // --------------------------------------------------------- |
132 // --------------------------------------------------------- |
129 // |
133 // |
130 EXPORT_C HBufC* VIMPSTUtils::CombineStringFromResourceLC( TInt aResourceId1, TInt aResourceId2 ) |
134 EXPORT_C HBufC* VIMPSTUtils::CombineStringFromResourceLC( TInt aResourceId1, TInt aResourceId2 ) |
131 { |
135 { |
|
136 TRACER_AUTO; |
132 // empty texts |
137 // empty texts |
133 _LIT ( KPSUIEmptyStringHeader, "%S\n%S" ); |
138 _LIT ( KPSUIEmptyStringHeader, "%S\n%S" ); |
134 HBufC* emptyText = CCoeEnv::Static()->AllocReadResourceLC( |
139 HBufC* emptyText = CCoeEnv::Static()->AllocReadResourceLC( |
135 aResourceId1 ); |
140 aResourceId1 ); |
136 |
141 |