videofeeds/server/tsrc/IptvTestUtility/inc/CIptvTestMVApiUtil.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 CIPTVTESTMVAPIUTIL_H
       
    21 #define CIPTVTESTMVAPIUTIL_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "MIptvMyVideosClientObserver.h"
       
    25 #include "CIptvMyvideosClient.h"
       
    26 
       
    27 // CONSTANTS
       
    28                                             
       
    29 // MACROS
       
    30 
       
    31 // DATA TYPES
       
    32 
       
    33 // FUNCTION PROTOTYPES
       
    34 
       
    35 // FORWARD DECLARATIONS
       
    36 //class CIptvService;
       
    37 class CIptvMyVideosVideoFullDetails;
       
    38 class CIptvMediaContent;
       
    39 // CLASS DECLARATION
       
    40 
       
    41 /**
       
    42 *  
       
    43 *  
       
    44 *  
       
    45 *
       
    46 *  @since
       
    47 */
       
    48 class CIptvTestMVApiUtil : public CBase, public MIptvMyVideosClientObserver
       
    49     {
       
    50     public:  // Constructors and destructor
       
    51         
       
    52         /**
       
    53         * Two-phased constructor.
       
    54         */
       
    55         static CIptvTestMVApiUtil* NewL();
       
    56         
       
    57         /**
       
    58         * Destructor.
       
    59         */
       
    60         virtual ~CIptvTestMVApiUtil();
       
    61 
       
    62 
       
    63     public: // New functions
       
    64 
       
    65         /**
       
    66         * 
       
    67         * @since
       
    68         * @param 
       
    69         */
       
    70         
       
    71         /**
       
    72         * 
       
    73         */
       
    74 		TInt GetMyVideosVideoDetailsL(CIptvMyVideosGlobalFileId& aFileId, CIptvMyVideosVideoFullDetails& aVideoDetails);
       
    75 
       
    76 
       
    77         /**
       
    78         * Clean up MyVideos
       
    79         */
       
    80         TInt ReallycleanL();
       
    81         
       
    82         //unused asynchcronous callbacks
       
    83         void ContentsUpdated(TIptvContentUpdatedEvent aEvent );
       
    84         
       
    85        	void CopyOrMoveResponse(TInt /* aServerStatus */, TInt /* aOperationStatus */, TInt /* aFailed */) {};
       
    86         void TotalVideoLenghtResponse(TIptvPlayTime /*aTotalPlayTime*/, TIptvFileSize /*aTotalFileSize*/) {};
       
    87         
       
    88         TBool GetVideoInfo(CIptvMyVideosGlobalFileId& aFileId, 
       
    89                             TUint32& aServiceId, 
       
    90                             TDes& aVideoName, 
       
    91                             TDes& aFileName);
       
    92                             
       
    93         TInt DeleteVideoL(CIptvMyVideosGlobalFileId& aFileId);
       
    94                             
       
    95         void DeleteResponse(TInt /*aStatus*/);  
       
    96         
       
    97     private:
       
    98 
       
    99         /**
       
   100         * C++ default constructor.
       
   101         */
       
   102         CIptvTestMVApiUtil();
       
   103 
       
   104         /**
       
   105         * By default Symbian 2nd phase constructor is private.
       
   106         */
       
   107         void ConstructL();
       
   108         
       
   109 
       
   110     
       
   111     private:    // Data
       
   112     CIptvMyVideosClient*  iIptvMyVideosClient;   
       
   113 
       
   114     };
       
   115 
       
   116 
       
   117 #endif      // CIPTVTESTMVAPIUTIL_H   
       
   118             
       
   119 // End of File