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