mpengine/tsrc/unittest_mpmpxcollectionframeworkwrapper/stub/inc/mpxplaybackutility.h
changeset 43 0f32e550d9d8
parent 36 a0afa279b8fe
equal deleted inserted replaced
38:b93f525c9244 43:0f32e550d9d8
    27 
    27 
    28 //Forward declarations
    28 //Forward declarations
    29 class CMPXCollectionPlaylist;
    29 class CMPXCollectionPlaylist;
    30 class CMPXCollectionPath;
    30 class CMPXCollectionPath;
    31 
    31 
    32 class MMPXPlaybackUtility
    32 class MMPXSource
       
    33 {
       
    34 public:
       
    35     // Stub functions
       
    36     virtual CMPXCollectionPlaylist* PlaylistL()=0;
       
    37 
       
    38 };
       
    39 class MMPXPlaybackUtility : MMPXSource
    33 {
    40 {
    34 public:
    41 public:
    35 
    42 
    36     // Stub functions
    43     // Stub functions
    37     MMPXPlaybackUtility();
    44     MMPXPlaybackUtility();
    39     static MMPXPlaybackUtility* UtilityL(const TUid& aModeId = KPbModeDefault);
    46     static MMPXPlaybackUtility* UtilityL(const TUid& aModeId = KPbModeDefault);
    40     void Close();
    47     void Close();
    41     void InitL(const CMPXCollectionPlaylist& aPlaylist, TBool aPlay=ETrue);
    48     void InitL(const CMPXCollectionPlaylist& aPlaylist, TBool aPlay=ETrue);
    42     void InitL(const TDesC& aUri, const TDesC8* aType=NULL);
    49     void InitL(const TDesC& aUri, const TDesC8* aType=NULL);
    43     void SetL(TMPXPlaybackProperty aProperty, TInt aValue);
    50     void SetL(TMPXPlaybackProperty aProperty, TInt aValue);
       
    51     CMPXCollectionPlaylist* PlaylistL();
       
    52     MMPXSource* Source();
    44 
    53 
    45 public:
    54 public:
    46 
    55 
    47     TInt                    iShuffle;
    56     TInt                    iShuffle;
    48     TInt                    iRepeat;
    57     TInt                    iRepeat;
    49     TMPXPlaybackProperty    iProperty;
    58     TMPXPlaybackProperty    iProperty;
    50     TBool                   iPlay;
    59     TBool                   iPlay;
    51     CMPXCollectionPath      *iCurrentPath;
    60     CMPXCollectionPath      *iCurrentPath;
       
    61     CMPXCollectionPlaylist  *iCurrentPlaylist;
    52 };
    62 };
    53 
    63 
    54 #endif      // MMPXPLAYBACKUTILITY_H
    64 #endif      // MMPXPLAYBACKUTILITY_H
    55 
    65