equal
deleted
inserted
replaced
48 |
48 |
49 // CONSTANTS |
49 // CONSTANTS |
50 |
50 |
51 /// Tab index for Bookmarks View. |
51 /// Tab index for Bookmarks View. |
52 LOCAL_D const TInt KBookmarkTabIndex = 0; |
52 LOCAL_D const TInt KBookmarkTabIndex = 0; |
|
53 const TInt KMaxTitleLength = 512; |
53 |
54 |
54 // ================= MEMBER FUNCTIONS ======================= |
55 // ================= MEMBER FUNCTIONS ======================= |
55 |
56 |
56 // --------------------------------------------------------- |
57 // --------------------------------------------------------- |
57 // CBrowserBookmarksContainer::NewL |
58 // CBrowserBookmarksContainer::NewL |
121 iSearchPane->SetTextModeItalicL(); |
122 iSearchPane->SetTextModeItalicL(); |
122 HBufC* text = iSearchPane->GetTextL(); |
123 HBufC* text = iSearchPane->GetTextL(); |
123 CleanupStack::PushL( text ); |
124 CleanupStack::PushL( text ); |
124 if ( !text->Length() ) |
125 if ( !text->Length() ) |
125 { |
126 { |
126 iSearchPane->SetTextL( *iDefaultSearchText ); |
127 //TODO: read possible title valu from cenrep, if not found seyt the default text |
|
128 HBufC* searchProvider = HBufC::NewLC( KMaxTitleLength ); |
|
129 TPtr searchProviderPtr = searchProvider->Des(); |
|
130 |
|
131 View().ApiProvider().Preferences().GetStringValueL( KBrowserSearchProviderTitle, |
|
132 KMaxTitleLength , searchProviderPtr); |
|
133 if( searchProvider->Length() == 0 ) |
|
134 { |
|
135 iSearchPane->SetTextL( *iDefaultSearchText ); |
|
136 } |
|
137 else |
|
138 { |
|
139 iSearchPane->SetTextL( searchProviderPtr ); |
|
140 } |
|
141 CleanupStack::PopAndDestroy(searchProvider); |
|
142 |
127 } |
143 } |
128 CleanupStack::PopAndDestroy( text ); |
144 CleanupStack::PopAndDestroy( text ); |
129 } |
145 } |
130 |
146 |
131 iGotoPane->BeginEditingL(); |
147 iGotoPane->BeginEditingL(); |