Changeset 15311 for S60/trunk/S60WebUi
- Timestamp:
- 07/10/06 14:39:33 (3 years ago)
- Location:
- S60/trunk/S60WebUi/WebUi
- Files:
-
- 6 modified
-
data/WebUi.rss (modified) (1 diff)
-
inc/WebUi.hrh (modified) (1 diff)
-
inc/WebUiSessionAndSecurity.h (modified) (9 diffs)
-
inc/WebUiWindowContainer.h (modified) (9 diffs)
-
src/WebUiSessionAndSecurity.cpp (modified) (18 diffs)
-
src/WebUiWindowContainer.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
S60/trunk/S60WebUi/WebUi/data/WebUi.rss
r14648 r15311 181 181 182 182 MENU_ITEM { command = ECmdPageInfo; txt = "Page info"; }, 183 MENU_ITEM { command = EWmlCmdInfoSession; txt = "Session info"; },184 183 MENU_ITEM { command = EWmlCmdInfoSecurity; txt = "Security info"; } 185 184 }; -
S60/trunk/S60WebUi/WebUi/inc/WebUi.hrh
r14648 r15311 78 78 ECmdPageInfo, 79 79 ECmdNewWindow, 80 EWmlCmdInfoSession,81 80 EWmlCmdInfoSecurity, 82 81 ECmdCloseAll, -
S60/trunk/S60WebUi/WebUi/inc/WebUiSessionAndSecurity.h
r14549 r15311 3 3 * Name : WebUiSessionAndSecurity.h 4 4 * Part of : WebUI 5 * Interface : 6 * Description : 5 * Interface : 6 * Description : 7 7 * Version : 3.1 8 8 * 9 9 * Copyright (c) 2006, Nokia Corporation 10 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without13 * modification, are permitted provided that the following conditions14 * are met:15 * 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 16 16 * * Redistributions of source code must retain the above copyright 17 17 * notice, this list of conditions and the following disclaimer. … … 23 23 * contributors may be used to endorse or promote products derived 24 24 * from this software without specific prior written permission. 25 * 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS27 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT28 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR29 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT30 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,31 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT32 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,33 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE36 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH37 * DAMAGE.38 * 25 * 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 27 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 28 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 29 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 30 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 31 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 32 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 33 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 36 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 37 * DAMAGE. 38 * 39 39 * Please see file patentlicense.txt for further grants. 40 40 * ============================================================================== … … 47 47 // INCLUDE FILES 48 48 #include <BrCtlInterface.h> 49 #include <InternetConnectionManager.h>50 49 51 50 // FORWARD DECLARATIONS … … 61 60 */ 62 61 class CWebUiSessionAndSecurity : public CBase 63 {64 public: // Constructors and destructor 65 /**62 { 63 public: // Constructors and destructor 64 /** 66 65 * ~CWebUiSessionAndSecurity 67 66 * Destructor … … 70 69 * @return none 71 70 */ 72 ~CWebUiSessionAndSecurity();71 ~CWebUiSessionAndSecurity(); 73 72 74 73 /** … … 76 75 * Default constructor 77 76 * @since 3.1 78 * @param aConnection a Internet Connection Manager 79 * @param aEngine a window manager 80 * @return CWebUiSessionAndSecurity* 77 * @param aEngine a window manager 78 * @return CWebUiSessionAndSecurity* 81 79 */ 82 static CWebUiSessionAndSecurity* NewL(CInternetConnectionManager& aConnection, 83 CBrCtlInterface& aEngine); 80 static CWebUiSessionAndSecurity* NewL(CBrCtlInterface& aEngine); 84 81 85 public: 86 /** 87 * ShowSessionInfoL 88 * Shows session info dialog 89 * @since 3.1 90 * @param none 91 * @return void 92 */ 93 void ShowSessionInfoL(); 94 82 public: 95 83 /** 96 84 * ShowSecurityInfoL 97 85 * Shows security info dialog / certificate details 98 86 * @since 3.1 99 * @param none87 * @param none 100 88 * @return void 101 89 */ 102 90 void ShowSecurityInfoL(); 103 91 104 /**105 * ShowPageInfoL106 * Shows page info dialog 92 /** 93 * ShowPageInfoL 94 * Shows page info dialog 107 95 * @since 3.1 108 * @param none96 * @param none 109 97 * @return void 110 98 */ … … 113 101 114 102 private: 115 103 116 104 /** 117 105 * ConvertTDesC8ToHBufC16LC 118 * Converts TDesC8 buffer to HBufC16 106 * Converts TDesC8 buffer to HBufC16 119 107 * @since 3.1 120 108 * @param aSource 121 109 * @param aDestination ownership passed to caller 122 110 * @return void 123 */ 111 */ 124 112 void ConvertTDesC8ToHBufC16LC( TDesC8& aSource, HBufC16*& aDestination ); 125 113 126 114 /** 127 115 * FillDNinfoL 128 * Adds two distinguished names to security info 116 * Adds two distinguished names to security info 129 117 * (names are: CN, O, OU, L, C) 130 118 * @since 3.1 … … 132 120 * @param aBuf 133 121 * @return void 134 */ 122 */ 135 123 void FillDNinfoL ( TDNInfo aDNInfo, HBufC* aBuf ); 136 124 137 125 /** 138 126 * HttpSecurityInfoL … … 142 130 * @param aMessage 143 131 * @return void 144 */ 132 */ 145 133 void HttpSecurityInfoL( const TCertInfo* aCertInfo, HBufC& aMessage ); 146 134 147 135 private: 148 149 /**150 * CWebUiSessionAndSecurity151 * Constructor152 * @since 3.1153 * @param none154 * @return none155 */156 CWebUiSessionAndSecurity();157 136 158 private: 159 160 CInternetConnectionManager* iConnection; // not owned, not responsible for deleting 161 CBrCtlInterface* iEngine; // not owned, not responsible for deleting 137 /** 138 * CWebUiSessionAndSecurity 139 * Constructor 140 * @since 3.1 141 * @param none 142 * @return none 143 */ 144 CWebUiSessionAndSecurity(CBrCtlInterface& aEngine); 162 145 163 }; 146 private: 147 148 CBrCtlInterface* iEngine; // not owned, not responsible for deleting 149 150 }; 164 151 165 152 -
S60/trunk/S60WebUi/WebUi/inc/WebUiWindowContainer.h
r14549 r15311 10 10 * All rights reserved. 11 11 * 12 * Redistribution and use in source and binary forms, with or without13 * modification, are permitted provided that the following conditions14 * are met:12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 15 * 16 16 * * Redistributions of source code must retain the above copyright … … 24 24 * from this software without specific prior written permission. 25 25 * 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS27 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT28 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR29 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT30 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,31 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT32 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,33 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE36 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH37 * DAMAGE.26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 27 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 28 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 29 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 30 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 31 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 32 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 33 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 36 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 37 * DAMAGE. 38 38 * 39 39 * Please see file patentlicense.txt for further grants. … … 48 48 #include "WebUiObserver.h" 49 49 #include <BrCtlInterface.h> 50 50 51 51 // CONSTANTS 52 52 … … 137 137 * @return void 138 138 */ 139 void SaveAsBookmarkL();139 void SaveAsBookmarkL(); 140 140 141 141 /** … … 181 181 */ 182 182 CWebUiAutomatedTests* AutomatedTests(); 183 183 184 184 private: // Functions from base classes 185 185 … … 274 274 */ 275 275 TBool IsAutomatedTests(); 276 276 277 277 /** 278 278 * ChangeEditPane … … 378 378 TInt AddFolderToDbL( TDesC& aFolderName ); 379 379 380 /**381 * ErrorNoteL382 * Error note display383 * @since 3.1380 /** 381 * ErrorNoteL 382 * Error note display 383 * @since 3.1 384 384 * @param aPrompt 385 385 * @return void 386 */387 void ErrorNoteL( const TDesC& aPrompt );388 389 /**390 * InfoNoteL391 * Confirmation note display392 * @since 3.1393 * @param aPrompt394 * @return void395 */396 void InfoNoteL( const TDesC& aPrompt );386 */ 387 void ErrorNoteL( const TDesC& aPrompt ); 388 389 /** 390 * InfoNoteL 391 * Confirmation note display 392 * @since 3.1 393 * @param aPrompt 394 * @return void 395 */ 396 void InfoNoteL( const TDesC& aPrompt ); 397 397 398 398 private: // data … … 408 408 HBufC* iLastFind; // owned, responsible for deleting 409 409 410 CInternetConnectionManager* iConnection; // owned, responsible for deleting411 412 CActiveApDb* iDb; // owned, responsible for deleting413 410 TBool iCanLog; 414 411 … … 417 414 // CSchemeHandler* iSchemeHandler; 418 415 CDocumentHandler* iHandler; // owned, responsible for deleting 419 420 CWebUiAutomatedTests* iAutomatedTests;// owned, responsible for deleting 416 417 CWebUiAutomatedTests* iAutomatedTests;// owned, responsible for deleting 421 418 422 419 }; -
S60/trunk/S60WebUi/WebUi/src/WebUiSessionAndSecurity.cpp
r14549 r15311 3 3 * Name : WebUiSessionAndSecurity.cpp 4 4 * Part of : WebUI 5 * Interface : 6 * Description : 5 * Interface : 6 * Description : 7 7 * Version : 3.1 8 8 * 9 9 * Copyright (c) 2006, Nokia Corporation 10 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without13 * modification, are permitted provided that the following conditions14 * are met:15 * 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 16 16 * * Redistributions of source code must retain the above copyright 17 17 * notice, this list of conditions and the following disclaimer. … … 23 23 * contributors may be used to endorse or promote products derived 24 24 * from this software without specific prior written permission. 25 * 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS27 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT28 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR29 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT30 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,31 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT32 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,33 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE36 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH37 * DAMAGE.38 * 25 * 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 27 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 28 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 29 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 30 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 31 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 32 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 33 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 34 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 35 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 36 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 37 * DAMAGE. 38 * 39 39 * Please see file patentlicense.txt for further grants. 40 40 * ============================================================================== … … 66 66 // ---------------------------------------------------- 67 67 // 68 CWebUiSessionAndSecurity::CWebUiSessionAndSecurity() 68 CWebUiSessionAndSecurity::CWebUiSessionAndSecurity(CBrCtlInterface& aEngine) 69 : iEngine(&aEngine) 69 70 { 70 71 } … … 75 76 // ---------------------------------------------------- 76 77 // 77 CWebUiSessionAndSecurity* CWebUiSessionAndSecurity::NewL( CInternetConnectionManager& aConnection,78 CBrCtlInterface& aEngine)78 CWebUiSessionAndSecurity* CWebUiSessionAndSecurity::NewL( 79 CBrCtlInterface& aEngine) 79 80 { 80 CWebUiSessionAndSecurity* session = new(ELeave) CWebUiSessionAndSecurity(); 81 CleanupStack::PushL( session ); 82 session->iConnection = &aConnection; 83 84 session->iEngine = &aEngine; 85 CleanupStack::Pop(); // session 86 return session; 81 CWebUiSessionAndSecurity* session = new(ELeave) CWebUiSessionAndSecurity(aEngine); 82 return session; 87 83 } 88 84 … … 96 92 97 93 // ---------------------------------------------------- 98 // CWebUiSessionAndSecurity::ShowSessionInfoL99 // ----------------------------------------------------100 //101 void CWebUiSessionAndSecurity::ShowSessionInfoL()102 {103 HBufC* header = StringLoader::LoadLC( R_WML_SESSION_VIEW_TITLE );104 HBufC* message = HBufC::NewLC( KWmlSessionInfoMaxLength );105 106 HBufC* value = StringLoader::LoadLC( R_WML_SESSION_VIEW_AP );107 message->Des().Append( *value );108 message->Des().Append( TChar( '\n' ) );109 CleanupStack::PopAndDestroy(); // value110 111 value = iConnection->CurrentApNameLC();112 message->Des().Append( value->Des() );113 message->Des().Append( TChar( '\n' ) );114 CleanupStack::PopAndDestroy(); // value115 116 // Bearer type117 value = StringLoader::LoadLC( R_WML_SESSION_VIEW_BT );118 message->Des().Append( *value );119 message->Des().Append( TChar( '\n' ) );120 CleanupStack::PopAndDestroy(); // value121 122 TApBearerType bt = iConnection->CurrentBearerTypeL();123 switch ( bt )124 {125 case EApBearerTypeCSD:126 {127 value = StringLoader::LoadLC( R_WML_BEARER_DATA_CALL );128 break;129 }130 case EApBearerTypeGPRS:131 {132 value = StringLoader::LoadLC( R_WML_BEARER_PACKET_DATA );133 break;134 }135 case EApBearerTypeHSCSD:136 {137 value = StringLoader::LoadLC( R_WML_BEARER_HSCSD );138 break;139 }140 default:141 value = HBufC::NewLC( 1 );142 break;143 }144 145 message->Des().Append( value->Des() );146 message->Des().Append( TChar( '\n' ) );147 CleanupStack::PopAndDestroy(); // value148 149 // Max conn. speed150 value = StringLoader::LoadLC( R_WML_SESSION_VIEW_CS );151 message->Des().Append( *value );152 message->Des().Append( TChar( '\n' ) );153 CleanupStack::PopAndDestroy(); // value154 155 TApCallSpeed speed = iConnection->CurrentConnectionSpeed();156 value = HBufC::NewLC( sizeof( KWmlConnSpeed43200 ) );157 switch ( speed )158 {159 case KSpeed9600:160 {161 *value = KWmlConnSpeed9600();162 break;163 }164 case KSpeed14400:165 {166 *value = KWmlConnSpeed14400();167 break;168 }169 case KSpeed19200:170 {171 *value = KWmlConnSpeed19200();172 break;173 }174 case KSpeed28800:175 {176 *value = KWmlConnSpeed28800();177 break;178 }179 case KSpeed38400:180 {181 *value = KWmlConnSpeed38400();182 break;183 }184 case KSpeed43200:185 {186 *value = KWmlConnSpeed43200();187 break;188 }189 case KSpeedAutobaud: // default value190 default:191 {192 CleanupStack::PopAndDestroy(); // value193 value = StringLoader::LoadLC( R_WML_CONN_SPEED_AD );194 break;195 }196 }197 198 message->Des().Append( value->Des() );199 message->Des().Append( TChar( '\n' ) );200 CleanupStack::PopAndDestroy(); // value201 202 CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL( *message );203 dlg->PrepareLC( R_BROWSER_SESSION_INFO );204 CAknPopupHeadingPane* hPane = dlg->QueryHeading();205 if ( hPane )206 {207 hPane->SetTextL( *header );208 }209 dlg->RunLD();210 CleanupStack::PopAndDestroy( 2 ); // header, message211 }212 213 // ----------------------------------------------------214 94 // CWebUiSessionAndSecurity::ShowSecurityInfoL 215 95 // ---------------------------------------------------- … … 217 97 void CWebUiSessionAndSecurity::ShowSecurityInfoL() 218 98 { 219 const TCertInfo* certInfo = iEngine->CertInfo();99 const TCertInfo* certInfo = iEngine->CertInfo(); 220 100 221 101 HBufC* header; 222 HBufC* message = HBufC::NewLC( KWmlSecurityInfoMaxLength ); 223 224 225 header = StringLoader::LoadLC( R_WML_SECURITY_VIEW_TITLE ); 102 HBufC* message = HBufC::NewLC( KWmlSecurityInfoMaxLength ); 103 104 105 header = StringLoader::LoadLC( R_WML_SECURITY_VIEW_TITLE ); 226 106 HttpSecurityInfoL( certInfo, *message); 227 107 … … 247 127 { 248 128 TInt p( 0 ); 249 HBufC* url = iEngine->PageInfoLC( TBrCtlDefs::EPageInfoUrl );250 HBufC* header = StringLoader::LoadLC( R_BROWSER_QUERY_CURRENT_PAGE );129 HBufC* url = iEngine->PageInfoLC( TBrCtlDefs::EPageInfoUrl ); 130 HBufC* header = StringLoader::LoadLC( R_BROWSER_QUERY_CURRENT_PAGE ); 251 131 HBufC* urltxt = StringLoader::LoadLC( R_BROWSER_QUERY_CURRENT_PAGE_URL ); 252 HBufC* urlMessage = HBufC::NewLC( url->Length() + urltxt->Length() + 2 );253 254 urlMessage->Des().Append(*urltxt );255 urlMessage->Des().Append(_L("\n"));256 urlMessage->Des().Append(*url);257 258 CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL( *urlMessage );259 dlg->PrepareLC( R_BROWSER_PAGE_INFO );260 261 CAknPopupHeadingPane* hPane = dlg->QueryHeading();262 if ( hPane )263 {264 hPane->SetTextL( *header );265 }266 dlg->RunLD();267 268 CleanupStack::PopAndDestroy(4); // url, header, urltxt,urlMessage132 HBufC* urlMessage = HBufC::NewLC( url->Length() + urltxt->Length() + 2 ); 133 134 urlMessage->Des().Append(*urltxt ); 135 urlMessage->Des().Append(_L("\n")); 136 urlMessage->Des().Append(*url); 137 138 CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL( *urlMessage ); 139 dlg->PrepareLC( R_BROWSER_PAGE_INFO ); 140 141 CAknPopupHeadingPane* hPane = dlg->QueryHeading(); 142 if ( hPane ) 143 { 144 hPane->SetTextL( *header ); 145 } 146 dlg->RunLD(); 147 148 CleanupStack::PopAndDestroy(4); // url, header, urltxt,urlMessage 269 149 } 270 150 … … 275 155 // 276 156 void CWebUiSessionAndSecurity::HttpSecurityInfoL( const TCertInfo* aCertInfo, 277 HBufC& aMessage )157 HBufC& aMessage ) 278 158 { 279 159 HBufC* value; 280 HBufC* prompt; 281