coreapplicationuis/powersaveutilities/batterypopupcontrol/src/batterypopupcontrol.cpp
changeset 56 11a052f4b02e
parent 49 76883296a0d5
child 65 8a530a83576a
equal deleted inserted replaced
49:76883296a0d5 56:11a052f4b02e
     1 /*
       
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  BatteryPopupControl implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 //#include <aknutils.h>
       
    20 //#include <aknpanic.h>
       
    21 //#include <aknpreviewpopupcontroller.h>
       
    22 //#include <aknglobalpopupprioritycontroller.h>
       
    23 #include <barsread.h> // TResourceReader
       
    24 #include <eiklabel.h>
       
    25 #include <fbs.h>
       
    26 //#include <aknappui.h>
       
    27 //#include <aknlayoutscalable_avkon.cdl.h>
       
    28 //#include <aknsdrawutils.h>
       
    29 //#include <aknbiditextutils.h>
       
    30 #include <data_caging_path_literals.hrh> // KDC_RESOURCE_FILES_DIR
       
    31 #include <batterypopupcontrol.mbg>
       
    32 // ----------- Touch feedback additions start
       
    33 #ifdef RD_TACTILE_FEEDBACK
       
    34 #include <touchfeedback.h>
       
    35 #endif //RD_TACTILE_FEEDBACK
       
    36 // ----------- Touch feedback additions end
       
    37 #include <gulicon.h>
       
    38 #include "batterypopupcontrol.h"
       
    39 #include "trace.h"
       
    40 
       
    41 // Constants
       
    42 //const TInt KPopupShowDelay = 0;       // Show immediately
       
    43 //const TInt KPopupHideDelay = 3000000; // hide after 3 sec
       
    44 //const TInt KMaxLinkTextLength = 255;
       
    45 
       
    46 // ======== MEMBER FUNCTIONS ========
       
    47 
       
    48 // -----------------------------------------------------------------------------
       
    49 // Default constructor.
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 CBatteryPopupControl::CBatteryPopupControl(): 
       
    53     iHighlightedItem( EFalse )
       
    54     {
       
    55     FUNC_LOG
       
    56     }
       
    57 
       
    58 // -----------------------------------------------------------------------------
       
    59 // CBatteryPopupControl::NewL
       
    60 // -----------------------------------------------------------------------------
       
    61 //
       
    62 EXPORT_C CBatteryPopupControl* CBatteryPopupControl::NewL(
       
    63         const TDesC& aContentText,
       
    64         const TDesC& aLinkText )
       
    65     {
       
    66     FUNC_LOG
       
    67     CBatteryPopupControl* self =
       
    68                             new ( ELeave ) CBatteryPopupControl();
       
    69                                 
       
    70     CleanupStack::PushL( self );
       
    71     self->ConstructL( aContentText, aLinkText );
       
    72     CleanupStack::Pop( self );
       
    73     return self;
       
    74     }    
       
    75 
       
    76 // -----------------------------------------------------------------------------
       
    77 // Destructor
       
    78 // -----------------------------------------------------------------------------
       
    79 //
       
    80 EXPORT_C CBatteryPopupControl::~CBatteryPopupControl()
       
    81     {  
       
    82     FUNC_LOG   
       
    83   //  delete iController;
       
    84     delete iText;
       
    85     delete iIcon;
       
    86     delete iLinkText;
       
    87     } 
       
    88 
       
    89 // -----------------------------------------------------------------------------
       
    90 // CBatteryPopupControl::SetCommandObserver
       
    91 // -----------------------------------------------------------------------------
       
    92 //
       
    93 EXPORT_C void CBatteryPopupControl::SetCommandObserver(
       
    94         MEikCommandObserver& aCommandObserver )
       
    95     {
       
    96     FUNC_LOG
       
    97     iCommandObserver = &aCommandObserver;
       
    98     }
       
    99 
       
   100 // -----------------------------------------------------------------------------
       
   101 // CBatteryPopupControl::ShowPopUpL
       
   102 // -----------------------------------------------------------------------------
       
   103 //
       
   104 EXPORT_C void CBatteryPopupControl::ShowPopUpL()
       
   105     {    
       
   106     FUNC_LOG
       
   107     
       
   108  /*   iController = CAknPreviewPopUpController::NewL( *this, CAknPreviewPopUpController::ELayoutDefault | CAknPreviewPopUpController::EDontClose );            
       
   109     iController->AddObserverL( *this );
       
   110     
       
   111     // Set popup's hide/show delays
       
   112     iController->SetPopUpShowDelay( KPopupShowDelay );
       
   113     iController->SetPopUpHideDelay( KPopupHideDelay );
       
   114                
       
   115     // Position
       
   116     TPoint uipRect;
       
   117     if( AknLayoutUtils::LayoutMetricsPosition( 
       
   118         AknLayoutUtils::EBatteryPane, uipRect ) )
       
   119         {
       
   120         iController->SetPosition( uipRect );
       
   121         }
       
   122 		
       
   123     // Launch
       
   124     iController->ShowPopUp();  */
       
   125     }
       
   126 
       
   127 // -----------------------------------------------------------------------------
       
   128 // From class CCoeControl.
       
   129 // CBatteryPopupControl::HandleResourceChange
       
   130 // -----------------------------------------------------------------------------
       
   131 //
       
   132 void CBatteryPopupControl::HandleResourceChange(
       
   133         TInt aType )
       
   134     {
       
   135     FUNC_LOG
       
   136     	
       
   137    /* CCoeControl::HandleResourceChange( aType );
       
   138     if ( aType == KEikDynamicLayoutVariantSwitch )
       
   139         {
       
   140         SizeChanged();
       
   141         }*/
       
   142     }
       
   143 
       
   144 
       
   145 // -----------------------------------------------------------------------------
       
   146 // From class CCoeControl.
       
   147 // CBatteryPopupControl::SetContainerWindowL
       
   148 // -----------------------------------------------------------------------------
       
   149 //
       
   150 void CBatteryPopupControl::SetContainerWindowL(
       
   151         const CCoeControl& aContainer )
       
   152     {
       
   153     FUNC_LOG
       
   154     	
       
   155  //   CCoeControl::SetContainerWindowL( aContainer );
       
   156     
       
   157     if( iText )
       
   158         {
       
   159         iText->SetContainerWindowL( aContainer );
       
   160         }
       
   161     }
       
   162 
       
   163 // -----------------------------------------------------------------------------
       
   164 // From class MCoeControlObserver.
       
   165 // CBatteryPopupControl::HandleControlEventL
       
   166 // -----------------------------------------------------------------------------
       
   167 //
       
   168 void CBatteryPopupControl::HandleControlEventL(
       
   169         CCoeControl* /*aControl*/,
       
   170         TCoeEvent /*aEventType*/ )
       
   171     {
       
   172     FUNC_LOG
       
   173     }
       
   174 // ---------------------------------------------------------------------------
       
   175 // From MAknPreviewPopUpObserver
       
   176 // ---------------------------------------------------------------------------
       
   177 //
       
   178 /*
       
   179 void CBatteryPopupControl::HandlePreviewPopUpEventL(
       
   180     CAknPreviewPopUpController aController,
       
   181    TPreviewPopUpEvent aEvent )
       
   182     {
       
   183     FUNC_LOG
       
   184 
       
   185     switch ( aEvent )
       
   186         {
       
   187         case EPreviewPopUpShown:
       
   188             AknGlobalPopupPriorityController::ShowPopup( *this, ETrue );
       
   189             break;
       
   190         case EPreviewPopUpHidden:
       
   191             AknGlobalPopupPriorityController::RemovePopupPriority( *this );
       
   192             break;
       
   193         }
       
   194     }
       
   195     */
       
   196 // -----------------------------------------------------------------------------
       
   197 // CAknStylusActivatedPopUpContent::ConstructL
       
   198 // -----------------------------------------------------------------------------
       
   199 //
       
   200 void CBatteryPopupControl::ConstructL( const TDesC& aContentText,
       
   201                                        const TDesC& aLinkText )
       
   202     {
       
   203     FUNC_LOG
       
   204 
       
   205     if( aContentText != KNullDesC )
       
   206         {           
       
   207         iText = new ( ELeave ) CEikLabel;
       
   208         iText->SetTextL( aContentText );
       
   209         CreateIconL();
       
   210         }
       
   211     
       
   212     if( aLinkText != KNullDesC )
       
   213         {
       
   214         // Check if only link is displayed.
       
   215         if( aContentText != KNullDesC )
       
   216             {
       
   217             iVariant = EVariantIconTextLink;
       
   218             }      
       
   219         iLinkText = aLinkText.AllocL(); 
       
   220         }
       
   221  /*       
       
   222     TRect rectPopUpWindow = PopUpWindowRectFromLayout( 
       
   223         AknLayoutScalable_Avkon::popup_battery_window( iVariant ) );
       
   224       
       
   225     TAknWindowComponentLayout infoPaneLayout =
       
   226         AknLayoutScalable_Avkon::bg_popup_sub_pane_cp25( iVariant );
       
   227         
       
   228     TRect rectInfoPane = RectFromLayout( rectPopUpWindow, infoPaneLayout );
       
   229 
       
   230     TAknTextComponentLayout textLayout =
       
   231         AknLayoutScalable_Avkon::popup_battery_window_t1( iVariant );
       
   232     TAknLayoutText textRect;
       
   233     textRect.LayoutText( rectPopUpWindow, textLayout );
       
   234     */
       
   235     // Font for command links
       
   236   //  iFont = textRect.Font();    
       
   237     }
       
   238     
       
   239 // -----------------------------------------------------------------------------
       
   240 // From class CCoeControl.
       
   241 // CBatteryPopupControl::ComponentControl
       
   242 // -----------------------------------------------------------------------------
       
   243 //
       
   244 CCoeControl* CBatteryPopupControl::ComponentControl(
       
   245         TInt aIndex ) const
       
   246     {
       
   247     FUNC_LOG	
       
   248     switch ( aIndex )
       
   249         {
       
   250         case 0:
       
   251             {
       
   252             if( iText )
       
   253                 {
       
   254                 return iText;             
       
   255                 }
       
   256             }        
       
   257         default:
       
   258          //   __ASSERT_ALWAYS( aIndex >= 0, User::Panic( 
       
   259           //      _L("CBatteryPopupControl::ComponentControl"), EAknPanicOutOfRange ) );
       
   260             return NULL;
       
   261         }        
       
   262     }
       
   263 
       
   264 
       
   265 // -----------------------------------------------------------------------------
       
   266 // From class CCoeControl.
       
   267 // CBatteryPopupControl::CountComponentControls
       
   268 // -----------------------------------------------------------------------------
       
   269 //
       
   270 TInt CBatteryPopupControl::CountComponentControls() const
       
   271     {
       
   272     FUNC_LOG
       
   273     TInt count = 0;   
       
   274 
       
   275     if( iText )
       
   276         {
       
   277         count++;
       
   278         }
       
   279     
       
   280     return count;
       
   281     }
       
   282 
       
   283 
       
   284 // -----------------------------------------------------------------------------
       
   285 // From class CCoeControl.
       
   286 // CBatteryPopupControl::Draw
       
   287 // -----------------------------------------------------------------------------
       
   288 //
       
   289 void CBatteryPopupControl::Draw( const TRect& /*aRect*/ ) const
       
   290     {
       
   291     FUNC_LOG
       
   292       	
       
   293  /*   CWindowGc& gc = SystemGc();
       
   294     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
       
   295     
       
   296     if( iIcon )
       
   297         {
       
   298         CFbsBitmap* bmp = NULL;
       
   299         TRgb color( KRgbWhite ); // Default never used
       
   300         bmp = AknsUtils::GetCachedBitmap( skin, KAknsIIDQsnComponentColorBmpCG2 );
       
   301         AknsUtils::GetCachedColor( skin, color, 
       
   302             KAknsIIDQsnComponentColors, EAknsCIQsnComponentColorsCG2 );
       
   303 
       
   304         AknIconUtils::SetSize( iIcon->Mask(), iBitmapLayout.Rect().Size() );
       
   305         if ( bmp )
       
   306             {
       
   307             iBitmapLayout.DrawImage( gc, bmp, iIcon->Mask() );
       
   308             }
       
   309         else
       
   310             {
       
   311             AknIconUtils::SetSize( iIcon->Bitmap(), iBitmapLayout.Rect().Size() );     
       
   312             bmp = iIcon->Bitmap();
       
   313             iBitmapLayout.DrawImage( gc, bmp, iIcon->Mask() );
       
   314             }
       
   315         gc.Reset(); 
       
   316         }
       
   317     TRgb textColor;
       
   318     AknsUtils::GetCachedColor( skin, textColor, KAknsIIDQsnHighlightColors,
       
   319                                EAknsCIQsnHighlightColorsCG3 );
       
   320 
       
   321     gc.SetPenStyle( CGraphicsContext::ESolidPen ); 
       
   322     gc.SetPenColor( textColor );
       
   323 
       
   324     const CFont* font = iFont;
       
   325     if ( !font )
       
   326         {
       
   327         font = iCoeEnv->NormalFont();
       
   328         }
       
   329     gc.UseFont( font );
       
   330 
       
   331     gc.SetUnderlineStyle( EUnderlineOn );
       
   332     if(iLinkText)
       
   333         {
       
   334         TRect rect( iLinkRect );
       
   335         if ( Background() )
       
   336             {
       
   337             Background()->Draw( gc, *this, rect );
       
   338             }
       
   339 
       
   340         // buffer for visually ordered text
       
   341         HBufC* visualText = NULL; 
       
   342         TRAPD( err, visualText = HBufC::NewL( KMaxLinkTextLength + 
       
   343             KAknBidiExtraSpacePerLine ) ); 
       
   344         if ( err != KErrNone )
       
   345             {
       
   346             return; 
       
   347             }
       
   348         TPtr ptr = visualText->Des(); 
       
   349         TInt clipWidth = rect.Width();
       
   350 
       
   351         if ( iHighlightedItem ) 
       
   352             {
       
   353             TRgb highlightcolor = AKN_LAF_COLOR( 244 );
       
   354             AknsUtils::GetCachedColor( skin, highlightcolor, 
       
   355                                        KAknsIIDQsnHighlightColors, EAknsCIQsnHighlightColorsCG1 );
       
   356 
       
   357             gc.SetBrushColor( highlightcolor );
       
   358             gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); 
       
   359             }
       
   360         else
       
   361             {
       
   362             gc.SetBrushStyle( CGraphicsContext::ENullBrush );
       
   363             }
       
   364 
       
   365         // bidi processing - using AknBidiTextUtils.
       
   366         AknBidiTextUtils::ConvertToVisualAndClip(
       
   367             *(iLinkText),
       
   368             ptr,
       
   369             *font,
       
   370             clipWidth,
       
   371             clipWidth );
       
   372 
       
   373         TInt baselineOffset = 0;
       
   374         baselineOffset = font->AscentInPixels() +
       
   375             ( rect.Height() - font->AscentInPixels() ) / 2;
       
   376         gc.DrawText( ptr, rect, baselineOffset, 
       
   377             CGraphicsContext::ELeft );
       
   378         delete visualText; 
       
   379         }*/
       
   380     }
       
   381 
       
   382 
       
   383 // -----------------------------------------------------------------------------
       
   384 // From class CCoeControl.
       
   385 // CBatteryPopupControl::MinimumSize
       
   386 // -----------------------------------------------------------------------------
       
   387 //
       
   388 TSize CBatteryPopupControl::MinimumSize()
       
   389     {
       
   390     FUNC_LOG
       
   391     TInt nbrOfInfoLines = 0;
       
   392     TInt minWidth = 0;
       
   393     
       
   394     if( iText )
       
   395         {
       
   396         nbrOfInfoLines = iText->NumberOfLines();
       
   397         CEikLabel* textLabel; 
       
   398         for ( TInt i=0; i < nbrOfInfoLines; i++ )
       
   399             {
       
   400             textLabel = iText;
       
   401             TPtrC ptrText = ( *textLabel->Text() );
       
   402             minWidth = Max( textLabel->CalcMinimumSize( ptrText ).iWidth, minWidth ); 
       
   403             }
       
   404         }
       
   405     if(iLinkText)
       
   406         {     
       
   407         TInt tempWidth = iFont->TextWidthInPixels( *( iLinkText ) );
       
   408         minWidth = Max( minWidth, tempWidth );
       
   409         }
       
   410   //  TInt rectWidth = 0;
       
   411     
       
   412 /*    TAknWindowComponentLayout infoPaneLayout = 
       
   413         AknLayoutScalable_Avkon::bg_popup_sub_pane_cp25( iVariant );
       
   414                
       
   415     TRect rectPopUpWindow =  PopUpWindowRectFromLayout( 
       
   416         AknLayoutScalable_Avkon::popup_battery_window( iVariant ) );   
       
   417 
       
   418     TRect rectInfoPane = RectFromLayout( rectPopUpWindow, infoPaneLayout );
       
   419     
       
   420     rectWidth = Max( rectInfoPane.Width(), minWidth ); 
       
   421     
       
   422     TInt rectHeight = rectInfoPane.Height();*/
       
   423    
       
   424  //   return TSize( rectWidth, rectHeight ); 
       
   425     }
       
   426 
       
   427 
       
   428 // -----------------------------------------------------------------------------
       
   429 // From class CCoeControl.
       
   430 // CBatteryPopupControl::SizeChanged
       
   431 // -----------------------------------------------------------------------------
       
   432 //
       
   433 void CBatteryPopupControl::SizeChanged()
       
   434     {
       
   435     FUNC_LOG 	
       
   436     // Get popup window rect
       
   437  /*   TRect rectPopUpWindow =  PopUpWindowRectFromLayout( 
       
   438         AknLayoutScalable_Avkon::bg_popup_sub_pane_cp25( iVariant ) );
       
   439     
       
   440     // Get pane icon and text layouts
       
   441     TAknWindowLineLayout paneIconLayout(
       
   442         AknLayoutScalable_Avkon::popup_battery_window_g1(iVariant));
       
   443 
       
   444     //Set icon and text rects
       
   445     if( iIcon )
       
   446         {
       
   447         iBitmapLayout.LayoutRect( rectPopUpWindow, paneIconLayout );
       
   448         }
       
   449     
       
   450     if( iText )
       
   451         {
       
   452         TAknTextComponentLayout textLayout =
       
   453         AknLayoutScalable_Avkon::popup_battery_window_t1( iVariant );
       
   454     
       
   455         TAknLayoutText textRect;
       
   456         textRect.LayoutText( rectPopUpWindow, textLayout );
       
   457     
       
   458         iText->SetRect( textRect.TextRect() );    
       
   459         // Set text font
       
   460         iText->SetFont( textRect.Font() );
       
   461         }
       
   462         
       
   463     // Set link text rect
       
   464     if( iLinkText )
       
   465         {
       
   466         TAknLayoutText linkLayoutText;
       
   467         // popup_battery_window_t2 doesn't have other variants as EVariantIconTextLink
       
   468         linkLayoutText.LayoutText( rectPopUpWindow,
       
   469             AknLayoutScalable_Avkon::popup_battery_window_t2( EVariantIconTextLink ) );
       
   470        
       
   471         iFont = linkLayoutText.Font();
       
   472         
       
   473         TInt tempWidth = iFont->TextWidthInPixels( *(iLinkText) );
       
   474         TRect tempRect;
       
   475         
       
   476         if( iText )
       
   477             {                     
       
   478             tempRect = TRect( linkLayoutText.TextRect() ); 
       
   479             }
       
   480         else
       
   481             {
       
   482             TAknLayoutRect linkLayout;
       
   483           
       
   484             linkLayout.LayoutRect( rectPopUpWindow, paneIconLayout );
       
   485   
       
   486             tempRect = TRect( linkLayout.Rect() );            
       
   487             }
       
   488         tempRect.SetWidth( tempWidth );
       
   489         iLinkRect = tempRect;
       
   490         }*/
       
   491     }
       
   492 
       
   493 // -----------------------------------------------------------------------------
       
   494 // RectFromLayout
       
   495 // -----------------------------------------------------------------------------
       
   496 //
       
   497 /*TRect CBatteryPopupControl::RectFromLayout( const TRect& aParent,
       
   498         const TAknWindowComponentLayout& aComponentLayout ) const
       
   499     {
       
   500     TAknWindowLineLayout lineLayout = aComponentLayout.LayoutLine();
       
   501     TAknLayoutRect layoutRect;
       
   502     layoutRect.LayoutRect( aParent, lineLayout );
       
   503     return layoutRect.Rect();
       
   504     }*/
       
   505 
       
   506 // -----------------------------------------------------------------------------
       
   507 // PopUpWindowRectFromLayout
       
   508 // -----------------------------------------------------------------------------
       
   509 //
       
   510 /*TRect CBatteryPopupControl::PopUpWindowRectFromLayout( const
       
   511     TAknWindowComponentLayout& aComponentLayout ) const
       
   512     {
       
   513     FUNC_LOG          
       
   514     // get popup window width from the widest variety
       
   515     TAknWindowLineLayout lineLayout = aComponentLayout.LayoutLine();
       
   516     
       
   517     lineLayout.iW = AknLayoutScalable_Avkon::
       
   518         popup_battery_window( iVariant ).LayoutLine().iW;
       
   519     TAknLayoutRect layoutRect;
       
   520     layoutRect.LayoutRect( iAvkonAppUi->ApplicationRect(), lineLayout );
       
   521 
       
   522     return layoutRect.Rect();
       
   523     }*/
       
   524    
       
   525 // -----------------------------------------------------------------------------
       
   526 // From class CCoeControl
       
   527 // CBatteryPopupControl::HandlePointerEventL
       
   528 // -----------------------------------------------------------------------------
       
   529 //
       
   530 void CBatteryPopupControl::HandlePointerEventL(
       
   531     const TPointerEvent& aPointerEvent )
       
   532     {
       
   533     FUNC_LOG    
       
   534     if(iLinkText)
       
   535         {
       
   536         if ( iLinkRect.Contains( aPointerEvent.iPosition ) )
       
   537             {
       
   538             if ( !iHighlightedItem )
       
   539                 {         
       
   540                 iHighlightedItem = ETrue;             
       
   541              //   DrawNow( iLinkRect );
       
   542                 }
       
   543 #ifdef RD_TACTILE_FEEDBACK
       
   544             if ( aPointerEvent.iType == TPointerEvent::EButton1Down )
       
   545                 {
       
   546                 MTouchFeedback* feedback = MTouchFeedback::Instance();
       
   547                 
       
   548                 if ( feedback )
       
   549                     {
       
   550                     feedback->InstantFeedback( ETouchFeedbackBasic );
       
   551                     }
       
   552                 }
       
   553 #endif // RD_TACTILE_FEEDBACK                   
       
   554             // Nofity command observer  
       
   555             if ( aPointerEvent.iType == TPointerEvent::EButton1Up )
       
   556                 {
       
   557               //  iCommandObserver->ProcessCommandL( ELinkFirst );
       
   558                 iHighlightedItem = EFalse; 
       
   559                 }
       
   560             }
       
   561 				}
       
   562     }
       
   563 // -----------------------------------------------------------------------------
       
   564 // CBatteryPopupControl::CreateIconL()
       
   565 //
       
   566 //
       
   567 // -----------------------------------------------------------------------------
       
   568 //
       
   569 void CBatteryPopupControl::CreateIconL(  )
       
   570     {
       
   571     FUNC_LOG
       
   572     
       
   573     TParse* fp = new( ELeave ) TParse();
       
   574     CleanupStack::PushL( fp );
       
   575     _LIT( KBIPPluginIconDirAndName, "z:\\resource\\apps\\batterypopupcontrol.mif");
       
   576     fp->Set( KBIPPluginIconDirAndName, &KDC_BITMAP_DIR, NULL );
       
   577     
       
   578     delete iIcon;
       
   579     iIcon = NULL;
       
   580     
       
   581  /*   iIcon = AknsUtils::CreateGulIconL( AknsUtils::SkinInstance(),
       
   582                                        KAknsIIDQgnPropBatteryIcon,
       
   583                                        fp->FullName(),
       
   584                                        EMbmBatterypopupcontrolQgn_prop_battery_ps_deactivate,
       
   585                                        EMbmBatterypopupcontrolQgn_prop_battery_ps_deactivate_mask );
       
   586 */
       
   587     CleanupStack::PopAndDestroy( fp );
       
   588     }      
       
   589 //  End of File