applicationmanagement/server/inc/AppMgmtSrvUI.h
changeset 0 3ce708148e4d
equal deleted inserted replaced
-1:000000000000 0:3ce708148e4d
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Implementation of applicationmanagement components
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef CAppMgmtSRVUI_H
       
    19 #define CAppMgmtSRVUI_H
       
    20 
       
    21 #include <bldvariant.hrh>
       
    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 <eikdialg.h>
       
    30 #include <eikmenup.h>
       
    31 #include <aknnavi.h>
       
    32 #include <aknnavide.h>
       
    33 #include <aknnavilabel.h>
       
    34 #include <akntitle.h>
       
    35 #include <AknProgressDialog.h>
       
    36 
       
    37 #include "AppMgmtSrvDocument.h"
       
    38 #include <aknViewAppUi.h>
       
    39 
       
    40 // FORWARD DECLARATIONS
       
    41 
       
    42 /**
       
    43  *  Application UI class 
       
    44  *
       
    45  *  @lib    AppMgmtserver
       
    46  *  @since  S60 v3.1
       
    47  */
       
    48 class CAppMgmtSrvUi : public CAknAppUi
       
    49     {
       
    50 public:
       
    51     // Constructors and destructor
       
    52 
       
    53     void ConstructL();
       
    54 
       
    55     virtual ~CAppMgmtSrvUi();
       
    56 
       
    57     void HandleForegroundEventL(TBool aValue);
       
    58 
       
    59 private:
       
    60     // from base classes
       
    61 
       
    62 
       
    63     /**
       
    64      * @param aResourceId        
       
    65      * @param aMenuPane
       
    66      * @return none
       
    67      */
       
    68     void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
       
    69 
       
    70     /**
       
    71      * From CEikAppUi, takes care of command handling.
       
    72      * @param aCommand id of the  command to be handled
       
    73      * @return None 
       
    74      */
       
    75     void HandleCommandL(TInt aCommand);
       
    76 
       
    77     /**
       
    78      * From CEikAppUi, handles key events.
       
    79      * @param aKeyEvent  Event to handled.
       
    80      * @param aType   Type of the key event. 
       
    81      * @return Reponse code (EKeyWasConsumed, EKeyWasNotConsumed). 
       
    82      */
       
    83     virtual TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,
       
    84             TEventCode aType);
       
    85 
       
    86     /**
       
    87      * From CAknAppUi, handles file change.
       
    88      * @param aFileName New file to be opened.
       
    89      * @return None
       
    90      */
       
    91     void OpenFileL(const TDesC& aFileName);
       
    92 
       
    93     /**
       
    94      * From CAknAppUi, Preparing to close server
       
    95      * @param None
       
    96      * @return None
       
    97      */
       
    98     void PrepareToExit();
       
    99 
       
   100 public:
       
   101 
       
   102 private:
       
   103     //Data
       
   104 
       
   105     /**
       
   106      * Should AppMgmt operation close on an system event (ex. MMC card removal)?
       
   107      */
       
   108     TBool iNeedToClose;
       
   109 
       
   110     };
       
   111 
       
   112 #endif
       
   113 
       
   114 // End of File