|
1 // Copyright (c) 2006-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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef CMTPSETOBJECTPROPLIST_H |
|
22 #define CMTPSETOBJECTPROPLIST_H |
|
23 |
|
24 #include "cmtprequestprocessor.h" |
|
25 #include "rmtpframework.h" |
|
26 #include "rmtpdpsingletons.h" |
|
27 |
|
28 class CMTPTypeObjectPropList; |
|
29 |
|
30 /** |
|
31 Implements the file data provider SetObjectPropsList request processor. |
|
32 @internalComponent |
|
33 */ |
|
34 class CMTPSetObjectPropList : public CMTPRequestProcessor |
|
35 { |
|
36 public: |
|
37 |
|
38 IMPORT_C static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
39 IMPORT_C ~CMTPSetObjectPropList(); |
|
40 |
|
41 private: |
|
42 |
|
43 CMTPSetObjectPropList(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
44 void ConstructL(); |
|
45 |
|
46 private: // From CMTPRequestProcessor |
|
47 |
|
48 void ServiceL(); |
|
49 TBool DoHandleResponsePhaseL(); |
|
50 TBool HasDataphase() const; |
|
51 |
|
52 private: |
|
53 |
|
54 TMTPResponseCode CheckPropCode(TUint16 aPropertyCode, TUint16 aDataType) const; |
|
55 TMTPResponseCode CheckObjectHandleL(TUint32 aHandle) const; |
|
56 |
|
57 private: |
|
58 RMTPDpSingletons iDpSingletons; |
|
59 CMTPTypeObjectPropList* iPropertyList; |
|
60 RMTPFramework iSingleton; |
|
61 CMTPObjectMetaData* iObjMeta; |
|
62 }; |
|
63 |
|
64 #endif // CMTPSETOBJECTPROPLIST_H |
|
65 |