tsrc/consoleplayer/thumbnail/src/thumbnailtester.h
changeset 33 e1b6d78dfe6a
equal deleted inserted replaced
29:b818131c88a3 33:e1b6d78dfe6a
       
     1 /*
       
     2  * Copyright (c) 2010 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:
       
    15  * The header for the main class of the ConsolePlayer test app.
       
    16  * 
       
    17  */
       
    18 
       
    19 #ifndef __CONSOLE_PLAYER_H__
       
    20 #define __CONSOLE_PLAYER_H__
       
    21 
       
    22 #include <e32msgqueue.h>
       
    23 
       
    24 #include "hxtnutil.h"
       
    25 #include "testappbase.h"
       
    26 
       
    27 const TInt KMaxHistoryEntries = 10;
       
    28 _LIT( KHistoryFilename, "c:\\thumbnail_tester_history.txt" );
       
    29 
       
    30 class CThumbnailTester : public CTestAppBase,
       
    31                          private MHXThumbnailUtilityImplObserver
       
    32                        
       
    33 {
       
    34 public: // Methods
       
    35 
       
    36     static void ExecuteL();
       
    37     
       
    38 private: // Methods
       
    39 
       
    40     CThumbnailTester(); 
       
    41 
       
    42     ~CThumbnailTester();
       
    43 
       
    44     void InitL();
       
    45 
       
    46     void Main();
       
    47         
       
    48     void MainL();
       
    49     
       
    50     void GenerateThumbnailL( TDes& aFileName );
       
    51     
       
    52     // inherited from CTestAppBase
       
    53     virtual bool ConsumeKeyEvent( TInt aKeyCode );
       
    54     virtual void ExecuteOperation( TInt aOperation, const TDesC& aOperationText );
       
    55 
       
    56 private:
       
    57     
       
    58     // inherited from MHXThumbnailUtilityImplObserver
       
    59     virtual void MetaDataReady(TInt aError);
       
    60     virtual void PacketReady(TInt aError, void *pData, TUint32 aDataSize);    
       
    61     virtual void EndOfPackets();
       
    62     
       
    63     TBuf<120>             iBuffer;
       
    64     RWindow*              iFullScreenWindow;    
       
    65     CHXThumbnailUtility*  iThumbnailUtility;
       
    66     TInt                  iFinalResult;
       
    67     TInt                  iStartPositionInMs;
       
    68     TInt                  iFramesRendered;
       
    69     TInt                  iTotalFramesRendered;
       
    70     TInt                  iWidth;
       
    71     TInt                  iHeight;
       
    72     TUint                 iClipBitRate;
       
    73     TUint                 iVideoBitRate;
       
    74     TUint                 iAudioBitRate;
       
    75     TUint                 iFrameRateInSec;
       
    76     TUint                 iDuration;
       
    77     TInt                  iTotalFrameCount;
       
    78     TInt                  iDelayBetweenFrames;
       
    79     bool                  iStopThumbnailGeneration;
       
    80     
       
    81     };
       
    82 
       
    83 #endif