mpviewplugins/mpmediawallviewplugin/tsrc/unittest_mpmediawallview/stub/inc/mpplaybackdata.h
changeset 48 af3740e3753f
child 55 f3930dda3342
equal deleted inserted replaced
42:79c49924ae23 48:af3740e3753f
       
     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: mpplaybackdata stub for testing mpmediawallview
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPPLAYBACKDATA_H
       
    19 #define MPPLAYBACKDATA_H
       
    20 
       
    21 //includes
       
    22 #include <QObject>
       
    23 #include <QMetaType>
       
    24 
       
    25 
       
    26 class MpPlaybackData : public QObject
       
    27 {
       
    28     Q_OBJECT
       
    29 
       
    30 public:
       
    31 
       
    32     enum SimplifiedState {
       
    33         NotPlaying,
       
    34         Playing,
       
    35         Paused,
       
    36         Stopped
       
    37     };
       
    38 
       
    39 
       
    40 
       
    41     explicit MpPlaybackData();
       
    42     virtual ~MpPlaybackData();
       
    43 
       
    44     // Stub functions
       
    45     void emitPlaybackStateChanged();
       
    46     void setPlaybackState(MpPlaybackData::SimplifiedState state);
       
    47 
       
    48 signals:
       
    49     void playbackStateChanged();
       
    50     void playbackInfoChanged();
       
    51 
       
    52 public:
       
    53     int albumId();
       
    54     const QString& title() const;
       
    55     const QString& artist() const;
       
    56     MpPlaybackData::SimplifiedState playbackState() const;
       
    57 
       
    58 
       
    59 private:
       
    60     QString                  mArtist;
       
    61     QString                  mTitle;
       
    62     SimplifiedState          mPlaybackState;
       
    63 
       
    64 };
       
    65 
       
    66 #endif  // MPPLAYBACKDATA_H