videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/stub/inc/videoplaybackwrapper.h
changeset 52 e3cecb93e76a
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
       
     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:  Stub implementation of VideoPlaybackWrapper
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: da1mmcf#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 
       
    30 #include <mpxhbvideocommondefs.h>
       
    31 
       
    32 class VideoPlaybackWrapper : public QObject
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36     public:
       
    37         VideoPlaybackWrapper();
       
    38         virtual ~VideoPlaybackWrapper();
       
    39         int playMedia( QString aFileName );
       
    40         int playMedia( RFile aFile );
       
    41         int replayMedia( QString aFileName );
       
    42         int playURI( QString aUri );
       
    43 
       
    44     public:
       
    45         void openPlaybackView() ;
       
    46         static int GetInstanceCount();
       
    47         void lateInit();
       
    48         const QString resloveErrorString( int errorCode );
       
    49 
       
    50     signals:
       
    51         void handlePlaybackView( int viewId );
       
    52 
       
    53     private:
       
    54         static void Increment();
       
    55         static void Decrement();
       
    56 };
       
    57 
       
    58 #endif /* VIDEOPLAYBACKWRAPPER_H_ */