videoplayback/videoplaybackcontrols/tsrc/videoplaybackcontrols_test/inc/mpxvpbc_stub.h
changeset 0 96612d01cf9f
child 1 6711b85517b7
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     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 "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:  Test Harness for VideoPlaybackControls
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: ou1cpsw#7 %
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef VIDEOPLAYBACKTESTCONTAINER_H
       
    24 #define VIDEOPLAYBACKTESTCONTAINER_H
       
    25 
       
    26 //  INCLUDES
       
    27 #include <coecntrl.h>
       
    28 
       
    29 // CLASS DECLARATION
       
    30 class CMPXVideoPlaybackControlsController;
       
    31 class CVideoPlaybackControlsTest;
       
    32 class CMPXVideoPlaybackViewFileDetails;
       
    33 class CMPXVideoPlaybackUserInputHandler;
       
    34 
       
    35 class CMPXVideoPlaybackContainer: public CCoeControl
       
    36 {
       
    37     public:  // Constructors and destructor
       
    38 
       
    39         /**
       
    40         * Two-phased constructor.
       
    41         */
       
    42         static CMPXVideoPlaybackContainer* NewL( const TDesC& aFileName );
       
    43         
       
    44         /**
       
    45         * Destructor.
       
    46         */
       
    47         virtual ~CMPXVideoPlaybackContainer();
       
    48 
       
    49     private:
       
    50     
       
    51         /**
       
    52         * C++ default constructor.
       
    53         */
       
    54         CMPXVideoPlaybackContainer();
       
    55     
       
    56         /**
       
    57         * Symbian 2nd phase constructor.
       
    58         */
       
    59         void ConstructL( const TDesC& aFileName );
       
    60 
       
    61     private:
       
    62 
       
    63         virtual TInt CountComponentControls() const;
       
    64 
       
    65     protected:
       
    66 
       
    67         /**
       
    68         * From CCoeControl,Draw.
       
    69         * @param aRect drawable area.
       
    70         */
       
    71         void Draw(const TRect& aRect) const;
       
    72        
       
    73         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    74 
       
    75     public:
       
    76         /**
       
    77         * Handle commands from control controller
       
    78         * @return void
       
    79         */
       
    80         void HandleCommandL( TInt aCommand, TInt aValue = 0 );
       
    81 
       
    82         /**
       
    83         * Expected Values
       
    84         */
       
    85         void ExpectedResultL( TInt aCommand, TInt aValue );
       
    86 
       
    87         /**
       
    88         * Set a control's controller
       
    89         */
       
    90         void SetController( CMPXVideoPlaybackControlsController* aControlsController );
       
    91 
       
    92         /**
       
    93         * add default file details
       
    94         */
       
    95         void AddFileDetailsL( TBool aHasVideoTrack = ETrue );
       
    96         
       
    97         void DoHandleKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    98 
       
    99         /**
       
   100         * Return default file details
       
   101         */
       
   102         CMPXVideoPlaybackViewFileDetails* FileDetails( TInt aMode );
       
   103         
       
   104         CMPXVideoPlaybackUserInputHandler* UserInputHandler();
       
   105 
       
   106     private:    
       
   107         // Data
       
   108         TInt                                 iCommand;
       
   109         TInt                                 iValue;
       
   110         CMPXVideoPlaybackControlsController* iControlsController;
       
   111         CMPXVideoPlaybackViewFileDetails*    iFileDetails;
       
   112         TKeyResponse                         iKeyResponse;    
       
   113         
       
   114         CMPXVideoPlaybackUserInputHandler*       iUserInputHandler;  // owned        
       
   115 
       
   116 };
       
   117 
       
   118 #endif      // VIDEOPLAYBACKTESTCONTAINER_H
       
   119 
       
   120 // End of File