|
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: Tester class for mediamtpdp plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CMEDIAMTPDATAPROVIDERTESTER_H |
|
20 #define CMEDIAMTPDATAPROVIDERTESTER_H |
|
21 |
|
22 #include "cmmmtpdataprovidertester.h" |
|
23 |
|
24 /** |
|
25 * CMediaMtpDataProviderTester class. |
|
26 * |
|
27 */ |
|
28 class CMediaMtpDataProviderTester : public CMmMtpDataProviderTester |
|
29 { |
|
30 public: |
|
31 static CMediaMtpDataProviderTester* NewL(); |
|
32 virtual ~CMediaMtpDataProviderTester(); |
|
33 private: |
|
34 TInt CheckSupportedL( TMTPSupportCategory aCategory, |
|
35 RArray<TUint> aResponseArray ); |
|
36 |
|
37 TInt PrepareEnvironmentL(); |
|
38 TInt CleanEnvironmentL(); |
|
39 |
|
40 TBool ObjectEnumerationL_prepare( CMTPStorageMetaData* aPhysicalStorage, |
|
41 CMTPStorageMetaData* aLogicalStorage ); |
|
42 TInt ObjectEnumerationL_checkresults( MMTPObjectMgr& aObjectManager ); |
|
43 |
|
44 TInt GetObjectInfoL_checkresults( const CMTPTypeObjectInfo* aObjectInfo ); |
|
45 |
|
46 TInt GetObjectL_checkresults( CMTPTypeFile* aObjectInfo ); |
|
47 |
|
48 TInt GetObjectPropValueL_checkresults( const MMTPType* aObjectPropValue, |
|
49 const TUint aPropCode ); |
|
50 |
|
51 TInt GetObjectPropListL_checkresults( const CMTPTypeObjectPropList* |
|
52 aObjectPropList ); |
|
53 |
|
54 TInt GetObjectPropDescL_checkresults( const CMTPTypeObjectPropDesc* |
|
55 aObjectPropDesc, const TUint aPropCode ); |
|
56 |
|
57 TBool SendObjectInfoL_prepare( TMTPTypeRequest& aRequest ); |
|
58 void SendObjectInfoReceiveData( CMTPTypeObjectInfo* aData ); |
|
59 |
|
60 TBool SendObjectL_prepare( TMTPTypeRequest& aRequest ); |
|
61 void SendObjectReceiveDataL( CMTPTypeFile* aData ); |
|
62 TInt SendObjectL_checkresults(); |
|
63 |
|
64 void SetObjectPropValueReceiveDataL( const TMTPTypeRequest& aRequest, |
|
65 MMTPType* aData ); |
|
66 |
|
67 void SetObjectPropListReceiveDataL( CMTPTypeObjectPropList* aData ); |
|
68 |
|
69 TInt DeleteObjectL_checkresults( MMTPObjectMgr& aObjectManager ); |
|
70 |
|
71 TBool CopyObjectL_prepare( TMTPTypeRequest& aRequest ); |
|
72 TInt CopyObjectL_checkresults( const CMTPObjectMetaData* aMetaData ); |
|
73 |
|
74 TBool MoveObjectL_prepare( TMTPTypeRequest& aRequest ); |
|
75 TInt MoveObjectL_checkresults( const CMTPObjectMetaData* aMetaData ); |
|
76 |
|
77 TBool RenameObjectL_prepare( TMTPNotificationParamsHandle& aParam ); |
|
78 TInt RenameObjectL_checkresults( const CMTPObjectMetaData* aMetaData ); |
|
79 |
|
80 TInt GetPartialObjectL_checkresults ( CMTPTypeFile* aObjectInfo ); |
|
81 |
|
82 TBool GetObjectPropsSupportedL_prepare( TMTPTypeRequest& aRequest ); |
|
83 TInt GetObjectPropsSupportedL_checkresults( const CMTPTypeArray* |
|
84 aObjectProps ); |
|
85 |
|
86 TBool ProcessRequestIllegalIdL_prepare( TInt aOpCode ); |
|
87 TInt ProcessRequestIllegalIdL_checkresults( TInt aOpCode, |
|
88 TInt aResponseCode ); |
|
89 private: |
|
90 CMediaMtpDataProviderTester(); |
|
91 void ConstructL(); |
|
92 private: |
|
93 CActiveSchedulerWait* iActiveSchedulerWait; |
|
94 RFs iFsSession; |
|
95 CFileMan* iFileMan; |
|
96 }; |
|
97 |
|
98 #endif // CMEDIAMTPDATAPROVIDERTESTER_H |