videoplayback/hbvideoplaybackview/tsrc/testvideodisplayhandler/stub/inc/mpxvideoviewwrapper.h
author hgs
Thu, 01 Apr 2010 23:32:44 +0300
changeset 35 3738fe97f027
parent 30 4f111d64a341
permissions -rw-r--r--
201011
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  MPX Video base playback view
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
// Version : %version:  1 %
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
// This file defines the API for .dll
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
#ifndef __MPXVIDEOVIEWWRAPPER_H__
hgs
parents:
diff changeset
    25
#define __MPXVIDEOVIEWWRAPPER_H__
hgs
parents:
diff changeset
    26
hgs
parents:
diff changeset
    27
//  Include Files
hgs
parents:
diff changeset
    28
hgs
parents:
diff changeset
    29
#include <e32base.h>	// CBase
hgs
parents:
diff changeset
    30
#include <e32std.h>	 // TBuf
hgs
parents:
diff changeset
    31
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
#include "mpxvideoplaybackcontrol.hrh"
hgs
parents:
diff changeset
    34
hgs
parents:
diff changeset
    35
//  Constants
hgs
parents:
diff changeset
    36
hgs
parents:
diff changeset
    37
//  Forward Declarations
hgs
parents:
diff changeset
    38
class HbVideoBasePlaybackView;
hgs
parents:
diff changeset
    39
class QMPXVideoPlaybackViewFileDetails;
hgs
parents:
diff changeset
    40
hgs
parents:
diff changeset
    41
hgs
parents:
diff changeset
    42
//  Class Definitions
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
class CMPXVideoViewWrapper : public CBase
hgs
parents:
diff changeset
    45
{
hgs
parents:
diff changeset
    46
    public:
hgs
parents:
diff changeset
    47
        static CMPXVideoViewWrapper* NewL( HbVideoBasePlaybackView* aView );
hgs
parents:
diff changeset
    48
        virtual ~CMPXVideoViewWrapper();
hgs
parents:
diff changeset
    49
hgs
parents:
diff changeset
    50
    private:
hgs
parents:
diff changeset
    51
        CMPXVideoViewWrapper( HbVideoBasePlaybackView* aView );        
hgs
parents:
diff changeset
    52
        void ConstructL();
hgs
parents:
diff changeset
    53
        
hgs
parents:
diff changeset
    54
        void SetFileDetails(TBool aDefault);
hgs
parents:
diff changeset
    55
hgs
parents:
diff changeset
    56
    public:
hgs
parents:
diff changeset
    57
        void HandleCommandL( TInt aCommand );
hgs
parents:
diff changeset
    58
                             
hgs
parents:
diff changeset
    59
        TBool IsLive();
hgs
parents:
diff changeset
    60
        
hgs
parents:
diff changeset
    61
        TBool IsPlaylist();
hgs
parents:
diff changeset
    62
        
hgs
parents:
diff changeset
    63
        TBool IsMultiItemPlaylist();
hgs
parents:
diff changeset
    64
               
hgs
parents:
diff changeset
    65
        void RequestMediaL();  
hgs
parents:
diff changeset
    66
        
hgs
parents:
diff changeset
    67
        void CreateGeneralPlaybackCommandL( int aCmd );
hgs
parents:
diff changeset
    68
                
hgs
parents:
diff changeset
    69
        void ActivateClosePlayerActiveObject();
hgs
parents:
diff changeset
    70
        
hgs
parents:
diff changeset
    71
        void IssueVideoAppForegroundCmdL( TBool aForeground );
hgs
parents:
diff changeset
    72
        
hgs
parents:
diff changeset
    73
        void UpdateVideoRectDone();
hgs
parents:
diff changeset
    74
hgs
parents:
diff changeset
    75
hgs
parents:
diff changeset
    76
    public: // data
hgs
parents:
diff changeset
    77
hgs
parents:
diff changeset
    78
        HbVideoBasePlaybackView*             iView;
hgs
parents:
diff changeset
    79
        TBool                                iMediaRequested;
hgs
parents:
diff changeset
    80
        QMPXVideoPlaybackViewFileDetails*    iFileDetails;
hgs
parents:
diff changeset
    81
        TBool                                iClosePlayerAO;
hgs
parents:
diff changeset
    82
        TBool                                iForeground;
hgs
parents:
diff changeset
    83
        
hgs
parents:
diff changeset
    84
};
hgs
parents:
diff changeset
    85
hgs
parents:
diff changeset
    86
#endif  // __MPXVIDEOVIEWWRAPPER_H__
hgs
parents:
diff changeset
    87
hgs
parents:
diff changeset
    88
// EOF