29
|
1 |
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
/**
|
|
17 |
@file
|
|
18 |
@internalComponent
|
|
19 |
*/
|
|
20 |
|
|
21 |
#ifndef CMTPPLAYBACKEVENT_H
|
|
22 |
#define CMTPPLAYBACKEVENT_H
|
|
23 |
|
|
24 |
#include "mtpdebug.h"
|
|
25 |
#include "mmtpplaybackinterface.h"
|
|
26 |
#include "cmtpplaybackparam.h"
|
|
27 |
|
|
28 |
/**
|
|
29 |
* Encapsulates parameter for command EPlaybackCmdInitObject
|
|
30 |
*/
|
|
31 |
class CMTPPbEventParam : public CMTPPbParamBase
|
|
32 |
{
|
|
33 |
public:
|
|
34 |
static CMTPPbEventParam* NewL(TMTPPbCategory aCategory, const TDesC& aSuid);
|
|
35 |
static CMTPPbEventParam* NewL(TInt32 aValue);
|
|
36 |
static CMTPPbEventParam* NewL(TUint32 aValue);
|
|
37 |
~CMTPPbEventParam();
|
|
38 |
|
|
39 |
private:
|
|
40 |
/**
|
|
41 |
* The constuctor.
|
|
42 |
* @param aCategory, category of object for initialization,
|
|
43 |
*/
|
|
44 |
CMTPPbEventParam(TMTPPbCategory aCategory, const TDesC& aSuid);
|
|
45 |
CMTPPbEventParam(TInt32 aValue);
|
|
46 |
CMTPPbEventParam(TUint32 aValue);
|
|
47 |
};
|
|
48 |
|
|
49 |
|
|
50 |
/**
|
|
51 |
Implements the CMTPPlaybackCommand.
|
|
52 |
@internalComponent
|
|
53 |
*/
|
|
54 |
class CMTPPlaybackEvent : public CBase
|
|
55 |
{
|
|
56 |
public:
|
|
57 |
|
|
58 |
static CMTPPlaybackEvent* NewL(TMTPPlaybackEvent aCmd, CMTPPbEventParam* aParam);
|
|
59 |
|
|
60 |
void SetParam(CMTPPbEventParam* aParam);
|
|
61 |
const CMTPPbEventParam& ParamL();
|
|
62 |
TMTPPlaybackEvent PlaybackEvent();
|
|
63 |
|
|
64 |
~CMTPPlaybackEvent();
|
|
65 |
|
|
66 |
private:
|
|
67 |
CMTPPlaybackEvent(TMTPPlaybackEvent aCmd, CMTPPbEventParam* aParam);
|
|
68 |
void ConstructL();
|
|
69 |
|
|
70 |
private: // Owned.
|
|
71 |
__FLOG_DECLARATION_MEMBER;
|
|
72 |
const TMTPPlaybackEvent iPbEvent;
|
|
73 |
CMTPPbEventParam* iParam;
|
|
74 |
};
|
|
75 |
|
|
76 |
#endif //CMTPPLAYBACKEVENT_H
|
|
77 |
|