telephonyserverplugins/simatktsy/inc/CSatNotifyGetChannelStatus.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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 * Name        : CSatNotifyGetChannelStatus.h
       
    16 * Part of     : Common SIM ATK TSY / commonsimatktsy
       
    17 * Specific notifications class
       
    18 * Version     : 1.0
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 #ifndef CSATNOTIFYGETCHANNELSTATUS_H
       
    25 #define CSATNOTIFYGETCHANNELSTATUS_H
       
    26 
       
    27 
       
    28 //  INCLUDES
       
    29 #include <etelsat.h>
       
    30 #include "MSatNotificationsBase.h"
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class CSatDataPackage;
       
    34 class CSatNotificationsTsy;
       
    35 
       
    36 /**
       
    37 * DESCRIPTION
       
    38 * SAT Notify Get Channel Status notification class.
       
    39 * Created when client requests to be notified when Get Channel Status
       
    40 * command arrives from SIM.
       
    41 *
       
    42 * The purpose of this command is to enable the SAT
       
    43 * (which alerts other applications in the phone) to be notified
       
    44 * of the changes to the SIM configuration that have occurred as
       
    45 * the result of a SIM application activity. It is up to SAT to
       
    46 * ensure this is done correctly.
       
    47 * @lib Commonsimatktsy
       
    48 * @since 3.1
       
    49 */
       
    50 NONSHARABLE_CLASS ( CSatNotifyGetChannelStatus ) : public CBase,
       
    51                               	   public MSatNotificationsBase
       
    52     {
       
    53     public:  // Constructors and destructor
       
    54 
       
    55         /**
       
    56         * Two-phased constructor.
       
    57         * @param aNotificationsTsy: Pointer to NotificationsTsy
       
    58         * return CSatNotifyGetChannelStatus*: created object 
       
    59         */
       
    60         static CSatNotifyGetChannelStatus* NewL( 
       
    61         	CSatNotificationsTsy* aNotificationsTsy );
       
    62 
       
    63         /**
       
    64         * C++ Destructor.
       
    65         */
       
    66         ~CSatNotifyGetChannelStatus();
       
    67 
       
    68 	private:
       
    69 	
       
    70         /**
       
    71         * By default C++ constructor is private.
       
    72         * @param aNotificationsTsy: Pointer to NotificationsTsy
       
    73         * @return None
       
    74         */
       
    75         CSatNotifyGetChannelStatus( CSatNotificationsTsy* aNotificationsTsy );
       
    76 
       
    77         /**
       
    78         * Class attributes are created in ConstructL. 
       
    79         * @param None
       
    80         * @return None
       
    81         */
       
    82         void ConstructL();
       
    83 
       
    84     public: // Functions from base classes
       
    85                 
       
    86         /**
       
    87         * Notification request received from client
       
    88         * @param aTsyReqHandle: request handle from ETel
       
    89         * @param aPackage: Packed data
       
    90         * @return KErrNone
       
    91         */
       
    92         TInt Notify( const TTsyReqHandle aTsyReqHandle,
       
    93             const TDataPackage& aPackage );
       
    94 
       
    95         /**
       
    96         * Cancels notification request about get channel status.
       
    97         * @param aReqHandle notify request handle
       
    98         * @return KErrNone
       
    99         */
       
   100         TInt CancelNotification( const TTsyReqHandle aReqHandle );
       
   101         
       
   102         /**
       
   103         * Completes the notification request received from client
       
   104         * @param aDataPackage: Packaged return data
       
   105         * @param aErrorCode: Possible error code
       
   106         * @return KErrNone
       
   107         */
       
   108         TInt CompleteNotifyL( CSatDataPackage* aDataPackage, TInt aErrorCode );
       
   109 
       
   110         /**
       
   111         * Handles the Display text terminal response
       
   112         * @param aRsp: Response structure
       
   113         * @return KErrNone/ KErrCorrupt
       
   114         */
       
   115         TInt TerminalResponseL( TDes8* aRsp );
       
   116 
       
   117 	public: // New functions
       
   118 	
       
   119         /**
       
   120         * Create notification specific terminal response data
       
   121         * @param aPCmdNumber: Proactive command number
       
   122         * @param aGeneralResult: Result of the proactive command
       
   123         * @param aAdditionalInfo: Additional info for terminal response
       
   124         * @return Success/Failure value
       
   125         */
       
   126         TInt CreateTerminalRespL( TUint8 aPCmdNumber, 
       
   127                                   TUint8 aGeneralResult,
       
   128                                   const TDesC16& aAdditionalInfo );
       
   129         
       
   130     private:    // Data
       
   131 
       
   132         // Notify Get Channel Status struct. Package received from ETel.
       
   133         RSat::TGetChannelStatusV2Pckg* iGetChannelStatusRspV2Pckg;
       
   134 
       
   135         // Pointer to the notifications tsy class
       
   136         CSatNotificationsTsy* iNotificationsTsy;
       
   137 
       
   138     };
       
   139 
       
   140 #endif // CSATNOTIFYGETCHANNELSTATUS_H