hotspotfw/hsbrowser/inc/hsbrowserappui.h
branchRCL_3
changeset 25 f28ada11abbf
parent 0 56b72877c1cb
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
       
     1 /*
       
     2 * Copyright (c) 2007 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:   The UI class for HotSpot Browser Application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef HSBROWSERAPPUI_H
       
    21 #define HSBROWSERAPPUI_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <eikapp.h>
       
    25 #include <eikdoc.h>
       
    26 #include <e32std.h>
       
    27 #include <coeccntx.h>
       
    28 #include <aknappui.h>
       
    29 #include <in_sock.h>
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CHsBrowserContainer;
       
    33 
       
    34 // CONSTANTS
       
    35 const TInt KBufSize = 512;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 /**
       
    39 * CHsBrowserAppUi class.
       
    40 * Application UI class which provides support for the following features:
       
    41 * - EIKON control architecture
       
    42 * 
       
    43 */
       
    44 class CHsBrowserAppUi : public CAknAppUi
       
    45     {
       
    46     public:
       
    47     
       
    48         /**
       
    49         * EPOC default constructor.
       
    50         */      
       
    51         void ConstructL();
       
    52 
       
    53         /**
       
    54         * Destructor.
       
    55         */      
       
    56         ~CHsBrowserAppUi();
       
    57         
       
    58     public: // From CEikAppUi
       
    59         
       
    60         /**
       
    61         * Parses command line arguments.
       
    62         *
       
    63         * @param aCommandLine Reference to command line.
       
    64         */
       
    65         TBool ProcessCommandParametersL( CApaCommandLine& aCommandLine );
       
    66 
       
    67         /**
       
    68         * Takes care of command handling.
       
    69         *
       
    70         * @param aCommand Command to be handled
       
    71         */
       
    72         void HandleCommandL(TInt aCommand);
       
    73 
       
    74         /**
       
    75         * Handles key events.
       
    76         *
       
    77         * @param aKeyEvent Event to handled.
       
    78         * @param aType Type of the key event. 
       
    79         * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
       
    80         */
       
    81         virtual TKeyResponse HandleKeyEventL(
       
    82             const TKeyEvent& aKeyEvent,TEventCode aType);
       
    83 
       
    84         /**
       
    85         * Handles changes in keyboard focus when an application switches to, 
       
    86         * or from, the foreground.
       
    87         *
       
    88         * @param aForeground ETrue if the application is in the foreground,
       
    89         * otherwise EFalse.
       
    90         */
       
    91         void HandleForegroundEventL( TBool aForeground );
       
    92 
       
    93     private: //data
       
    94 
       
    95         /**
       
    96         * Pointer to container of Hotspot Browser .
       
    97         */
       
    98         CHsBrowserContainer* iAppContainer;        
       
    99     };
       
   100 
       
   101 #endif
       
   102 
       
   103 // End of File
       
   104 
       
   105