adaptationlayer/tsy/simatktsy_dll/internal/test/simatktsy_testtool/simatk/inc/satsimsessionend.h
changeset 4 510c70acdbf6
parent 3 1972d8c2e329
child 5 8ccc39f9d787
equal deleted inserted replaced
3:1972d8c2e329 4:510c70acdbf6
     1 /*
       
     2 * Copyright (c) 2002-2006 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 the License "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:   Sim session end specific test class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef SATSIMSESSIONEND_H
       
    21 #define SATSIMSESSIONEND_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 class RSat;
       
    28 
       
    29 /**
       
    30 *  Class provides functionality to verify the functionality
       
    31 *  Sim session end.
       
    32 *  @lib SimAtk.dll
       
    33 */
       
    34 NONSHARABLE_CLASS( CSatSimSessionEnd ) : public CBase
       
    35     {
       
    36     
       
    37     public: // Constructors and destructor
       
    38         
       
    39         /**
       
    40         * Constructor.
       
    41         */     
       
    42         CSatSimSessionEnd( const RSat& aSat );
       
    43         
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         ~CSatSimSessionEnd();
       
    48         
       
    49         
       
    50     public: // New methods
       
    51 
       
    52         /**
       
    53         * Method requests Notifies Etel about SimSessionEnd
       
    54         * @return none
       
    55         */
       
    56         void NotifySat();
       
    57         
       
    58         /**
       
    59         * Method cancels pending Etel about SimSessionEnd request
       
    60         * @return none
       
    61         */
       
    62         void Cancel();
       
    63         
       
    64         /**
       
    65         * Waits for SessionEnd completion from SimAtkTsy for a short while.
       
    66         * @return KErrNone if SessionEnd was received OK, or KErrTimedOut
       
    67         */
       
    68         TInt WaitSessionEnd();
       
    69         
       
    70         /**
       
    71         * Returns the current status of SessionEnd's timeout-status.
       
    72         * @return Returns ETrue if SessionEnd was not received in time for 
       
    73         * last message sent to SIM. Otherwise EFalse is returned
       
    74         */
       
    75         TBool TimedOut();
       
    76         
       
    77         /**
       
    78         * Returns the notification status of SessionEnd
       
    79         * @return Returns KRequestPending if SessionEnd has been notified,
       
    80         * otherwise zero.
       
    81         */
       
    82         TInt Status();
       
    83                 
       
    84 
       
    85     private: // Member data
       
    86     
       
    87         /**
       
    88         * Request status of SessionEnd-notification
       
    89         */
       
    90         TRequestStatus  iSessionEndStatus;
       
    91 
       
    92         /**
       
    93         * Flag keeps track whether the SessionEnd was received or not
       
    94         */
       
    95         TBool           iSessionEndCompleted;  
       
    96         
       
    97         /**
       
    98         * Reference to SAT
       
    99         */        
       
   100         const RSat&     iSat;       
       
   101     };
       
   102 
       
   103 #endif // SATSIMSESSIONEND_H
       
   104             
       
   105 // End of File