videoutils_plat/videoconnutility_api/tsrc/VCXTestCommon/inc/CIptvTestEvent.h
branchRCL_3
changeset 48 13a33d82ad98
parent 0 822a42b6c3f1
equal deleted inserted replaced
47:826cea16efd9 48:13a33d82ad98
       
     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 #ifndef CIPTVTESTEVENT_H
       
    20 #define CIPTVTESTEVENT_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <e32std.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CIptvTestEvent;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *
       
    41 *
       
    42 *
       
    43 *
       
    44 *  @since
       
    45 */
       
    46 class CIptvTestEvent : public CBase
       
    47     {
       
    48     public:  // Constructors and destructor
       
    49 
       
    50         /**
       
    51         * Two-phased constructor.
       
    52         */
       
    53         //IMPORT_C static CIptvTestEvent* NewL(TInt aTimeoutSeconds);
       
    54 
       
    55         /**
       
    56         * C++ default constructor.
       
    57         */
       
    58         IMPORT_C CIptvTestEvent( const TDesC& aName, TInt aTimeoutSeconds);
       
    59 
       
    60         /**
       
    61         * Destructor.
       
    62         */
       
    63         IMPORT_C virtual ~CIptvTestEvent();
       
    64 
       
    65 
       
    66     public: // New functions
       
    67 
       
    68 		/**
       
    69 		* Compares if this and aEvent are same. Returns ETrue if so, else EFalse.
       
    70 		*/
       
    71 		IMPORT_C virtual TBool Compare( CIptvTestEvent& aEvent ) = 0;
       
    72 
       
    73 		/**
       
    74 		* Returns error code if there's error in the event, otherwise KErrNone.
       
    75 		*/
       
    76 		IMPORT_C virtual TInt GetError( ) = 0;
       
    77 
       
    78 		/**
       
    79 		* Getter for even name.
       
    80 		*/
       
    81 		IMPORT_C void GetName( TDes& aName );
       
    82 
       
    83 		/**
       
    84 		* Returns if event has timed out.
       
    85 		*/
       
    86 		IMPORT_C TBool HasTimeouted( TTime& aTimeNow );
       
    87 
       
    88 		/*
       
    89 		* Starts timing for this event
       
    90 		*/
       
    91 		IMPORT_C void Activate( );
       
    92 
       
    93 		/*
       
    94 		* Stops timing for this event
       
    95 		*/
       
    96 		IMPORT_C void Deactivate( );
       
    97 
       
    98     protected: //from base classes
       
    99 
       
   100     private:
       
   101 
       
   102 
       
   103         /**
       
   104         * By default Symbian 2nd phase constructor is private.
       
   105         */
       
   106         void ConstructL();
       
   107 
       
   108     private:    // Data
       
   109 
       
   110           TInt iTimeoutSeconds;
       
   111           TTime iActivationTime;
       
   112           TBuf<32> iName;
       
   113           TBool iActive;
       
   114     };
       
   115 
       
   116 
       
   117 #endif      // CIPTVTESTEVENT_H
       
   118 
       
   119 // End of File