uifw/AvKon/inc/aknstatuspanedata.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 /*
       
     2 * Copyright (c) 2006-2008 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:  Avkon internal data structures for holding system controlled
       
    15 *                status pane data.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef T_AKNSTATUSPANEDATA_H
       
    21 #define T_AKNSTATUSPANEDATA_H
       
    22 
       
    23 #include <avkon.hrh>
       
    24 
       
    25 /**
       
    26 * Battery indicator state.
       
    27 *
       
    28 * @since S60 3.2
       
    29 * @lib Avkon
       
    30 */
       
    31 struct TAknBatteryState
       
    32     {
       
    33     TAknBatteryState() : iBatteryStrength( 0 ),
       
    34                          iRecharging( 0 ),
       
    35                          iIconState( EAknBatteryIndicatorNormal )
       
    36     {};
       
    37     /** Battery strength value. */
       
    38     TInt                iBatteryStrength;
       
    39 
       
    40     /** Charging animation on/off. */
       
    41     TBool               iRecharging;
       
    42 
       
    43     /** Battery icon ID. */
       
    44     TInt                iIconState;
       
    45 
       
    46     // Add new fields here if needed...
       
    47     };
       
    48 
       
    49 /**
       
    50 * Status indicator container state.
       
    51 *
       
    52 * @since S60 3.2
       
    53 * @lib Avkon
       
    54 */
       
    55 struct TAknIndicatorState
       
    56     {
       
    57     TAknIndicatorState() : iIncallBubbleFlags( 0 ),
       
    58                            iIncallBubbleAllowedInUsual( ETrue ),
       
    59                            iIncallBubbleAllowedInIdle( EFalse )
       
    60     {};
       
    61 
       
    62     /**
       
    63     * Max number of visible indicators, this may have to
       
    64     * be adjusted if ui can show more indicators.
       
    65     */
       
    66     enum { EMaxVisibleIndicators = 10 };
       
    67 
       
    68     /** Array of visible indicator UIDs. */
       
    69     TInt visibleIndicators[EMaxVisibleIndicators];
       
    70 
       
    71     /** Array of visible indicator states. */
       
    72     TInt visibleIndicatorStates[EMaxVisibleIndicators];
       
    73 
       
    74     /** Flags for incall bubble. */
       
    75     TInt iIncallBubbleFlags;
       
    76 
       
    77     /** Incall bubble shown in usual layout. */
       
    78     TBool iIncallBubbleAllowedInUsual;
       
    79 
       
    80     /** Incall bubble shown in idle layout. */
       
    81     TBool iIncallBubbleAllowedInIdle;
       
    82     
       
    83     /** Incall bubble is temporarily disabled by the framework. */
       
    84     TBool iIncallBubbleDisabled;
       
    85 
       
    86     // Add new fields here if needed...
       
    87     };
       
    88 
       
    89 /**
       
    90 * Signal indicator state.
       
    91 *
       
    92 * @since S60 3.2
       
    93 * @lib Avkon
       
    94 */
       
    95 struct TAknSignalState
       
    96     {
       
    97     TAknSignalState() : iSignalStrength( 0 ),
       
    98                         iIconState( 0 )
       
    99     {};
       
   100 
       
   101     /** Signal strength value. */
       
   102     TInt                iSignalStrength;
       
   103 
       
   104     /** Signal icon ID. */
       
   105     TInt                iIconState;
       
   106     // Add new fields here if needed...
       
   107     };
       
   108 
       
   109 /**
       
   110 * System owned status pane state.
       
   111 *
       
   112 * @since S60 3.2
       
   113 * @lib Avkon
       
   114 */
       
   115 struct TAknStatusPaneStateData
       
   116     {
       
   117     TAknStatusPaneStateData() : iForegroundSubscriberId( 0 ) {};
       
   118 
       
   119     /** ID for the status pane subscriber instance in the foreground. */
       
   120     TInt iForegroundSubscriberId;
       
   121 
       
   122     /** Battery indicator state. */
       
   123     TAknBatteryState iBatteryState;
       
   124 
       
   125     /** Signal indicator state. */
       
   126     TAknSignalState  iSignalState;
       
   127 
       
   128     /** Status indicator container state. */
       
   129     TAknIndicatorState   iIndicatorState;
       
   130 
       
   131     // Add new fields here if needed...
       
   132 
       
   133     typedef TPckg<TAknStatusPaneStateData> TAknStatusPaneStateDataPckg;
       
   134     };
       
   135 
       
   136 #endif // T_AKNSTATUSPANEDATA_H