videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackcontrolscontroller/stub/inc/videoservices.h
changeset 36 8aed59de29f9
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
       
     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:  VideoServices STUB class definition
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  1 %
       
    19 
       
    20 #ifndef __VIDEOSERVICES_H__
       
    21 #define __VIDEOSERVICES_H__
       
    22 
       
    23 #include <QStringList>
       
    24 
       
    25 #include "videoserviceurifetch.h"
       
    26 
       
    27 class VideoServiceUriFetch;
       
    28 
       
    29 class VideoServices : public QObject
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33     public:
       
    34 
       
    35         enum TVideoService
       
    36         {
       
    37             ENoService,
       
    38             EUriFetcher,
       
    39             EPlayback,
       
    40             EView
       
    41         };
       
    42     
       
    43         static VideoServices *instance();
       
    44         void decreaseReferenceCount();
       
    45         QString contextTitle() { return QString(""); }
       
    46         VideoServices::TVideoService currentService();
       
    47     
       
    48     public slots:
       
    49     
       
    50         void itemSelected( const QString& item );
       
    51 
       
    52     private:
       
    53         
       
    54         VideoServices();
       
    55         virtual ~VideoServices();
       
    56         void setCurrentService( VideoServices::TVideoService service );
       
    57 
       
    58     Q_DISABLE_COPY( VideoServices )
       
    59 
       
    60     private:
       
    61         
       
    62         static VideoServices* mInstance;
       
    63         VideoServiceUriFetch* mServiceUriFetch;
       
    64         VideoServices::TVideoService mCurrentService;
       
    65 
       
    66     private:
       
    67         
       
    68         friend class VideoServiceUriFetch;
       
    69 
       
    70     public:
       
    71         
       
    72         static int mReferenceCount;
       
    73         bool mItemSelected;
       
    74 
       
    75 };
       
    76 
       
    77 #endif //__VIDEOSERVICES_H__