|
1 // Copyright (c) 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 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef CMTPIMAGEDPGETOBJECTINFO_H |
|
22 #define CMTPIMAGEDPGETOBJECTINFO_H |
|
23 |
|
24 #include <f32file.h> |
|
25 |
|
26 #include "cmtprequestprocessor.h" |
|
27 |
|
28 class CMTPTypeObjectInfo; |
|
29 class CMTPImageDpObjectPropertyMgr; |
|
30 class CMTPImageDataProvider; |
|
31 |
|
32 /** |
|
33 Defines file data provider GetObjectInfo request processor |
|
34 |
|
35 @internalTechnology |
|
36 */ |
|
37 class CMTPImageDpGetObjectInfo : public CMTPRequestProcessor |
|
38 { |
|
39 public: |
|
40 |
|
41 static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection,CMTPImageDataProvider& aDataProvider); |
|
42 ~CMTPImageDpGetObjectInfo(); |
|
43 |
|
44 private: |
|
45 |
|
46 CMTPImageDpGetObjectInfo(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection,CMTPImageDataProvider& aDataProvider); |
|
47 void ConstructL(); |
|
48 |
|
49 private: // From CMTPRequestProcessor |
|
50 |
|
51 void ServiceL(); |
|
52 TMTPResponseCode CheckRequestL(); |
|
53 |
|
54 private: |
|
55 |
|
56 void BuildObjectInfoL(); |
|
57 void SetFileNameL(); |
|
58 void SetFileSizeDateL(); |
|
59 void SetKeywordL(); |
|
60 |
|
61 private: |
|
62 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
63 |
|
64 CMTPTypeObjectInfo* iObjectInfoToBuild; |
|
65 CMTPObjectMetaData* iObjectMeta; |
|
66 CMTPImageDpObjectPropertyMgr& iObjectPropertyMgr; |
|
67 }; |
|
68 |
|
69 #endif CMTPIMAGEDPGETOBJECTINFO_H |