diff -r 5aadd1120515 -r b57382753122 clock2/clockui/adtupdater/inc/adtupdaterappui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clock2/clockui/adtupdater/inc/adtupdaterappui.h Wed Nov 03 17:12:22 2010 +0530 @@ -0,0 +1,116 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: This is the header file for the CAdtUpdaterAppUi class. +* +*/ + +#ifndef __ADTUPDATER_APPUI_H__ +#define __ADTUPDATER_APPUI_H__ + +// System includes +#include + +// User includes + +// Forward declarations +class CAdtUpdaterContainer; + +// Class declaration +/** +* @class CAdtUpdaterAppUi +* @brief The CAknAppUi inheriting class. +* @exe adtupdater.exe +*/ +class CAdtUpdaterAppUi : public CAknAppUi + { + public: // Constructor and destructor + + /** + * @brief C++ default constructor + */ + CAdtUpdaterAppUi(); + + /** + * @brief Destructor. + */ + ~CAdtUpdaterAppUi(); + + public: // From base classes + + /** + * @brief From CAknViewAppUi. Handles menu commands. + * @param aCommandId The id of the command to be handled. + */ + void HandleCommandL( TInt aCommandId ); + + /** + * @brief From CAknAppUi. Handles when application gains or looses foreground. + * @param aForeground EFalse when application is being sent to background. + */ + void HandleForegroundEventL( TBool aForeground ); + + public: // New functions + + /** + * @brief Switches the application from background to foreground and vise versa. + * @param aForeground ETrue if the application needs to be brought to the foreground. + */ + void ToggleAppViewL( TBool aForeground ); + + /** + * @brief Checks whether adtupdater app is in background by window group id + * @return ETrue if the application is in background and EFalse if it is in foreground. + */ + TBool IsAppInBackground(); + + /** + * @brief Checks whether any high priority window like call is active. + * @return ETrue if the high priority window is active and EFalse otherwise. + */ + TBool IsHighPriorityWindowActive(); + + /** + * @brief Hides the status pane of the application. + * @param aHide ETrue if status pane has to be hidden. + */ + void HideStatusPane( TBool aHide ); + + private: // New functions + + /** + * @brief Symbian OS constructor. Performs the second phase of construction. May leave. + */ + void ConstructL(); + + public: // Data + + /** + * @var iContainer + * @brief The container object. + */ + CAdtUpdaterContainer* iContainer; + + private: + + /** + * @var iAdtWgId + * @brief The id of the application's window group. + */ + TInt iAdtWgId; + + }; + +#endif // __ADTUPDATER_APPUI_H__ + +// End of file