gssettingsuis/Gs/GSApplication/Inc/GSUi.h
branchRCL_3
changeset 25 7e0eff37aedb
parent 0 8c5d936e5675
equal deleted inserted replaced
24:8ee96d21d9bf 25:7e0eff37aedb
       
     1 /*
       
     2 * Copyright (c) 2005 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:  GS Application UI.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GSUI_H
       
    20 #define GSUI_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknViewAppUi.h>
       
    24 #include <aknsettingpage.h>
       
    25 //#include <ecom/ecom.h>
       
    26 #include <apgnotif.h>
       
    27 #include "GSEComNotifier.h"
       
    28 #include <apadoc.h>
       
    29 
       
    30 
       
    31 // CLASS DECLARATION
       
    32 class CAknWaitDialog;
       
    33 class CGSDocument;
       
    34 
       
    35 //For embedding CC in CS
       
    36 class TAppInfo
       
    37   {
       
    38     public:
       
    39       TAppInfo( TUid aUid, const TDesC& aFile )
       
    40         : iUid( aUid ), iFile( aFile )
       
    41         {}
       
    42       TUid iUid;
       
    43       TFileName iFile;
       
    44   };
       
    45 
       
    46 
       
    47 /**
       
    48 * UI class for General Settings application.
       
    49 * @since Series60_3.1
       
    50 */
       
    51 class CGSUi : public CAknViewAppUi, MGSEComObserver
       
    52     {
       
    53 
       
    54     public: // Constructors and destructor
       
    55 
       
    56         /**
       
    57         * C++ default constructor
       
    58         */
       
    59         CGSUi();
       
    60 
       
    61         /**
       
    62         * Symbian OS default constructor.
       
    63         *
       
    64         */
       
    65         void ConstructL();
       
    66 
       
    67         /**
       
    68         * Destructor.
       
    69         */
       
    70         ~CGSUi();
       
    71 
       
    72     public: // New
       
    73 
       
    74         /**
       
    75         * After successfully selecting a manual network, Phone is activated in
       
    76         * Idle state.
       
    77         */
       
    78         void PhoneIdle();
       
    79 
       
    80     /**
       
    81     * For embedding CC in CS
       
    82     */
       
    83     virtual void EmbedAppL( const TAppInfo& aApp );
       
    84 
       
    85     /**
       
    86     * Get document object
       
    87     */
       
    88     CGSDocument& GSDocument() const;
       
    89 
       
    90     public: // From CEikAppUi
       
    91         /**
       
    92         * Takes care of command handling.
       
    93         * @param aCommand command to be handled
       
    94         */
       
    95         void HandleCommandL( TInt aCommand );
       
    96 
       
    97 
       
    98     protected:  // From CEikAppUi
       
    99 
       
   100         /**
       
   101         * Message handling from CEikAppUi. See CEikAppUi.
       
   102         */
       
   103         MCoeMessageObserver::TMessageResponse HandleMessageL(
       
   104             TUint32 aClientHandleOfTargetWindowGroup,
       
   105             TUid aMessageUid,
       
   106             const TDesC8 &aMessageParameters );
       
   107 
       
   108     protected: // From MGSEComObserver
       
   109 
       
   110         /**
       
   111         *  See Base class.
       
   112         */
       
   113         void HandleEComEvent( TEComEvent aEvent );
       
   114 
       
   115     private: // From CEikAppUi
       
   116 
       
   117         /**
       
   118         * handles key events
       
   119         * @param aKeyEvent
       
   120         * @param aType type of the key event
       
   121         * @return TKeyResponse
       
   122         */
       
   123         virtual TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent,
       
   124                                               TEventCode aType );
       
   125 
       
   126     private: // New
       
   127 
       
   128         /**
       
   129         * Construct views.
       
   130         */
       
   131         void ConstructViewsL();
       
   132 
       
   133         /**
       
   134         * @return void
       
   135         */
       
   136         void ShowNoteGsNotOpenedDuringBackupRestoreL();
       
   137 
       
   138         /**
       
   139         * Closes embedded application if any exist.
       
   140         * @return KErrNone if succeeds.
       
   141         */
       
   142         TInt FindAndKillEmbeddedAppL();
       
   143 
       
   144     private: // From CEikAppUi
       
   145 
       
   146         /**
       
   147         * Handles resource change.
       
   148         */
       
   149         void HandleResourceChangeL( TInt aType );
       
   150 
       
   151     protected: // Data
       
   152 
       
   153         // Pointer to wait dialog.
       
   154         CAknWaitDialog* iWaitDialog;
       
   155 
       
   156     // Embedding.
       
   157         CApaDocument* iEmbedded;
       
   158         CAknView* iMainView;
       
   159 
       
   160         // Notifies if plugins are installed/uninstalled.
       
   161         CGSEComNotifier* iEComNotifier;
       
   162 
       
   163     };
       
   164 
       
   165 #endif // GSUI_H
       
   166 // End of File