114
|
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 |
// System includes
|
|
23 |
#include <e32property.h>
|
|
24 |
|
|
25 |
// User includes
|
|
26 |
#include "aiuiidleintegration.h"
|
|
27 |
|
|
28 |
// Forward declarations
|
|
29 |
class CActiveIdleState;
|
|
30 |
class CAknIncallBubble;
|
|
31 |
class MAiPSPropertyObserver;
|
|
32 |
class MAiFwEventHandler;
|
|
33 |
|
|
34 |
/**
|
|
35 |
* CAiUiIdleIntegration implementation.
|
|
36 |
*/
|
|
37 |
NONSHARABLE_CLASS( CAiUiIdleIntegrationImpl ) : public CAiUiIdleIntegration
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
// constructor and destructor
|
|
41 |
|
|
42 |
static CAiUiIdleIntegrationImpl* NewL( CEikonEnv& aEikEnv,
|
|
43 |
const TAiIdleKeySoundConfig& aKeySoundConfig,
|
|
44 |
MAiFwEventHandler* aAiFwEventHandler );
|
|
45 |
|
|
46 |
~CAiUiIdleIntegrationImpl();
|
|
47 |
|
|
48 |
public:
|
|
49 |
// new functions
|
|
50 |
|
|
51 |
void HandleWsEventL( const TWsEvent& aEvent,
|
|
52 |
CCoeControl* aDestination );
|
|
53 |
|
|
54 |
private:
|
|
55 |
// constructors
|
|
56 |
|
|
57 |
CAiUiIdleIntegrationImpl(CEikonEnv& aEikEnv,
|
|
58 |
MAiFwEventHandler* aAiFwEventHandler);
|
|
59 |
void ConstructL(const TAiIdleKeySoundConfig& aKeySoundConfig);
|
|
60 |
|
|
61 |
private:
|
|
62 |
// new functions
|
|
63 |
|
|
64 |
void ActivateUI();
|
|
65 |
|
|
66 |
void SetCallBubbleIfNeededL();
|
|
67 |
void ClearCallBubbleL();
|
|
68 |
|
|
69 |
static TInt HandleCallEvent( TAny *aPtr );
|
|
70 |
|
|
71 |
static TInt HandleUiStartupStateChange( TAny *aPtr );
|
|
72 |
|
|
73 |
private:
|
|
74 |
// data
|
|
75 |
|
|
76 |
/**
|
|
77 |
* EikonEnv
|
|
78 |
* Not owned
|
|
79 |
*/
|
|
80 |
CEikonEnv& iEikEnv;
|
|
81 |
|
|
82 |
/**
|
|
83 |
* Active idle state
|
|
84 |
* Owned
|
|
85 |
*/
|
|
86 |
CActiveIdleState* iActiveIdleState;
|
|
87 |
|
|
88 |
/**
|
|
89 |
* Incall bubble
|
|
90 |
* Owned
|
|
91 |
*/
|
|
92 |
CAknIncallBubble* iIncallBubble;
|
|
93 |
|
|
94 |
/**
|
|
95 |
* Observer telephony state
|
|
96 |
* Owned
|
|
97 |
*/
|
|
98 |
MAiPSPropertyObserver* iCallStatusObserver;
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Ui startup state
|
|
102 |
* Owned
|
|
103 |
*/
|
|
104 |
MAiPSPropertyObserver* iUiStartupStateObserver;
|
|
105 |
|
|
106 |
/**
|
|
107 |
* Framework event handler. For notifying critical startup over.
|
|
108 |
* Not owned.
|
|
109 |
*/
|
|
110 |
MAiFwEventHandler* iAiFwEventHandler;
|
|
111 |
|
|
112 |
TBool iForeground;
|
|
113 |
TBool iIncallBubbleAllowed;
|
|
114 |
TBool iUiStartupPhaseOk;
|
|
115 |
};
|
|
116 |
|
|
117 |
#endif // C_AIUIIDLEINTEGRATION_H
|
|
118 |
|
|
119 |
// End of file
|