idlefw/src/idleint/aiuiidleintegrationimpl.h
changeset 0 79c6a41cd166
child 11 bd874ee5e5e2
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Active Idle main UI Controller idle integration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_AIUIIDLEINTEGRATIONIMPL_H
       
    20 #define C_AIUIIDLEINTEGRATIONIMPL_H
       
    21 
       
    22 #include "aiuiidleintegration.h"
       
    23 #include <startupdomainpskeys.h>
       
    24 
       
    25 class CActiveIdleState;
       
    26 class CAknIncallBubble;
       
    27 class MAiPSPropertyObserver;
       
    28 class MAiFwEventHandler;
       
    29 
       
    30 /**
       
    31  * CAiUiIdleIntegration implementation.
       
    32  */
       
    33 NONSHARABLE_CLASS( CAiUiIdleIntegrationImpl ) : public CAiUiIdleIntegration
       
    34     {
       
    35 public: // constructor and destructor
       
    36     
       
    37     static CAiUiIdleIntegrationImpl* NewL( CEikonEnv& aEikEnv,         
       
    38                 const TAiIdleKeySoundConfig& aKeySoundConfig,
       
    39                 MAiFwEventHandler* aAiFwEventHandler );
       
    40 
       
    41     ~CAiUiIdleIntegrationImpl();
       
    42 
       
    43 public: // new functions
       
    44         
       
    45     void HandleWsEventL( const TWsEvent& aEvent, 
       
    46                          CCoeControl* aDestination );
       
    47 
       
    48 private: // constructors
       
    49     
       
    50     CAiUiIdleIntegrationImpl(CEikonEnv& aEikEnv,
       
    51                              MAiFwEventHandler* aAiFwEventHandler);
       
    52     void ConstructL(const TAiIdleKeySoundConfig& aKeySoundConfig);
       
    53 
       
    54 private: // new functions
       
    55     
       
    56     void ActivateUI();
       
    57     
       
    58     void SetCallBubbleIfNeededL();
       
    59     void ClearCallBubbleL();
       
    60            
       
    61     static TInt HandleSystemStateChange( TAny *aPtr );
       
    62     static TInt HandleUiStartupStateChange( TAny *aPtr );
       
    63     static TInt HandleCallEvent( TAny *aPtr );
       
    64     
       
    65 private: // data  
       
    66 
       
    67     CEikonEnv& iEikEnv;  
       
    68     CActiveIdleState* iActiveIdleState;
       
    69     TBool iThisApplicationForeground;
       
    70     TBool iIncallBubbleAllowed;
       
    71     TInt iThisApplicationWgId;
       
    72     TInt iEikonServerWgId;
       
    73     CAknIncallBubble* iIncallBubble;
       
    74 
       
    75     /**
       
    76      * Observer for system state Publish&Subscribe key.
       
    77      * Owned.
       
    78      */
       
    79     MAiPSPropertyObserver* iSystemStateObserver;
       
    80 
       
    81     /**
       
    82      * Observer for system state Publish&Subscribe key.
       
    83      * Owned.
       
    84      */
       
    85     MAiPSPropertyObserver* iUiStartupStateObserver;
       
    86 
       
    87     /**
       
    88     * Observer telephony state
       
    89     * Owned
       
    90     */
       
    91     MAiPSPropertyObserver* iCallStatusObserver;
       
    92     /**
       
    93      * Framework event handler. For notifying critical startup over.
       
    94      * Not owned.
       
    95      */
       
    96     MAiFwEventHandler* iAiFwEventHandler;
       
    97     
       
    98     TBool iSystemStateOk;
       
    99     TBool iUiStartupPhaseOk;
       
   100     };
       
   101 
       
   102 
       
   103 #endif // C_AIUIIDLEINTEGRATION_H
       
   104