satengine/SatServer/Commands/GetInputCmd/inc/CGetInputHandler.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     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:  GetInput command handler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CGETINPUTHANDLER_H
       
    20 #define CGETINPUTHANDLER_H
       
    21 
       
    22 #include <etelsat.h>
       
    23 
       
    24 #include "CSatCommandHandler.h"
       
    25 
       
    26 class MSatUtils;
       
    27 
       
    28 /**
       
    29  *  Command handler for GetInput command.
       
    30  *
       
    31  *  @lib GetInputCmd.lib
       
    32  *  @since S60 v3.0
       
    33  */
       
    34 class CGetInputHandler : public CSatCommandHandler
       
    35     {
       
    36 
       
    37 public:
       
    38 
       
    39     static CGetInputHandler* NewL( MSatUtils* aUtils );
       
    40 
       
    41     virtual ~CGetInputHandler();
       
    42 
       
    43 // from base class MSatCommand
       
    44 
       
    45     /**
       
    46      * From MSatCommand.
       
    47      * Response from the client.
       
    48      *
       
    49      */
       
    50     void ClientResponse();
       
    51 
       
    52 protected:
       
    53 
       
    54 // from base class CActive
       
    55 
       
    56     /**
       
    57      * From CActive.
       
    58      * Cancels the usat request.
       
    59      *
       
    60      */
       
    61     void DoCancel();
       
    62 
       
    63 // from base class CSatCommandHandler
       
    64 
       
    65     /**
       
    66      * From CSatCommandHandler.
       
    67      * Requests the command notification.
       
    68      *
       
    69      * @param aStatus Request status
       
    70      */
       
    71     void IssueUSATRequest( TRequestStatus& aStatus );
       
    72 
       
    73     /**
       
    74      * From CSatCommandHandler.
       
    75      * Precheck before executing the command.
       
    76      *
       
    77      * @return TBool indicating command is currently allowed.
       
    78      */
       
    79     TBool CommandAllowed();
       
    80 
       
    81     /**
       
    82      * From CSatCommandHandler.
       
    83      * Need for ui session.
       
    84      *
       
    85      * @return TBool indicating need of ui session.
       
    86      */
       
    87     TBool NeedUiSession();
       
    88 
       
    89     /**
       
    90      * From CSatCommandHandler.
       
    91      * Called when USAT API notifies that command.
       
    92      *
       
    93      */
       
    94     void HandleCommand();
       
    95 
       
    96     /**
       
    97      * From CSatCommandHandler.
       
    98      * Indicates the failure of launching ui client.
       
    99      *
       
   100      */
       
   101     void UiLaunchFailed();
       
   102 
       
   103 private:
       
   104 
       
   105     CGetInputHandler();
       
   106 
       
   107     void ConstructL();
       
   108 
       
   109 private: // data
       
   110 
       
   111     /**
       
   112      * GetInput command data.
       
   113      */
       
   114     RSat::TGetInputV1 iGetInputData;
       
   115 
       
   116     /**
       
   117      * GetInput command package.
       
   118      */
       
   119     RSat::TGetInputV1Pckg iGetInputPckg;
       
   120 
       
   121     /**
       
   122      * Response from client.
       
   123      */
       
   124     RSat::TGetInputRspV1 iGetInputRsp;
       
   125 
       
   126     /**
       
   127      * Response package.
       
   128      */
       
   129     RSat::TGetInputRspV1Pckg iGetInputRspPckg;
       
   130                 
       
   131     /**
       
   132      * Flag to signal that command has icon data
       
   133      * To be removed when icons are allowed in this command
       
   134      */
       
   135     TBool iIconCommand;
       
   136 
       
   137     };
       
   138 
       
   139 #endif      // CGETINPUTHANDLER_H
       
   140