locationsystemui/locationsysui/locblidsatelliteinfo/inc/CSatellite.h
branchRCL_3
changeset 44 2b4ea9893b66
parent 42 02ba3f1733c6
child 45 6b6920c56e2f
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
     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: 
       
    15 *     Implements interface for Satellite.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __SATELLITE_H__
       
    21 #define __SATELLITE_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <eikenv.h>
       
    26 #include "MEngObserver.h"
       
    27 #include "SatInfoConsts.h"
       
    28 
       
    29 // FORWARD DECLARATION
       
    30 class MSatelliteEng;
       
    31 class CSatelliteDialog;
       
    32 class CAknWaitDialog;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 /**
       
    36  *  Implements 
       
    37  */
       
    38 NONSHARABLE_CLASS( CSatellite ) : public CBase, public MEngObserver
       
    39     {
       
    40     public:
       
    41         /**
       
    42          * Two-phased constructor.
       
    43          *
       
    44          * @return CSatellite object.
       
    45          */
       
    46         static CSatellite* NewL();
       
    47 
       
    48         /**
       
    49          * Destructor.
       
    50          */
       
    51         ~CSatellite();
       
    52 
       
    53     private:
       
    54         /**
       
    55          * By default Symbian 2nd phase constructor is private.
       
    56          */
       
    57         void ConstructL();
       
    58 
       
    59         /**
       
    60          * C++ default constructor.
       
    61          */
       
    62         CSatellite();
       
    63 
       
    64     public: // from MEngObserver
       
    65         void NotifyL(TInt aError);
       
    66         void NotifyError( TInt aErrorCode );        
       
    67 
       
    68     public: // new functions
       
    69         /**
       
    70          * Display satellite's information
       
    71          * @param aNameOfRule
       
    72          * @return TInt variable
       
    73          */
       
    74         TInt ExecuteL( const TDesC& aNameOfRule );
       
    75 
       
    76         /**
       
    77          * Dialog switched to foreground
       
    78          * @param aForeground ETrue to switch to the foreground. 
       
    79          * EFalse to switch from the foreground.
       
    80          */
       
    81         void HandleForegroundEventL(TBool aForeground);
       
    82         
       
    83         /**
       
    84         * Function used to set the default launch view
       
    85         * @param aView EGraphicalView if graphical view and ESignalStrengthView
       
    86         * for signal strength view
       
    87         */
       
    88         void SetLaunchView(TSatDialogView aView);
       
    89 
       
    90     private: // new functions
       
    91         /**
       
    92          * Open resource file
       
    93          */
       
    94         void OpenResourceFileL();
       
    95 
       
    96         /**
       
    97          * Close resource file
       
    98          */
       
    99         void CloseResourceFile();
       
   100 
       
   101         /** 
       
   102          * Find resource file
       
   103          */
       
   104         void FindResourceFileL();
       
   105         
       
   106     private:    // data
       
   107         /// Own:
       
   108         CEikonEnv* iEnv;
       
   109 
       
   110         /// Own: Resource file name and path
       
   111         TFileName iResourceFileName;
       
   112 
       
   113         /// Own:
       
   114         TInt iResourceOffset;
       
   115 
       
   116         /// Own: 
       
   117         MSatelliteEng* iEngine;
       
   118 
       
   119         /// Own:
       
   120         CSatelliteDialog* iDialog;
       
   121 
       
   122         ///Own: A pointer to CAknWaitDialog
       
   123 		CAknWaitDialog* iWaitDialog;	
       
   124 		
       
   125 		///Own: Launch view of the dialog
       
   126 		TSatDialogView iLaunchView;	
       
   127     };
       
   128 
       
   129 #endif // __SATELLITE_H__
       
   130 
       
   131 // End of File