uifw/AvKon/tsrc/bc/bctestdom3.2/bctestdomaiwakn/inc/bctestdomaknbatterypane.h
branchRCL_3
changeset 56 d48ab3b357f1
equal deleted inserted replaced
55:aecbbf00d063 56:d48ab3b357f1
       
     1 /*
       
     2 * Copyright (c) 2007 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CBCTESTDOMAKNBATTERYPANE_H
       
    20 #define C_CBCTESTDOMAKNBATTERYPANE_H
       
    21 
       
    22 #include <aknbattery.h> //for testing protected APIs in aknbattery.h 
       
    23 
       
    24 /**
       
    25  *  test protected APIs in aknbattery.h  .
       
    26  *  
       
    27  *
       
    28  *  @code
       
    29  *    
       
    30  *  @endcode
       
    31  *
       
    32  *  @lib   
       
    33  *  @since S60 v5.0
       
    34  */   
       
    35 class CBCTestDomAknBatteryPane : public CAknBatteryPane
       
    36     {
       
    37 
       
    38 public:
       
    39 
       
    40     CBCTestDomAknBatteryPane();
       
    41 
       
    42     /**
       
    43      * Destructor.
       
    44      */
       
    45      virtual ~CBCTestDomAknBatteryPane();
       
    46 
       
    47  
       
    48 
       
    49 // from base class CAknBatteryPane  
       
    50     /**
       
    51      * Handles a change to the control's resources of type aType
       
    52      * which are shared across the environment.
       
    53      *
       
    54      * @since S60 v5.0   
       
    55      * @param aType Event type.
       
    56      */
       
    57      IMPORT_C void HandleResourceChange( TInt aType );
       
    58 
       
    59     /**
       
    60      * From CCoeControl. 
       
    61      * Returns number of controls inside the context pane control.
       
    62      *
       
    63      * @since S60 v5.0   
       
    64      * @return Number of component controls.
       
    65      */
       
    66      IMPORT_C TInt CountComponentControls() const;
       
    67 
       
    68     /**
       
    69      * From CCoeControl. 
       
    70      * Returns a control determined by control id.
       
    71      *
       
    72      * @since S60 v5.0   
       
    73      * @param anIndex Index of a control to be returned.
       
    74      * @return Pointer to control
       
    75      */
       
    76      IMPORT_C CCoeControl* ComponentControl(TInt aIndex) const;
       
    77 
       
    78 private:
       
    79 
       
    80     /**
       
    81      * Handle PointerEvent.This is an empty function.
       
    82      *
       
    83      * @since S60 v5.0   
       
    84      * @param aPointerEvent a TPointerEvent object reference.
       
    85      */    
       
    86      
       
    87     void HandlePointerEventL(const TPointerEvent& aPointerEvent);
       
    88 
       
    89     };
       
    90 
       
    91 #endif // C_CBCTESTDOMAKNBATTERYPANE_H