satengine/SatServer/Commands/SetUpIdleModeTextCmd/inc/CSetUpIdleModeTextHandler.h
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2002-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:  SetUpIdleModeText command handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CSETUPIDLEMODETEXTHANDLER_H
       
    21 #define CSETUPIDLEMODETEXTHANDLER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <etelsat.h>
       
    25 #include "CSatCommandHandler.h"
       
    26 
       
    27 // FORWARD DECLARATION
       
    28 class MSatUtils;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  Command handler for SetUpIdleModeText command.
       
    34 *
       
    35 *  @lib SetUpIdleModeTextCmd.lib
       
    36 *  @since Series 60 3.0
       
    37 */
       
    38 class CSetUpIdleModeTextHandler : public CSatCommandHandler
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41 
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         * @param aUtils Utils inteface
       
    45         */
       
    46         static CSetUpIdleModeTextHandler* NewL( MSatUtils* aUtils );
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CSetUpIdleModeTextHandler();
       
    52 
       
    53     public: // Functions from base classes
       
    54 
       
    55         /**
       
    56         * From MSatEventObserver. Notification of Idle Mode responses.
       
    57         * @param aEvent Identifies the event.
       
    58         */
       
    59         void Event( TInt aEvent );
       
    60 
       
    61     protected:  // Functions from base classes
       
    62 
       
    63         /**
       
    64         * From CActive Cancels the usat request.
       
    65         */
       
    66         void DoCancel();
       
    67 
       
    68         /**
       
    69         * From CCommandHandler Requests the command notification.
       
    70         * @param aStatus Request status to active object notification
       
    71         */
       
    72         void IssueUSATRequest( TRequestStatus& aStatus );
       
    73 
       
    74         /**
       
    75         * From CCommandHandler Precheck before executing the command.
       
    76         * @return Boolean indicating is this command allowed to execute.
       
    77         */
       
    78         TBool CommandAllowed();
       
    79 
       
    80         /**
       
    81         * From CCommandHandler Need for ui session.
       
    82         * @return Boolean indicating does this command need UI session.
       
    83         */
       
    84         TBool NeedUiSession();
       
    85 
       
    86         /**
       
    87         * From CCommandHandler Called when USAT API notifies that command.
       
    88         */
       
    89         void HandleCommand();
       
    90 
       
    91         /**
       
    92         * From CSatCommandHandler. Indicates the failure of launching ui client.
       
    93         */
       
    94         void UiLaunchFailed();
       
    95 
       
    96     private:
       
    97 
       
    98         /**
       
    99         * C++ default constructor.
       
   100         */
       
   101         CSetUpIdleModeTextHandler();
       
   102 
       
   103         /**
       
   104         * By default Symbian 2nd phase constructor is private.
       
   105         */
       
   106         void ConstructL();
       
   107 
       
   108     private:    // Data
       
   109 
       
   110         // SetUpIdleModeText command data.
       
   111         RSat::TSetUpIdleModeTextV1 iSetUpIdleModeTextData;
       
   112 
       
   113         // SetUpIdleModeText command package.
       
   114         RSat::TSetUpIdleModeTextV1Pckg iSetUpIdleModeTextPckg;
       
   115 
       
   116         // Response from client.
       
   117         RSat::TSetUpIdleModeTextRspV1 iSetUpIdleModeTextRsp;
       
   118 
       
   119         // Response package.
       
   120         RSat::TSetUpIdleModeTextRspV1Pckg iSetUpIdleModeTextRspPckg;
       
   121 
       
   122         // Indicates are we waiting for response
       
   123         TBool iWaitingForResponse;
       
   124 
       
   125         // Store for restoring last valid idle mode text.
       
   126         TBool iSimResetExecuting;
       
   127         RSat::TIdleModeText iLastValidText;
       
   128         TInt iLastValidIconId;
       
   129         RSat::TIconQualifier iLastValidIconQualifier;
       
   130 
       
   131         // Indicates whether the homezone indicator is supported.
       
   132         TInt iHasHomezoneIndicator;
       
   133     };
       
   134 
       
   135 #endif      // CSETUPIDLEMODETEXTHANDLER_H
       
   136 
       
   137 // End of File