satengine/SatServer/SatInternalClient/inc/CSatCSetUpMenuHandler.h
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     1 /*
       
     2 * Copyright (c) 2002-2008 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 is the handler for the SIM Application Toolkit
       
    15 *                Set Up Menu proactive command.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CSATCSETUPMENUHANDLER_H
       
    22 #define CSATCSETUPMENUHANDLER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <etelsat.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class RSatUiSession;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34  *  This is the Set Up Menu command active object handler.
       
    35  *  The class processes data from ETel SAT API and passes it on to
       
    36  *  the client. The selection made by the end-user is passed back to ETel.
       
    37  *
       
    38  *  @lib SatClient.lib
       
    39  *  @since Series 60 2.6
       
    40  */
       
    41 class CSatCSetUpMenuHandler : public CActive
       
    42     {
       
    43     public: // Constructors and destructor
       
    44 
       
    45         /**
       
    46          * Two-phased constructor.
       
    47          * @param aSat A pointer to a session (does not take ownership).
       
    48          */
       
    49         static CSatCSetUpMenuHandler* NewL( RSatUiSession* aSat );
       
    50 
       
    51         /**
       
    52          * Destructor.
       
    53          */
       
    54         virtual ~CSatCSetUpMenuHandler();
       
    55 
       
    56     public: // New functions
       
    57 
       
    58         /**
       
    59          * Starts listening for the Sat command.
       
    60          */
       
    61         void Start();
       
    62 
       
    63         /**
       
    64          * Returns a pointer to the object that implements old the command data
       
    65          * object.
       
    66          * @return The set up menu command handler object pointer.
       
    67          */
       
    68         RSat::TSetUpMenuV2 OldSetUpMenuData() const;
       
    69 
       
    70     protected:  // Functions from base classes
       
    71 
       
    72         /**
       
    73          * From CActive
       
    74          *
       
    75          * Handles the request completion.
       
    76          */
       
    77         void RunL();
       
    78 
       
    79         /**
       
    80          * From CActive
       
    81          *
       
    82          * Implements the cancel protocol.
       
    83          */
       
    84         void DoCancel();
       
    85 
       
    86     private: // Constructors
       
    87 
       
    88         /**
       
    89          * C++ default constructor.
       
    90          * @param aPriority The priority of this active object.
       
    91          * @param aSat A pointer to a session (does not take ownership).
       
    92          */
       
    93         CSatCSetUpMenuHandler( TInt aPriority, RSatUiSession* aSat );
       
    94 
       
    95     private: // Data
       
    96 
       
    97         /**
       
    98          * Reference to the Sat API
       
    99          */        
       
   100         RSatUiSession* iSession;
       
   101 
       
   102         /**
       
   103          * The data structure for the command data
       
   104          */
       
   105         RSat::TSetUpMenuV2 iSetUpMenuData;
       
   106 
       
   107         /**
       
   108          * The data structure for old the command data
       
   109          * Used for envelope menu selection
       
   110          */        
       
   111         RSat::TSetUpMenuV2 iOldSetUpMenuData;
       
   112 
       
   113         /**
       
   114          * The data package for IPC
       
   115          */         
       
   116         RSat::TSetUpMenuV2Pckg iSetUpMenuPckg;
       
   117 
       
   118         /**
       
   119          * The data structure for the response data
       
   120          */         
       
   121         RSat::TSetUpMenuRspV1 iSetUpMenuRsp;
       
   122 
       
   123         /**
       
   124          * The response package for IPC
       
   125          */         
       
   126         RSat::TSetUpMenuRspV1Pckg iSetUpMenuRspPckg;
       
   127 
       
   128     };
       
   129 
       
   130 #endif // CSATCSETUPMENUHANDLER_H
       
   131 
       
   132 // End of File