defaultapplicationsettings/server/inc/das_appui.h
changeset 0 254040eb3b7d
equal deleted inserted replaced
-1:000000000000 0:254040eb3b7d
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  This class implements the AppUi
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_DEFAULTAPPAPPUI_H
       
    21 #define C_DEFAULTAPPAPPUI_H
       
    22 
       
    23 
       
    24 #include <aknappui.h>
       
    25 #include <eikmenub.h>
       
    26 
       
    27 class CDefaultAppSrvMimeDlg;
       
    28 class CDefaultAppView;
       
    29 class CDefaultAppServMimeApps;
       
    30 
       
    31 
       
    32 
       
    33 /**
       
    34  *  This class implements the AppUi.
       
    35  *
       
    36  *  @since Series 60 v5.0
       
    37  */
       
    38 class CDefaultAppAppUi : public CAknAppUi
       
    39     {
       
    40 public:
       
    41     
       
    42     /**
       
    43      * Destructor.
       
    44      */
       
    45     virtual ~CDefaultAppAppUi();
       
    46 
       
    47     /**
       
    48      * C++ default constructor.
       
    49      */
       
    50     CDefaultAppAppUi();
       
    51 
       
    52     /**
       
    53      * Symbian OS default constructor.
       
    54      */
       
    55     void ConstructL();
       
    56     
       
    57     /**
       
    58      * This function completes the construction of the AppUi. This function is called after the client
       
    59      * has connected to this server instance, and all the necessary data for this construction step is 
       
    60      * available.
       
    61      *
       
    62      * @since S60 v5.0
       
    63      * @param aClientUid The Uid of the client
       
    64      * @param aServiceFlags various flags that may alter what data is displayed to the user
       
    65      */
       
    66     void ConstructSrvMimeDlgL(TUid aClientUid, TInt aServiceFlags);
       
    67     
       
    68     /* 
       
    69      * This functino is used to record the exist of the dialog; 
       
    70      */
       
    71     void SetDialogExist( TBool aExist );
       
    72     
       
    73 public: // from CAknAppUi
       
    74     
       
    75     /**
       
    76      * From CAknAppUi.
       
    77      * Handles commands from the menu (see base class)
       
    78      *
       
    79      * @since S60 v5.0
       
    80      * @param aCommand the command being handled
       
    81      */
       
    82     void HandleCommandL(TInt aCommand);
       
    83 
       
    84     /**
       
    85      * From CAknAppUi.
       
    86      * Handles layout changes (e.g. from portrait to landscape)
       
    87      *
       
    88      * @since S60 v5.0
       
    89      * @param aType The type of resources that have changed
       
    90      */
       
    91     void HandleResourceChangeL(TInt aType);
       
    92     
       
    93      /**
       
    94      * Handles Window Server events (we are interested in catching the end key event 
       
    95      * and exiting the application
       
    96      *
       
    97      * @since S60 v5.0
       
    98      * @param aEvent The event that occurred
       
    99      * @param aDestination The control associated with the event
       
   100      */
       
   101     void HandleWsEventL(const TWsEvent & aEvent, CCoeControl * aDestination);
       
   102 
       
   103 
       
   104 private:
       
   105     
       
   106     /**
       
   107      * Imports and displays the icon of the client application.
       
   108      *
       
   109      * @since S60 v5.0
       
   110      */
       
   111     void SetClientIconL(TUid aClietAppUid);
       
   112 
       
   113 public: 
       
   114     
       
   115     /**
       
   116      * Pointer to the View
       
   117      * Own.
       
   118      */
       
   119     CDefaultAppView *iView;
       
   120     
       
   121     /**
       
   122      * Pointer to the dialog
       
   123      * Own.
       
   124      */
       
   125     CDefaultAppSrvMimeDlg *iDlg;
       
   126     
       
   127     /**
       
   128      * Pointer to the "engine". The engine is a place where application data is retrieved and stored.
       
   129      * Own.
       
   130      */
       
   131     CDefaultAppServMimeApps *iServMimeApps;
       
   132     
       
   133     /**
       
   134      * variable used to remember the list selection position when reloading the dialog
       
   135      * for the simplified view
       
   136      * Own.
       
   137      */
       
   138     TInt iSelectedItemSimple;
       
   139     
       
   140     /**
       
   141      * variable used to remember the list selection position when reloading the dialog
       
   142      * for the advanced view
       
   143      * Own.
       
   144      */
       
   145     TInt iSelectedItemAdvanced;
       
   146     
       
   147     /**
       
   148      * variable used to remember dialog type (simple/advanced) when reloading the dialog
       
   149      * Own.
       
   150      */
       
   151     TBool iReloadDlgAdvanced;
       
   152     
       
   153     /**
       
   154      * variable used to specify if the dialog is reloaded
       
   155      * Own.
       
   156      */
       
   157     TBool iReloadDlg;
       
   158     
       
   159     /**
       
   160      * specifies if the dialog is dismissed or reloaded
       
   161      * Own.
       
   162      */
       
   163     TBool iExitBack;
       
   164     
       
   165     TUid  iClientUid;
       
   166     
       
   167 private:
       
   168     // This is used to record the exist of the dialogue.
       
   169     TBool iDialogExist;
       
   170     };
       
   171 #endif // C_DEFAULTAPPAPPUI_H
       
   172 
       
   173 //end of file