stif/TestCombiner/inc/TestCombinerEvent.h
branchRCL_3
changeset 59 8ad140f3dd41
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 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: This file contains the header file of the event 
       
    15 * interface.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef TESTCOMBINEREVENT_H
       
    20 #define TESTCOMBINEREVENT_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <StifTestEventInterface.h>
       
    24 
       
    25 // CONSTANTS
       
    26 // None
       
    27 
       
    28 // MACROS
       
    29 // None
       
    30 
       
    31 // DATA TYPES
       
    32 // None
       
    33 
       
    34 
       
    35 // FUNCTION PROTOTYPES
       
    36 // None
       
    37 
       
    38 
       
    39 // FORWARD DECLARATIONS
       
    40 class CLogger;
       
    41 class CStifLogger;
       
    42 
       
    43 // CLASS DECLARATION
       
    44 
       
    45 
       
    46 // DESCRIPTION
       
    47 // Interface class for the test system.
       
    48 class TEventTc
       
    49     :public TEventIf
       
    50     {
       
    51     public: // Enumerations
       
    52         // None
       
    53 
       
    54     private: // Enumerations
       
    55         // None
       
    56 
       
    57     public:  // Constructors and destructor
       
    58         /**
       
    59         * C++ default constructor.
       
    60         */
       
    61         TEventTc( CStifLogger* aLogger );
       
    62         
       
    63         /**
       
    64         * C++ parametric constructor.
       
    65         */
       
    66         TEventTc( TName& aEventName, CStifLogger* aLogger );
       
    67   
       
    68         /**
       
    69         * C++ destructor.
       
    70         */
       
    71         ~TEventTc();
       
    72 
       
    73     public: // New functions
       
    74         
       
    75         /**
       
    76         * Set request status member.
       
    77         */
       
    78         void SetRequestStatus( TRequestStatus* aStatus );
       
    79         
       
    80         /**
       
    81         * Complete request status member.
       
    82         */
       
    83         void Complete( TInt aError );
       
    84 
       
    85         /**
       
    86         * Set event pending.
       
    87         */
       
    88         void SetEvent( TEventType aEventType );
       
    89         
       
    90         /**
       
    91         * Wait event.
       
    92         */
       
    93         void WaitEvent( TRequestStatus& aStatus );
       
    94         
       
    95     public: // Functions from base classes
       
    96         // None
       
    97         
       
    98     protected:  // New functions
       
    99         // None
       
   100         
       
   101     protected:  // Functions from base classes
       
   102         // None
       
   103         
       
   104     private:
       
   105         // None
       
   106         
       
   107     public:   //Data
       
   108         // None
       
   109         
       
   110     protected:  // Data
       
   111         // None
       
   112         
       
   113     private:    // Data
       
   114         /**
       
   115         * Request status.
       
   116         */
       
   117         TRequestStatus* iReq; 
       
   118         
       
   119         /**
       
   120         * Logger.
       
   121         */ 
       
   122         CStifLogger*  iLogger;
       
   123                         
       
   124     public:     // Friend classes
       
   125         // None
       
   126 
       
   127     protected:  // Friend classes
       
   128         // None
       
   129 
       
   130     private:    // Friend classes
       
   131         // None
       
   132     };
       
   133 
       
   134 #endif      // TESTCOMBINEREVENT_H
       
   135 
       
   136 // End of File