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 CMTPPBCSETPBDEVICEPROPVALUE_H
|
|
22 |
#define CMTPPBCSETPBDEVICEPROPVALUE_H
|
|
23 |
|
|
24 |
#include "cmtprequestprocessor.h"
|
|
25 |
#include "cmtpplaybackmap.h"
|
|
26 |
|
|
27 |
class CMTPTypeString;
|
|
28 |
class CMTPPlaybackControlDataProvider;
|
|
29 |
|
|
30 |
/**
|
|
31 |
Implements the device data provider SetDevicePropValue request processor.
|
|
32 |
@internalComponent
|
|
33 |
*/
|
|
34 |
class CMTPPlaybackCommand;
|
|
35 |
|
|
36 |
class CMTPPbcSetDevicePropValue : public CMTPRequestProcessor, public MMTPPlaybackCallback
|
|
37 |
{
|
|
38 |
|
|
39 |
public:
|
|
40 |
|
|
41 |
static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework,
|
|
42 |
MMTPConnection& aConnection,
|
|
43 |
CMTPPlaybackControlDataProvider& aDataProvider);
|
|
44 |
~CMTPPbcSetDevicePropValue();
|
|
45 |
|
|
46 |
private: // From CMTPRequestProcessor
|
|
47 |
TMTPResponseCode CheckRequestL();
|
|
48 |
void ServiceL();
|
|
49 |
TBool DoHandleResponsePhaseL();
|
|
50 |
|
|
51 |
private: //From MMTPPlaybackCallback
|
|
52 |
void HandlePlaybackCommandCompleteL(CMTPPlaybackCommand* aCmd, TInt aErr);
|
|
53 |
|
|
54 |
private:
|
|
55 |
CMTPPbcSetDevicePropValue(MMTPDataProviderFramework& aFramework,
|
|
56 |
MMTPConnection& aConnection,
|
|
57 |
CMTPPlaybackControlDataProvider& aDataProvider);
|
|
58 |
|
|
59 |
private: // Owned
|
|
60 |
|
|
61 |
/**
|
|
62 |
FLOGGER debug trace member variable.
|
|
63 |
*/
|
|
64 |
__FLOG_DECLARATION_MEMBER_MUTABLE;
|
|
65 |
CMTPPlaybackControlDataProvider& iPlaybackControlDp;
|
|
66 |
TMTPPbCtrlData iData;
|
|
67 |
CMTPPlaybackCommand* iPbCmd;
|
|
68 |
};
|
|
69 |
|
|
70 |
#endif // CMTPPBCSETPBDEVICEPROPVALUE_H
|
|
71 |
|