36
|
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: mpxplaybackutility stub for testing mpmpxframeworkwrapper
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef MMPXPLAYBACKUTILITY_H
|
|
20 |
#define MMPXPLAYBACKUTILITY_H
|
|
21 |
|
|
22 |
#include <mpxplaybackframeworkdefs.h>
|
|
23 |
#include <mpxcommonframeworkdefs.h>
|
|
24 |
#include <badesca.h>
|
|
25 |
#include <mpxattribute.h>
|
|
26 |
#include <mpxattributespecs.h>
|
|
27 |
|
|
28 |
//Forward declarations
|
|
29 |
class CMPXCollectionPlaylist;
|
|
30 |
class MMPXPlaybackObserver;
|
|
31 |
class MMPXPlaybackCallback;
|
|
32 |
|
|
33 |
class MMPXSource
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
//MMPXSource interface for playback utility stub
|
|
37 |
virtual CMPXCollectionPlaylist* PlaylistL()=0;
|
|
38 |
virtual void MediaL(const TArray<TMPXAttribute>& aAttrs,
|
|
39 |
MMPXPlaybackCallback& aCallback)=0;
|
|
40 |
|
|
41 |
|
|
42 |
};
|
|
43 |
|
|
44 |
class MMPXPlaybackUtility: public MMPXSource
|
|
45 |
{
|
|
46 |
public:
|
|
47 |
|
|
48 |
// Stub functions
|
|
49 |
MMPXPlaybackUtility();
|
|
50 |
~MMPXPlaybackUtility();
|
|
51 |
static MMPXPlaybackUtility* UtilityL(const TUid& aModeId = KPbModeDefault);
|
|
52 |
void AddObserverL(MMPXPlaybackObserver& aObs);
|
|
53 |
void RemoveObserverL(MMPXPlaybackObserver& aObs);
|
|
54 |
void Close();
|
|
55 |
void CommandL(TMPXPlaybackCommand aCmd,TInt aData=0);
|
|
56 |
void CommandL(CMPXCommand& aCmd, MMPXPlaybackCallback* aCallback=NULL);
|
47
|
57 |
void PropertyL(MMPXPlaybackCallback& aCallback, TMPXPlaybackProperty aProperty);
|
36
|
58 |
MMPXSource* Source();
|
|
59 |
void SetL(TMPXPlaybackProperty aProperty, TInt aValue);
|
|
60 |
TMPXPlaybackState StateL() const;
|
|
61 |
// Stub function from MMPXSource
|
|
62 |
CMPXCollectionPlaylist* PlaylistL();
|
|
63 |
void MediaL(const TArray<TMPXAttribute>& aAttrs,
|
|
64 |
MMPXPlaybackCallback& aCallback);
|
|
65 |
void InitL(RFile& aShareableFile);
|
|
66 |
void InitL(const TDesC& aUri,const TDesC8* aType=NULL);
|
|
67 |
|
|
68 |
|
|
69 |
public:
|
|
70 |
|
|
71 |
TInt iValue;
|
|
72 |
TInt iComandData;
|
|
73 |
TMPXPlaybackProperty iProperty;
|
|
74 |
MMPXPlaybackObserver* iObs;
|
|
75 |
TMPXPlaybackCommand iCmd;
|
|
76 |
CMPXCommand* iCMPXCmd;
|
|
77 |
TMPXPlaybackState iState;
|
|
78 |
RArray<TMPXAttribute>* iAttrs;
|
|
79 |
bool iInitialized;
|
|
80 |
bool iReturnSource;
|
|
81 |
};
|
|
82 |
|
|
83 |
#endif // MMPXPLAYBACKUTILITY_H
|
|
84 |
|