os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/vclntavi/inc/testvideoplayer_secdisp.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/vclntavi/inc/testvideoplayer_secdisp.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,234 @@
     1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// Header file: Video Player Tests.
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#ifndef TESTVIDEOPLAYER_SECDISP_H
    1.22 +#define TESTVIDEOPLAYER_SECDISP_H
    1.23 +
    1.24 +#include "tsi_mmf_vclntavi_stepbase.h"
    1.25 +
    1.26 +class CTestVclntAviPlayTimer;
    1.27 +
    1.28 +/**
    1.29 + *
    1.30 + * RTestVclntSetScrIdAndPlayBase
    1.31 + *
    1.32 + */
    1.33 +class RTestVclntSetScrIdAndPlayBase : public RTestVclntAviPlayerStep
    1.34 +    {
    1.35 +public:
    1.36 +    RTestVclntSetScrIdAndPlayBase(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
    1.37 +    
    1.38 +    virtual void FsmL(TVclntTestPlayEvents aEventCode) = 0;
    1.39 +    // timer handling
    1.40 +    virtual void FinishedL();
    1.41 +    // Just to handle the behaviour of ARMV5
    1.42 +    virtual void MvpuoOpenComplete(TInt aError);
    1.43 +protected:
    1.44 +    TInt iScreenNumber; // Stores screen number
    1.45 +    TInt iCurrentScreenNumber; // Stores currently active screen number
    1.46 +    };
    1.47 +
    1.48 +/**
    1.49 + * Set the screen id and Play the video file.
    1.50 + * Set the invalid screen id and Play the video file.
    1.51 + *
    1.52 + * RTestVclntSetScrIdAndPlayAviFile
    1.53 + * MM-MMF-VCLNTAVI-I-0201-CP, MM-MMF-VCLNTAVI-I-0251-CP
    1.54 + *
    1.55 + */
    1.56 +class RTestVclntSetScrIdAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
    1.57 +    {
    1.58 +public:
    1.59 +    static RTestVclntSetScrIdAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
    1.60 +    virtual TVerdict DoTestStepL();
    1.61 +    virtual void FsmL(TVclntTestPlayEvents aEventCode);
    1.62 +private:
    1.63 +    RTestVclntSetScrIdAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
    1.64 +    };
    1.65 +
    1.66 +
    1.67 +/**
    1.68 + * Set the screen id and Play video descriptor.
    1.69 + *
    1.70 + * RTestVclntSetScrIdAndPlayAviDes
    1.71 + * MM-MMF-VCLNTAVI-I-0202-CP
    1.72 + *
    1.73 + */
    1.74 +class RTestVclntSetScrIdAndPlayAviDes : public RTestVclntSetScrIdAndPlayBase
    1.75 +    {
    1.76 +public:
    1.77 +    static RTestVclntSetScrIdAndPlayAviDes* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
    1.78 +    virtual TVerdict DoTestStepL();
    1.79 +    virtual TVerdict DoTestStepPreambleL();
    1.80 +    virtual TVerdict DoTestStepPostambleL();
    1.81 +    virtual void FsmL(TVclntTestPlayEvents aEventCode);
    1.82 +protected:
    1.83 +    HBufC8* iVideo;                        // Buffer for holding video descriptor data
    1.84 +private:
    1.85 +    RTestVclntSetScrIdAndPlayAviDes(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber) ;    
    1.86 +    } ;
    1.87 +
    1.88 +/**
    1.89 + * Set the screen id and Play video from URL.
    1.90 + *
    1.91 + * RTestVclntSetScrIdAndPlayAviUrl
    1.92 + * MM-MMF-VCLNTAVI-I-0203-CP
    1.93 + *
    1.94 + */
    1.95 + 
    1.96 +class RTestVclntSetScrIdAndPlayAviUrl : public RTestVclntSetScrIdAndPlayBase
    1.97 +    {
    1.98 +public:
    1.99 +    static RTestVclntSetScrIdAndPlayAviUrl* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
   1.100 +    virtual TVerdict DoTestStepL();
   1.101 +    virtual void FsmL(TVclntTestPlayEvents aEventCode);
   1.102 +private:
   1.103 +    RTestVclntSetScrIdAndPlayAviUrl(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);    
   1.104 +    };
   1.105 +    
   1.106 +/**
   1.107 + * Set the screen id and play video file, Stop.Again set the screen id and play.
   1.108 + * Set the screen id after stop and play again.
   1.109 + *
   1.110 + * RTestVclntSetScrIdAndPlayStopAviFile
   1.111 + * MM-MMF-VCLNTAVI-I-0204-CP, MM-MMF-VCLNTAVI-I-0206-CP
   1.112 + *
   1.113 + */
   1.114 +class RTestVclntSetScrIdAndPlayStopAviFile : public RTestVclntSetScrIdAndPlayBase
   1.115 +    {
   1.116 +public:
   1.117 +    static RTestVclntSetScrIdAndPlayStopAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);
   1.118 +    virtual TVerdict DoTestStepL();
   1.119 +    virtual void FsmL(TVclntTestPlayEvents aEventCode);
   1.120 +    
   1.121 +    // timer handling
   1.122 +    void FinishedL();
   1.123 +protected:
   1.124 +    CTestVclntAviPlayTimer* iPlayTimer;
   1.125 +    TBool iRestarted;
   1.126 +    TInt iScreenNumber2; // Stores screen number
   1.127 +    TInt iCountNumber;
   1.128 +    TFileName iFilename2;
   1.129 +private:
   1.130 +    RTestVclntSetScrIdAndPlayStopAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);    
   1.131 +    };
   1.132 +    
   1.133 +/**
   1.134 + * Set the screen id and play video file, Pause.Again set the screen id and play.
   1.135 + * Set the screen ID after Pause and play again.
   1.136 + *
   1.137 + * RTestVclntSetScrIdAndPlayPauseAviFile
   1.138 + * MM-MMF-VCLNTAVI-I-0205-CP, MM-MMF-VCLNTAVI-I-0207-CP
   1.139 + *
   1.140 + */
   1.141 +class RTestVclntSetScrIdAndPlayPauseAviFile : public RTestVclntSetScrIdAndPlayBase
   1.142 +    {
   1.143 +public:
   1.144 +    static RTestVclntSetScrIdAndPlayPauseAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);
   1.145 +    virtual TVerdict DoTestStepL();
   1.146 +    virtual void FsmL(TVclntTestPlayEvents aEventCode);
   1.147 +    
   1.148 +    // timer handling
   1.149 +    void FinishedL();
   1.150 +protected:
   1.151 +    CTestVclntAviPlayTimer* iPlayTimer;
   1.152 +    TBool iRestarted;
   1.153 +    TInt iScreenNumber2; // Stores screen number
   1.154 +    TInt iCountNumber;
   1.155 +    TFileName iFilename2;
   1.156 +private:
   1.157 +    RTestVclntSetScrIdAndPlayPauseAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);    
   1.158 +    };
   1.159 +    
   1.160 +/**
   1.161 + * Set screen ID after play complete first time and before open the second time.
   1.162 + *
   1.163 + * RTestVclntSetScrIdAfterPlayAndPlayAviFile
   1.164 + * MM-MMF-VCLNTAVI-I-0208-CP
   1.165 + *
   1.166 + */
   1.167 +class RTestVclntSetScrIdAfterPlayAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
   1.168 +    {
   1.169 +public:
   1.170 +    static RTestVclntSetScrIdAfterPlayAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
   1.171 +    virtual TVerdict DoTestStepL();
   1.172 +    virtual void FsmL(TVclntTestPlayEvents aEventCode);
   1.173 +protected:
   1.174 +    TInt iCountNumber;
   1.175 +private:
   1.176 +    RTestVclntSetScrIdAfterPlayAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);    
   1.177 +    };
   1.178 +    
   1.179 +/**
   1.180 + * Set screen ID after Open but before play
   1.181 + *
   1.182 + * RTestVclntSetScrIdAfterOpenAndPlayAviFile
   1.183 + * MM-MMF-VCLNTAVI-I-0209-CP
   1.184 + *
   1.185 + */
   1.186 +class RTestVclntSetScrIdAfterOpenAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
   1.187 +    {
   1.188 +public:
   1.189 +    static RTestVclntSetScrIdAfterOpenAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
   1.190 +    virtual TVerdict DoTestStepL();
   1.191 +    virtual void FsmL(TVclntTestPlayEvents aEventCode);
   1.192 +protected:
   1.193 +    TInt iCountNumber;
   1.194 +private:
   1.195 +    RTestVclntSetScrIdAfterOpenAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);    
   1.196 +    };
   1.197 +    
   1.198 +/**
   1.199 + * Set screen ID during Play
   1.200 + *
   1.201 + * RTestVclntSetScrIdDuringPlayAndPlayAviFile
   1.202 + * MM-MMF-VCLNTAVI-I-0211-CP
   1.203 + *
   1.204 + */
   1.205 +class RTestVclntSetScrIdDuringPlayAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
   1.206 +    {
   1.207 +public:
   1.208 +    static RTestVclntSetScrIdDuringPlayAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
   1.209 +    virtual TVerdict DoTestStepL();
   1.210 +    virtual void FsmL(TVclntTestPlayEvents aEventCode);
   1.211 +protected:
   1.212 +    TInt iCountNumber;
   1.213 +private:
   1.214 +    RTestVclntSetScrIdDuringPlayAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);    
   1.215 +    };
   1.216 +    
   1.217 +/**
   1.218 + * 
   1.219 + * CTestVclntAviPlayTimer 
   1.220 + * - Timer for those test classes requiring timed stop
   1.221 + *
   1.222 + */
   1.223 +class CTestVclntAviPlayTimer : public CTimer
   1.224 +    {
   1.225 +public:
   1.226 +    static CTestVclntAviPlayTimer* NewL(RTestVclntSetScrIdAndPlayBase* aParent, TTimeIntervalMicroSeconds32 aWaitTime);
   1.227 +    void Start();
   1.228 +protected:
   1.229 +    TInt RunError(TInt aError);
   1.230 +    void RunL();
   1.231 +private:
   1.232 +    CTestVclntAviPlayTimer(RTestVclntSetScrIdAndPlayBase* aParent, TTimeIntervalMicroSeconds32 aWaitTime);
   1.233 +    RTestVclntSetScrIdAndPlayBase* iParent;
   1.234 +    TTimeIntervalMicroSeconds32 iWaitTime;
   1.235 +    };                                              
   1.236 +
   1.237 +#endif //TESTVIDEOPLAYER_SECDISP_H