videoplayback/videoplaybackview/tsrc/testvideoplaybackview/stub/inc/mpxvideoviewwrapper.h
changeset 44 518105d52e45
child 49 824471cb468a
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
       
     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:  MPX Video base playback view
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  7 %
       
    19 
       
    20 
       
    21 
       
    22 // This file defines the API for .dll
       
    23 
       
    24 #ifndef __MPXVIDEOVIEWWRAPPER_H__
       
    25 #define __MPXVIDEOVIEWWRAPPER_H__
       
    26 
       
    27 //  Include Files
       
    28 
       
    29 #include <e32base.h>	// CBase
       
    30 #include <e32std.h>	 // TBuf
       
    31 
       
    32 
       
    33 #include "videoplaybackcontrol.hrh"
       
    34 
       
    35 //  Constants
       
    36 
       
    37 //  Forward Declarations
       
    38 class VideoBasePlaybackView;
       
    39 class VideoPlaybackViewFileDetails;
       
    40 
       
    41 
       
    42 //  Class Definitions
       
    43 
       
    44 class CMPXVideoViewWrapper : public CBase
       
    45 {
       
    46     public:
       
    47         static CMPXVideoViewWrapper* NewL( VideoBasePlaybackView* aView );
       
    48         virtual ~CMPXVideoViewWrapper();
       
    49 
       
    50     private:
       
    51         CMPXVideoViewWrapper( VideoBasePlaybackView* aView );
       
    52         void ConstructL();
       
    53 
       
    54         void SetFileDetails(TBool aDefault);
       
    55 
       
    56     public:
       
    57         void HandleCommandL( TInt aCommand );
       
    58 
       
    59         TBool IsLive();
       
    60 
       
    61         TBool IsPlaylist();
       
    62 
       
    63         TBool IsMultiItemPlaylist();
       
    64 
       
    65         void RequestMediaL();
       
    66 
       
    67         void CreateGeneralPlaybackCommandL( int aCmd );
       
    68 
       
    69         void ActivateClosePlayerActiveObject();
       
    70 
       
    71         void IssueVideoAppForegroundCmdL( TBool aForeground );
       
    72 
       
    73 
       
    74     public: // data
       
    75 
       
    76         VideoBasePlaybackView*           iView;
       
    77         TBool                            iMediaRequested;
       
    78         VideoPlaybackViewFileDetails*    iFileDetails;
       
    79         TBool                            iClosePlayerAO;
       
    80         TBool                            iForeground;
       
    81         TInt                             iCommand;
       
    82         TInt                             iPlayPosition;
       
    83 };
       
    84 
       
    85 #endif  // __MPXVIDEOVIEWWRAPPER_H__
       
    86 
       
    87 // EOF