|
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 @internalComponent |
|
19 */ |
|
20 #ifndef CMTPIMAGEDPGETFORMATCAPABILITIES_H_ |
|
21 #define CMTPIMAGEDPGETFORMATCAPABILITIES_H_ |
|
22 |
|
23 #include <mtp/cmtptypeformatcapabilitylist.h> |
|
24 #include "cmtprequestprocessor.h" |
|
25 |
|
26 |
|
27 class CMTPTypeObjectPropDesc; |
|
28 class CMTPImageDataProvider; |
|
29 |
|
30 /** |
|
31 Implements the file data provider CMTPGetFormatCapabilities request processor. |
|
32 @internalComponent |
|
33 */ |
|
34 class CMTPImageDpGetFormatCapabilities : public CMTPRequestProcessor |
|
35 { |
|
36 public: |
|
37 |
|
38 static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection,CMTPImageDataProvider& aDataProvider); |
|
39 ~CMTPImageDpGetFormatCapabilities(); |
|
40 |
|
41 |
|
42 private: // From CMTPRequestProcessor |
|
43 |
|
44 void ServiceL(); |
|
45 TMTPResponseCode CheckRequestL(); |
|
46 |
|
47 private: |
|
48 |
|
49 CMTPImageDpGetFormatCapabilities(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
50 void ConstructL(); |
|
51 void BuildFormatExifJpegL(); |
|
52 CMTPTypeObjectPropDesc* ServiceProtectionStatusL(); |
|
53 CMTPTypeObjectPropDesc* ServiceNonConsumableL(); |
|
54 |
|
55 TUint16 GetPropertyGroupNumber(const TUint16 aPropCode) const; |
|
56 |
|
57 private: // Owned |
|
58 /** |
|
59 FLOGGER debug trace member variable. |
|
60 */ |
|
61 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
62 |
|
63 TUint iFormatCode; |
|
64 /* |
|
65 * CMTPTypeCapabilityList dataset. |
|
66 */ |
|
67 CMTPTypeFormatCapabilityList* iCapabilityList; |
|
68 }; |
|
69 |
|
70 |
|
71 #endif /* CMTPIMAGEDPGETFORMATCAPABILITIES_H_*/ |