equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007 - 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
29 #include <data_caging_path_literals.hrh> |
29 #include <data_caging_path_literals.hrh> |
30 #include <phoneappcommands.hrh> |
30 #include <phoneappcommands.hrh> |
31 #include <phoneui.mbg> |
31 #include <phoneui.mbg> |
32 |
32 |
33 #include "cphonetoolbarcontroller.h" |
33 #include "cphonetoolbarcontroller.h" |
34 #include "PhoneUI.hrh" |
34 #include "phoneui.hrh" |
35 #include "PhoneRssBase.h" |
35 #include "phonerssbase.h" |
36 #include "TPhoneCmdParamInteger.h" |
36 #include "tphonecmdparaminteger.h" |
37 #include "TPhoneCmdParamBoolean.h" |
37 #include "tphonecmdparamboolean.h" |
38 #include "PhoneLogger.h" |
38 #include "phonelogger.h" |
39 |
39 |
40 |
40 |
41 _LIT ( KPhoneMifFileName, "phoneui.mif" ); |
41 _LIT ( KPhoneMifFileName, "phoneui.mif" ); |
42 _LIT( KToolbarButtonEmptyStr, "" ); |
42 _LIT( KToolbarButtonEmptyStr, "" ); |
43 |
43 |
301 skinId = KAknsIIDNone; |
301 skinId = KAknsIIDNone; |
302 break; |
302 break; |
303 } |
303 } |
304 return skinId; |
304 return skinId; |
305 } |
305 } |
|
306 |
|
307 // --------------------------------------------------------------------------- |
306 // ShowToolbar |
308 // ShowToolbar |
307 // |
309 // |
308 // --------------------------------------------------------------------------- |
310 // --------------------------------------------------------------------------- |
309 // |
311 // |
310 void CPhoneToolbarController::ShowToolbar() |
312 void CPhoneToolbarController::ShowToolbar() |
311 { |
313 { |
312 __LOGMETHODSTARTEND( EPhoneUIView, "CPhoneToolbarController::ShowToolbar()" ); |
314 __LOGMETHODSTARTEND( EPhoneUIView, "CPhoneToolbarController::ShowToolbar()" ); |
|
315 |
313 if ( iToolbar ) |
316 if ( iToolbar ) |
314 { |
317 { |
315 if ( iToolbar->IsToolbarDisabled() ) |
318 if ( iToolbar->IsToolbarDisabled() ) |
316 { |
319 { |
317 TRAP_IGNORE(iToolbar->DisableToolbarL( EFalse )); |
320 TRAP_IGNORE(iToolbar->DisableToolbarL( EFalse )); |
318 } |
321 } |
319 UpdateToolbar(); |
322 UpdateToolbar(); |
320 iToolbar->HideItemsAndDrawOnlyBackground( EFalse ); |
|
321 iToolbar->SetToolbarVisibility( ETrue, EFalse ); |
323 iToolbar->SetToolbarVisibility( ETrue, EFalse ); |
322 } |
324 } |
323 } |
325 } |
324 |
326 |
325 // --------------------------------------------------------------------------- |
327 // --------------------------------------------------------------------------- |
330 void CPhoneToolbarController::HideToolbar() |
332 void CPhoneToolbarController::HideToolbar() |
331 { |
333 { |
332 __LOGMETHODSTARTEND( EPhoneUIView, "CPhoneToolbarController::HideToolbar()" ); |
334 __LOGMETHODSTARTEND( EPhoneUIView, "CPhoneToolbarController::HideToolbar()" ); |
333 if ( iToolbar ) |
335 if ( iToolbar ) |
334 { |
336 { |
335 if( iToolbar->IsShown() ) |
337 if ( iToolbar->IsToolbarDisabled() ) |
336 { |
|
337 iToolbar->HideItemsAndDrawOnlyBackground( ETrue ); |
|
338 } |
|
339 else if ( iToolbar->IsToolbarDisabled() ) |
|
340 { |
338 { |
341 TRAP_IGNORE(iToolbar->DisableToolbarL( EFalse )); |
339 TRAP_IGNORE(iToolbar->DisableToolbarL( EFalse )); |
342 iToolbar->HideItemsAndDrawOnlyBackground( ETrue ); |
|
343 iToolbar->SetToolbarVisibility( ETrue, EFalse ); |
|
344 } |
340 } |
345 } |
341 iToolbar->SetToolbarVisibility( EFalse, EFalse ); |
|
342 } |
346 } |
343 } |
347 |
344 |
348 // --------------------------------------------------------- |
345 // --------------------------------------------------------- |
349 // CPhoneToolbarController::SetMuteFlag |
346 // CPhoneToolbarController::SetMuteFlag |
350 // --------------------------------------------------------- |
347 // --------------------------------------------------------- |