89
|
1 |
/*
|
|
2 |
* Copyright (c) 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: This is the header file for the CAdtUpdaterAppUi class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef __ADTUPDATER_APPUI_H__
|
|
19 |
#define __ADTUPDATER_APPUI_H__
|
|
20 |
|
|
21 |
// System includes
|
|
22 |
#include <aknappui.h>
|
|
23 |
|
|
24 |
// User includes
|
|
25 |
|
|
26 |
// Forward declarations
|
|
27 |
class CAdtUpdaterContainer;
|
|
28 |
|
|
29 |
// Class declaration
|
|
30 |
/**
|
|
31 |
* @class CAdtUpdaterAppUi
|
|
32 |
* @brief The CAknAppUi inheriting class.
|
|
33 |
* @exe adtupdater.exe
|
|
34 |
*/
|
|
35 |
class CAdtUpdaterAppUi : public CAknAppUi
|
|
36 |
{
|
|
37 |
public: // Constructor and destructor
|
|
38 |
|
|
39 |
/**
|
|
40 |
* @brief C++ default constructor
|
|
41 |
*/
|
|
42 |
CAdtUpdaterAppUi();
|
|
43 |
|
|
44 |
/**
|
|
45 |
* @brief Destructor.
|
|
46 |
*/
|
|
47 |
~CAdtUpdaterAppUi();
|
|
48 |
|
|
49 |
public: // From base classes
|
|
50 |
|
|
51 |
/**
|
|
52 |
* @brief From CAknViewAppUi. Handles menu commands.
|
|
53 |
* @param aCommandId The id of the command to be handled.
|
|
54 |
*/
|
|
55 |
void HandleCommandL( TInt aCommandId );
|
|
56 |
|
|
57 |
/**
|
|
58 |
* @brief From CAknAppUi. Handles when application gains or looses foreground.
|
|
59 |
* @param aForeground EFalse when application is being sent to background.
|
|
60 |
*/
|
|
61 |
void HandleForegroundEventL( TBool aForeground );
|
|
62 |
|
|
63 |
public: // New functions
|
|
64 |
|
|
65 |
/**
|
|
66 |
* @brief Switches the application from background to foreground and vise versa.
|
|
67 |
* @param aForeground ETrue if the application needs to be brought to the foreground.
|
|
68 |
*/
|
|
69 |
void ToggleAppViewL( TBool aForeground );
|
|
70 |
|
|
71 |
/**
|
|
72 |
* @brief Checks whether adtupdater app is in background by window group id
|
|
73 |
* @return ETrue if the application is in background and EFalse if it is in foreground.
|
|
74 |
*/
|
|
75 |
TBool IsAppInBackground();
|
|
76 |
|
|
77 |
/**
|
|
78 |
* @brief Checks whether any high priority window like call is active.
|
|
79 |
* @return ETrue if the high priority window is active and EFalse otherwise.
|
|
80 |
*/
|
|
81 |
TBool IsHighPriorityWindowActive();
|
|
82 |
|
|
83 |
/**
|
|
84 |
* @brief Hides the status pane of the application.
|
|
85 |
* @param aHide ETrue if status pane has to be hidden.
|
|
86 |
*/
|
|
87 |
void HideStatusPane( TBool aHide );
|
|
88 |
|
|
89 |
private: // New functions
|
|
90 |
|
|
91 |
/**
|
|
92 |
* @brief Symbian OS constructor. Performs the second phase of construction. May leave.
|
|
93 |
*/
|
|
94 |
void ConstructL();
|
|
95 |
|
|
96 |
public: // Data
|
|
97 |
|
|
98 |
/**
|
|
99 |
* @var iContainer
|
|
100 |
* @brief The container object.
|
|
101 |
*/
|
|
102 |
CAdtUpdaterContainer* iContainer;
|
|
103 |
|
|
104 |
private:
|
|
105 |
|
|
106 |
/**
|
|
107 |
* @var iAdtWgId
|
|
108 |
* @brief The id of the application's window group.
|
|
109 |
*/
|
|
110 |
TInt iAdtWgId;
|
|
111 |
|
|
112 |
};
|
|
113 |
|
|
114 |
#endif // __ADTUPDATER_APPUI_H__
|
|
115 |
|
|
116 |
// End of file
|