videofeeds/server/tsrc/IptvTestUtility/inc/CIptvTestDlInfo.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:   Object to offer some common utility functions to Iptv engine testing*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CIPTVTESTDLINFO_H
       
    21 #define CIPTVTESTDLINFO_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "CIptvTestLogger.h"
       
    26 #include "CIptvTestUtilities.h"
       
    27 #include "CIptvTestDlFileInfo.h"
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 // MACROS
       
    32 
       
    33 // DATA TYPES
       
    34 
       
    35 // FUNCTION PROTOTYPES
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 
       
    39 // CLASS DECLARATION
       
    40 class CIptvTestUtilities;
       
    41 //class CIptvMyVideosGlobalFileId;
       
    42 
       
    43 
       
    44 /**
       
    45 *  
       
    46 *  
       
    47 *  
       
    48 *
       
    49 *  @since
       
    50 */
       
    51 class CIptvTestDlInfo : public CBase
       
    52     {
       
    53     public:  // Constructors and destructor
       
    54         
       
    55          /**
       
    56         * Two-phased constructor.
       
    57         */
       
    58         IMPORT_C static CIptvTestDlInfo* NewL();
       
    59 
       
    60         /**
       
    61         * Destructor.
       
    62         */
       
    63         IMPORT_C virtual ~CIptvTestDlInfo();
       
    64 					
       
    65 		IMPORT_C void DlStart(TUint32 aIapId,
       
    66 					        TIptvServiceId aServiceId,
       
    67 					        TIptvContentId aContentId,
       
    68 					        TUint32 aDlContentNum, // a content can have multiple urls (CIptvMediaContent)
       
    69 					        TIptvDownloadType aDlType);
       
    70         
       
    71 		IMPORT_C void DlStartFailed(TIptvServiceId aServiceId,
       
    72 	        						TIptvContentId aContentId,
       
    73 	        						TIptvDlError aError);                                        
       
    74         
       
    75 		IMPORT_C void DlGoing(TIptvServiceId aServiceId, 
       
    76 							TIptvContentId aContentId, 
       
    77 							CIptvMyVideosGlobalFileId& aFileId, 
       
    78 							TUint32 aState,
       
    79 							TIptvDlError aError );
       
    80 
       
    81 		IMPORT_C void DlUpdateState(TIptvServiceId aServiceId, 
       
    82 									TIptvContentId aContentId,
       
    83 									TUint32 aState, 
       
    84 									TIptvDlError aError );
       
    85 
       
    86 		IMPORT_C void DlStop(TIptvServiceId aServiceId, 
       
    87 							TIptvContentId aContentId, 
       
    88 							TUint32 aState,
       
    89 							TIptvDlError aError );
       
    90 							
       
    91 		IMPORT_C void DlTimeOut(TIptvServiceId aServiceId, 
       
    92 							TIptvContentId aContentId 
       
    93 							 );
       
    94 		
       
    95     protected: 
       
    96 	    
       
    97    
       
    98     private:
       
    99 				/**
       
   100         * C++ default constructor.
       
   101         */
       
   102         CIptvTestDlInfo();
       
   103 
       
   104         /**
       
   105         * By default Symbian 2nd phase constructor is private.
       
   106         */
       
   107         void ConstructL( );
       
   108         
       
   109      	TBool RemoveDlFileInfoItem(TUint32 index);
       
   110      		
       
   111         TBool FindDlFileInfo(TInt& aIndex,TIptvServiceId aServiceId,TIptvContentId aContentId);
       
   112 
       
   113     
       
   114     private:    // Data
       
   115 
       
   116 
       
   117         CIptvTestUtilities* iIptvTestUtilities;
       
   118         RPointerArray<CIptvTestDlFileInfo> iDlFileInfoArray;
       
   119     
       
   120 
       
   121    
       
   122     
       
   123     };
       
   124 
       
   125 #endif      // CIPTVTESTDLINFO_H   
       
   126             
       
   127 // End of File