uifw/AvKon/src/aknstatuspanedatapublisher.cpp
branchRCL_3
changeset 20 d48ab3b357f1
parent 19 aecbbf00d063
equal deleted inserted replaced
19:aecbbf00d063 20:d48ab3b357f1
     1 /*
     1 /*
     2 * Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 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".
   300     // the buble,too. Currently, this list will not bu used not.
   300     // the buble,too. Currently, this list will not bu used not.
   301     if ( !aAllowed )
   301     if ( !aAllowed )
   302         {
   302         {
   303         if( iStatusPaneStateData->iProcessList.Find( aClientId ) == KErrNotFound )
   303         if( iStatusPaneStateData->iProcessList.Find( aClientId ) == KErrNotFound )
   304             {
   304             {
   305             iStatusPaneStateData->iProcessList.Append( aClientId );
   305             if ( KErrNone != iStatusPaneStateData->iProcessList.Append( aClientId ) )
       
   306             	{
       
   307 				return;
       
   308             	}
   306             }
   309             }
   307         }
   310         }
   308     else
   311     else
   309         {
   312         {
   310         TInt index = iStatusPaneStateData->iProcessList.Find( aClientId );
   313         TInt index = iStatusPaneStateData->iProcessList.Find( aClientId );
   712         }
   715         }
   713     
   716     
   714     TInt statusPaneLayoutId = AknStatuspaneUtils::CurrentStatusPaneLayoutResId();
   717     TInt statusPaneLayoutId = AknStatuspaneUtils::CurrentStatusPaneLayoutResId();
   715     TAknLayoutRect layoutRect;
   718     TAknLayoutRect layoutRect;
   716     if ( isLandscape &&
   719     if ( isLandscape &&
   717          ( statusPaneLayoutId == R_AVKON_STATUS_PANE_LAYOUT_USUAL_FLAT ||
   720          ( statusPaneLayoutId == R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT ||
   718            statusPaneLayoutId == R_AVKON_STATUS_PANE_LAYOUT_IDLE_FLAT ) )
   721            statusPaneLayoutId == R_AVKON_WIDESCREEN_PANE_LAYOUT_IDLE_FLAT ) )
   719         {
   722         {
   720         layoutRect.LayoutRect(
   723         layoutRect.LayoutRect(
   721             applicationWindow,
   724             applicationWindow,
   722             AknLayoutScalable_Avkon::popup_uni_indicator_window( 6 ) );
   725             AknLayoutScalable_Avkon::popup_uni_indicator_window( 6 ) );
   723         positionIsBottomLeft = ETrue;
   726         positionIsBottomLeft = ETrue;
   727         {
   730         {
   728         layoutRect.LayoutRect(
   731         layoutRect.LayoutRect(
   729                 applicationWindow,
   732                 applicationWindow,
   730                 AknLayoutScalable_Avkon::popup_uni_indicator_window( 6 ) );
   733                 AknLayoutScalable_Avkon::popup_uni_indicator_window( 6 ) );
   731         }
   734         }
   732     else if ( statusPaneLayoutId == R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT ||
   735     else if ( statusPaneLayoutId == R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT_NO_SOFTKEYS ||
   733               statusPaneLayoutId == R_AVKON_WIDESCREEN_PANE_LAYOUT_IDLE_FLAT ||
       
   734               statusPaneLayoutId == R_AVKON_WIDESCREEN_PANE_LAYOUT_USUAL_FLAT_NO_SOFTKEYS ||
       
   735               statusPaneLayoutId == R_AVKON_WIDESCREEN_PANE_LAYOUT_IDLE_FLAT_NO_SOFTKEYS )
   736               statusPaneLayoutId == R_AVKON_WIDESCREEN_PANE_LAYOUT_IDLE_FLAT_NO_SOFTKEYS )
   736         {
   737         {
   737         layoutRect.LayoutRect(
   738         layoutRect.LayoutRect(
   738                 applicationWindow,
   739                 applicationWindow,
   739                 AknLayoutScalable_Avkon::popup_uni_indicator_window( 5 ) );
   740                 AknLayoutScalable_Avkon::popup_uni_indicator_window( 5 ) );
  1033                 }
  1034                 }
  1034             case EAknIndicatorUSBMemActive:    
  1035             case EAknIndicatorUSBMemActive:    
  1035             case EAknIndicatorUSBMemConnected:
  1036             case EAknIndicatorUSBMemConnected:
  1036                 {
  1037                 {
  1037                 pluginUid.iUid = KImplUIDUSBMEMIndicatorsPlugin;
  1038                 pluginUid.iUid = KImplUIDUSBMEMIndicatorsPlugin;
       
  1039                 break;
       
  1040                 }
       
  1041             case EAknIndicatorIntegratedIM:
       
  1042                 {
       
  1043                 pluginUid.iUid = KImplUIDIIMIndicatorPlugin;
  1038                 break;
  1044                 break;
  1039                 }
  1045                 }
  1040              // currently uncategorized:
  1046              // currently uncategorized:
  1041             case EAknIndicatorKeyguard:
  1047             case EAknIndicatorKeyguard:
  1042             case EAknIndicatorHomeZone:
  1048             case EAknIndicatorHomeZone: