videoplayerapp/videoplayerengine/inc/videoplaybackwrapper.h
branchRCL_3
changeset 56 839377eedc2b
equal deleted inserted replaced
54:315810614048 56:839377eedc2b
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Implementation of VideoPlaybackWrapper
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: 9 %
       
    19 
       
    20 
       
    21 
       
    22 #ifndef VIDEOPLAYBACKWRAPPER_H_
       
    23 #define VIDEOPLAYBACKWRAPPER_H_
       
    24 
       
    25 #include <QObject>
       
    26 #include <QString>
       
    27 #include <QFile>
       
    28 #include <f32file.h>
       
    29 #include "mpxhbvideocommondefs.h"
       
    30 
       
    31 class CMpxVideoPlayerAppUiEngine;
       
    32 
       
    33 class VideoPlaybackWrapper : public QObject
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37     public:
       
    38         VideoPlaybackWrapper();
       
    39         virtual ~VideoPlaybackWrapper();
       
    40 
       
    41         int playMedia( QString aFileName );
       
    42 		int playURI( QString aUri );
       
    43         int playMedia( RFile aFile ); 
       
    44         void openPlaybackView() ;
       
    45         void lateInit();        
       
    46         int replayMedia( QString aFilename );
       
    47         const QString resloveErrorString( int errorCode );
       
    48 
       
    49     private:
       
    50         void initializePlugins();
       
    51         int openFileWithNativePath(const TDesC& aFileName);
       
    52 		int openURI(const TDesC& aUri);
       
    53  
       
    54     signals:
       
    55         void handlePlaybackView( int viewId );
       
    56 
       
    57     private:   //data  
       
    58         CMpxVideoPlayerAppUiEngine      *mUiEngine;
       
    59 };
       
    60 
       
    61 #endif /* VIDEOPLAYBACKWRAPPER_H_ */