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