59
|
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: embedded playback helper stub for testing mpmpxpbframeworkwrapper.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CMPMPXEMBEDDEDPLAYBACKHELPER_H
|
|
19 |
#define CMPMPXEMBEDDEDPLAYBACKHELPER_H
|
|
20 |
|
|
21 |
#include <QObject>
|
|
22 |
#include <e32base.h>
|
|
23 |
|
|
24 |
// FOWARD DECLARATION
|
|
25 |
class MMPXPlaybackUtility;
|
|
26 |
|
|
27 |
class MMpMpxEmbeddedPlaybackHelperObserver
|
|
28 |
{
|
|
29 |
public:
|
|
30 |
|
|
31 |
virtual void HandleEmbeddedPlaybackError( TInt aError ) = 0;
|
|
32 |
|
|
33 |
};
|
|
34 |
|
|
35 |
class CMpMpxEmbeddedPlaybackHelper : public CBase
|
|
36 |
{
|
|
37 |
|
|
38 |
public:
|
|
39 |
|
|
40 |
static CMpMpxEmbeddedPlaybackHelper* NewL( TUid aHostUid,
|
|
41 |
MMPXPlaybackUtility* aPlaybackUtility,
|
|
42 |
MMpMpxEmbeddedPlaybackHelperObserver* aObserver );
|
|
43 |
virtual ~CMpMpxEmbeddedPlaybackHelper();
|
|
44 |
|
|
45 |
void playL( const TDesC& aFilename );
|
|
46 |
void triggerError();
|
|
47 |
|
|
48 |
private:
|
|
49 |
|
|
50 |
CMpMpxEmbeddedPlaybackHelper( TUid aHostUid,
|
|
51 |
MMPXPlaybackUtility* aPlaybackUtility,
|
|
52 |
MMpMpxEmbeddedPlaybackHelperObserver* aObserver );
|
|
53 |
|
|
54 |
public:
|
|
55 |
MMPXPlaybackUtility *iPlaybackUtility;
|
|
56 |
MMpMpxEmbeddedPlaybackHelperObserver *iObserver;
|
|
57 |
TUid iHostUid;
|
|
58 |
QString iFileNameToPlay;
|
|
59 |
};
|
|
60 |
|
|
61 |
#endif // CMPMPXEMBEDDEDPLAYBACKHELPER_H
|
|
62 |
|