|
1 // Copyright (c) 2008-2009 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 // mw/remoteconn/mtpfws/mtpfw/dataproviders/dputility/inc/cmtpsvcgetobjectproplist.h |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef __CMTPSVCGETOBJECTPROPLIST_H__ |
|
22 #define __CMTPSVCGETOBJECTPROPLIST_H__ |
|
23 |
|
24 #include <e32hashtab.h> |
|
25 #include "cmtprequestprocessor.h" |
|
26 |
|
27 class CMTPTypeObjectPropList; |
|
28 class MMTPServiceDataProvider; |
|
29 class MMTPSvcObjectHandler; |
|
30 |
|
31 /** |
|
32 Implements the service data provider GetObjectPropList request processor. |
|
33 @internalComponent |
|
34 */ |
|
35 class CMTPSvcGetObjectPropList : public CMTPRequestProcessor |
|
36 { |
|
37 public: |
|
38 IMPORT_C static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection, MMTPServiceDataProvider& aDataProvider); |
|
39 IMPORT_C ~CMTPSvcGetObjectPropList(); |
|
40 |
|
41 private: |
|
42 CMTPSvcGetObjectPropList(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection, MMTPServiceDataProvider& aDataProvider); |
|
43 void ConstructL(); |
|
44 |
|
45 // From CActive |
|
46 void RunL(); |
|
47 TInt RunError(TInt aError); |
|
48 |
|
49 TMTPResponseCode CheckObjectHandleAndFormatL(); |
|
50 TMTPResponseCode CheckDepth() const; |
|
51 TMTPResponseCode CheckRequestL(); |
|
52 TMTPResponseCode CheckPropertyCodeForFormatL(TUint32 aFormatCode) const; |
|
53 |
|
54 void ServiceL(); |
|
55 void ProcessFinalPhaseL(); |
|
56 void CompleteSelf(TInt aError); |
|
57 TBool DoHandleResponsePhaseL(); |
|
58 // Wraper for getting one format's object proplist according to prop code and group code. |
|
59 void GetObjectPropertyHelperL(); |
|
60 |
|
61 private: |
|
62 RArray<TUint> iObjectHandles; |
|
63 TUint32 iPropCode; |
|
64 TInt iHandleIndex; |
|
65 TInt iError; |
|
66 MMTPServiceDataProvider& iDataProvider; |
|
67 MMTPSvcObjectHandler* iObjectHandler; // Not own |
|
68 CMTPTypeObjectPropList* iPropertyList; |
|
69 TMTPResponseCode iResponseCode; |
|
70 CMTPObjectMetaData* iReceivedObjectMetaData; |
|
71 TUint32 iGroupId; |
|
72 /** |
|
73 FLOGGER debug trace member variable. |
|
74 */ |
|
75 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
76 }; |
|
77 |
|
78 #endif // __CMTPSVCGETOBJECTPROPLIST_H__ |