telephonyserverplugins/simatktsy/inc/CSatNotifySimSessionEnd.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        : CSatNotifySimSessionEnd.h
       
    16 * Part of     : Common SIM ATK TSY / commonsimatktsy
       
    17 * Specific notifications class
       
    18 * Version     : 1.0
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 #ifndef CSATNOTIFYSIMSESSIONEND_H
       
    25 #define CSATNOTIFYSIMSESSIONEND_H
       
    26 
       
    27 
       
    28 //  INCLUDES
       
    29 #include <e32base.h>
       
    30 #include "MSatNotificationsBase.h"
       
    31 
       
    32 // FORWARD DECLARATIONS
       
    33 class CSatDataPackage;
       
    34 class CSatNotificationsTsy;
       
    35 
       
    36 /**
       
    37 * DESCRIPTION
       
    38 * SAT SIM Session End notification class.
       
    39 * SIM Session end tells the client when the last command in SIM application has
       
    40 * been processed, i.e. the SIM application has ended.
       
    41 * @lib Commonsimatktsy
       
    42 * @since 3.1
       
    43 */
       
    44 NONSHARABLE_CLASS ( CSatNotifySimSessionEnd ) : public CBase,
       
    45                                 public MSatNotificationsBase
       
    46     {
       
    47     public:  // Constructors and destructor
       
    48 
       
    49         /**
       
    50         * Two-phased constructor.
       
    51         * @param aNotificationsTsy: Pointer to NotificationsTsy
       
    52         * return CSatNotifySimSessionEnd*: created object 
       
    53         */
       
    54         static CSatNotifySimSessionEnd* NewL( 
       
    55         	CSatNotificationsTsy* aNotificationsTsy );
       
    56 
       
    57         /**
       
    58         * C++ Destructor.
       
    59         */
       
    60         ~CSatNotifySimSessionEnd();
       
    61 
       
    62 	private:
       
    63         /**
       
    64         * By default C++ constructor is private.
       
    65         * @param aNotificationsTsy: Pointer to NotificationsTsy
       
    66         * @return None
       
    67         */
       
    68         CSatNotifySimSessionEnd( CSatNotificationsTsy* aNotificationsTsy );
       
    69 
       
    70         /**
       
    71         * Class attributes are created in ConstructL. 
       
    72         * @param None
       
    73         * @return None
       
    74         */
       
    75         void ConstructL();
       
    76         
       
    77     public: // Functions from base classes
       
    78 
       
    79         /**
       
    80         * Notification request received from client
       
    81         * @param aTsyReqHandle: request handle from ETel
       
    82         * @param aPackage: Packed data
       
    83         * @return KErrNone
       
    84         */
       
    85         TInt Notify( const TTsyReqHandle aTsyReqHandle,
       
    86             const TDataPackage& aPackage );
       
    87 
       
    88         /**
       
    89         * Cancels notification request about session ending.
       
    90         * @param aReqHandle notify request handle
       
    91         * @return KErrNone
       
    92         */
       
    93         TInt CancelNotification( const TTsyReqHandle aReqHandle );
       
    94                  
       
    95 	public: // New functions
       
    96 	        
       
    97         /**
       
    98         * From CSatNotificationsBase handles a Sim Session end from phonet.
       
    99         * @param aDataPackage: Packaged return data
       
   100         * @param aErrorCode: Possible error code
       
   101         * @return KErrNone/ KErrCorrupt
       
   102         */
       
   103         TInt CompleteNotifyL( CSatDataPackage* aDataPackage, TInt aErrorCode );
       
   104 
       
   105     private: // Data
       
   106 
       
   107         // Pointer to the notifications tsy class
       
   108         CSatNotificationsTsy* iNotificationsTsy;
       
   109         
       
   110         
       
   111     };
       
   112 
       
   113 
       
   114 #endif // CSATNOTIFYSIMSESSIONEND_H