videoutils_plat/videoconnutility_api/tsrc/VCXTestCommon/inc/CIptvTestActiveWait.h
branchRCL_3
changeset 22 826cea16efd9
parent 21 798ee5f1972c
child 23 13a33d82ad98
equal deleted inserted replaced
21:798ee5f1972c 22:826cea16efd9
     1 /*
       
     2 * Copyright (c) 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 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CIPTVTESTACTIVEWAIT_H
       
    21 #define CIPTVTESTACTIVEWAIT_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *
       
    40 *
       
    41 *
       
    42 *
       
    43 *  @since
       
    44 */
       
    45 class CIptvTestActiveWait : public CBase
       
    46     {
       
    47     public:  // Constructors and destructor
       
    48         /**
       
    49         * Two-phased constructor.
       
    50         */
       
    51         IMPORT_C static CIptvTestActiveWait * NewL();
       
    52 
       
    53         /**
       
    54         * Destructor.
       
    55         */
       
    56         IMPORT_C virtual ~CIptvTestActiveWait ();
       
    57 
       
    58 
       
    59 	enum TIptvTestActiveWaitCmd
       
    60        	{
       
    61        	EActiveWaitStart,
       
    62        	EActiveWaitStop
       
    63        	};
       
    64 
       
    65     public: // New functions
       
    66 
       
    67     	/*
       
    68     	* To start and stop CActiveSchedulerWait
       
    69     	*/
       
    70 
       
    71 		IMPORT_C void ActiveWait( TIptvTestActiveWaitCmd aActiveWaitCmd );
       
    72 
       
    73 		/*
       
    74 		 * Returns ETrue if CActiveSchedulerWait is running.
       
    75 		 */
       
    76 		IMPORT_C TBool IsWaiting();
       
    77 
       
    78         /*
       
    79          * Starts active wait.
       
    80          */
       
    81         IMPORT_C TInt Start();
       
    82 
       
    83         /*
       
    84          * Stops active wait.
       
    85          */
       
    86         IMPORT_C TInt Stop();
       
    87 
       
    88 
       
    89     protected: // From base classes
       
    90 
       
    91     private:
       
    92 
       
    93         /**
       
    94         * C++ default constructor.
       
    95         */
       
    96         CIptvTestActiveWait ();
       
    97 
       
    98         /**
       
    99         * By default Symbian 2nd phase constructor is private.
       
   100         */
       
   101         IMPORT_C void ConstructL();
       
   102 
       
   103     private:    // Data
       
   104 		CActiveSchedulerWait* iActiveSchedulerWait;
       
   105     };
       
   106 
       
   107 
       
   108 #endif      // CIPTVTESTACTIVEWAIT_H
       
   109 
       
   110 // End of File