mmlibs/mmfw/tsrc/mmfintegrationtest/vclntavi/inc/testvideoplayer2.h
changeset 4 9d4397b300d1
parent 0 b8ed18f6c07b
equal deleted inserted replaced
1:fcaf4606ba4e 4:9d4397b300d1
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    49     // constructor    
    49     // constructor    
    50     RTestVclnt2PlayFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
    50     RTestVclnt2PlayFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
    51     };
    51     };
    52 #ifdef SYMBIAN_BUILD_GCE
    52 #ifdef SYMBIAN_BUILD_GCE
    53 /**
    53 /**
       
    54  * Test external display feature using CMediaClientVideoDisplay.
       
    55  *
       
    56  * RTestMediaClientExternalDisplay
       
    57  *
       
    58  */
       
    59 class RTestMediaClientExternalDisplay : public RTestVclnt2AviPlayerStep
       
    60     {
       
    61 public:
       
    62     static RTestMediaClientExternalDisplay* NewL(const TDesC& aTestName);
       
    63         
       
    64 protected:    
       
    65     virtual TVerdict DoTestStepPreambleL();
       
    66     virtual TVerdict DoTestStepPostambleL();
       
    67 
       
    68     virtual void FsmL(TVclntTestPlayEvents aEventCode);
       
    69     
       
    70     virtual void HandleIdleL();
       
    71     virtual void HandleOpenCompleteL();
       
    72     virtual void HandlePrepareCompleteL();
       
    73     virtual void HandlePlayCompleteL();
       
    74     
       
    75     // called by HandlePrepareCompleteL to trigger the video playback
       
    76     virtual void StartPlayback();    
       
    77 
       
    78     // constructor    
       
    79     RTestMediaClientExternalDisplay(const TDesC& aTestName);
       
    80     
       
    81     TVerdict SetInitialConnectionType();
       
    82     TVerdict SetConnectionTypeNotification();
       
    83     TVerdict SetExternalDisplayControl();
       
    84     
       
    85 private:
       
    86     TPtrC iInitialExternalDisplayTypeFilename;
       
    87     TPtrC iNextExternalDisplayTypeFilename;
       
    88     TBool iExternalDisplayControl;
       
    89     };
       
    90     
       
    91 /**
    54  * Test CMediaClientVideoDisplay.This test makes sure that the new dll 
    92  * Test CMediaClientVideoDisplay.This test makes sure that the new dll 
    55  * (mediaclientvideodisplay) is loaded and used.
    93  * (mediaclientvideodisplay) is loaded and used.
    56  *
    94  *
    57  * RTestMediaClientVideoDisplay
    95  * RTestMediaClientVideoDisplay
    58  *
    96  *
    77     virtual void StartPlayback();    
   115     virtual void StartPlayback();    
    78 
   116 
    79     // constructor    
   117     // constructor    
    80     RTestMediaClientVideoDisplay(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
   118     RTestMediaClientVideoDisplay(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
    81     };
   119     };
    82     
   120 
    83 #endif
   121 #endif
    84 
   122 
    85 
   123 
    86 /**
   124 /**
    87  * Load and play a video file using graphics surface with default window position, video
   125  * Load and play a video file using graphics surface with default window position, video