hotspotfw/hsbrowser/inc/hsbrowserappui.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:20:32 +0100
branchRCL_3
changeset 25 f28ada11abbf
parent 0 56b72877c1cb
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201029 Kit: 201035

/*
* 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 <eikapp.h>
#include <eikdoc.h>
#include <e32std.h>
#include <coeccntx.h>
#include <aknappui.h>
#include <in_sock.h>

// 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