|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CABSTRACTMEDIAMTPDATAPROVIDERCOPYOBJECT_H |
|
20 #define CABSTRACTMEDIAMTPDATAPROVIDERCOPYOBJECT_H |
|
21 |
|
22 #include "ccopyobject.h" |
|
23 |
|
24 /** |
|
25 * Defines abstract media data provider CopyObject request processor |
|
26 */ |
|
27 class CAbstractMediaMtpDataProviderCopyObject: public CCopyObject |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * Two-phase construction method |
|
32 * @param aFramework The data provider framework |
|
33 * @param aConnection The connection from which the request comes |
|
34 * @param aWrapper Medadata access |
|
35 * @return a pointer to the created request processor object |
|
36 */ |
|
37 static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework, |
|
38 MMTPConnection& aConnection, |
|
39 MMmMtpDpConfig& aDpConfig ); |
|
40 |
|
41 /** |
|
42 * Destructor |
|
43 */ |
|
44 ~CAbstractMediaMtpDataProviderCopyObject(); |
|
45 |
|
46 private: |
|
47 /** |
|
48 * Standard c++ constructor |
|
49 * @param aFramework The data provider framework |
|
50 * @param aConnection The connection from which the request comes |
|
51 * @param aWrapper Medadata access |
|
52 */ |
|
53 CAbstractMediaMtpDataProviderCopyObject( MMTPDataProviderFramework& aFramework, |
|
54 MMTPConnection& aConnection, |
|
55 MMmMtpDpConfig& aDpConfig ); |
|
56 |
|
57 /** |
|
58 * two-phase construction |
|
59 */ |
|
60 void ConstructL(); |
|
61 |
|
62 protected: |
|
63 // from CCopyObject |
|
64 void ServiceGetSpecificObjectPropertyL( TUint16 aPropCode, |
|
65 TUint32 aHandle, |
|
66 const CMTPObjectMetaData& aObject ); |
|
67 |
|
68 TMTPResponseCode ServiceSetSpecificObjectPropertyL( TUint16 aPropCode, |
|
69 const CMTPObjectMetaData& aObject, |
|
70 const CMTPTypeObjectPropListElement& aElement ); |
|
71 |
|
72 }; |
|
73 |
|
74 #endif // CABSTRACTMEDIAMTPDATAPROVIDERCOPYOBJECT_H |