diff -r 63be7eb3fc78 -r f28ada11abbf hotspotfw/hsbrowser/inc/hsbrowserappui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hotspotfw/hsbrowser/inc/hsbrowserappui.h Wed Sep 01 12:20:32 2010 +0100 @@ -0,0 +1,105 @@ +/* +* Copyright (c) 2007 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: The UI class for HotSpot Browser Application. +* +*/ + + + +#ifndef HSBROWSERAPPUI_H +#define HSBROWSERAPPUI_H + +// INCLUDES +#include +#include +#include +#include +#include +#include + +// FORWARD DECLARATIONS +class CHsBrowserContainer; + +// CONSTANTS +const TInt KBufSize = 512; + +// CLASS DECLARATION +/** +* CHsBrowserAppUi class. +* Application UI class which provides support for the following features: +* - EIKON control architecture +* +*/ +class CHsBrowserAppUi : public CAknAppUi + { + public: + + /** + * EPOC default constructor. + */ + void ConstructL(); + + /** + * Destructor. + */ + ~CHsBrowserAppUi(); + + public: // From CEikAppUi + + /** + * Parses command line arguments. + * + * @param aCommandLine Reference to command line. + */ + TBool ProcessCommandParametersL( CApaCommandLine& aCommandLine ); + + /** + * Takes care of command handling. + * + * @param aCommand Command to be handled + */ + void HandleCommandL(TInt aCommand); + + /** + * Handles key events. + * + * @param aKeyEvent Event to handled. + * @param aType Type of the key event. + * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). + */ + virtual TKeyResponse HandleKeyEventL( + const TKeyEvent& aKeyEvent,TEventCode aType); + + /** + * Handles changes in keyboard focus when an application switches to, + * or from, the foreground. + * + * @param aForeground ETrue if the application is in the foreground, + * otherwise EFalse. + */ + void HandleForegroundEventL( TBool aForeground ); + + private: //data + + /** + * Pointer to container of Hotspot Browser . + */ + CHsBrowserContainer* iAppContainer; + }; + +#endif + +// End of File + +