|
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 #ifndef CMTPGETFORMATCAPABILITLIST_H_ |
|
21 #define CMTPGETFORMATCAPABILITLIST_H_ |
|
22 |
|
23 #include <mtp/cmtptypeformatcapabilitylist.h> |
|
24 |
|
25 #include "cmtprequestprocessor.h" |
|
26 #include "rmtpframework.h" |
|
27 |
|
28 class CMTPTypeObjectPropDesc; |
|
29 /** |
|
30 Implements the file data provider CMTPGetFormatCapabilities request processor. |
|
31 @internalComponent |
|
32 */ |
|
33 class CMTPGetFormatCapabilities : public CMTPRequestProcessor |
|
34 { |
|
35 public: |
|
36 |
|
37 IMPORT_C static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
38 IMPORT_C ~CMTPGetFormatCapabilities(); |
|
39 |
|
40 |
|
41 private: // From CMTPRequestProcessor |
|
42 |
|
43 void ServiceL(); |
|
44 TMTPResponseCode CheckRequestL(); |
|
45 |
|
46 private: |
|
47 |
|
48 CMTPGetFormatCapabilities(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
49 void ConstructL(); |
|
50 void BuildFormatAssociationL(); |
|
51 void BuildFormatAsUndefinedL( TUint aFormatCode ); |
|
52 CMTPTypeObjectPropDesc* ServiceProtectionStatusL(); |
|
53 CMTPTypeObjectPropDesc* ServiceAssociationTypeL(); |
|
54 CMTPTypeObjectPropDesc* ServiceNonConsumableL(); |
|
55 |
|
56 private: // Owned |
|
57 |
|
58 //[SP-Format-0x3002] |
|
59 //Make the same behavior betwen 0x3000 and 0x3002. |
|
60 //it is used to judge whether FileDP supports 0x3002 or not. |
|
61 RMTPFramework iSingletons; |
|
62 |
|
63 TUint iFormatCode; |
|
64 /* |
|
65 * CMTPTypeCapabilityList dataset. |
|
66 */ |
|
67 CMTPTypeFormatCapabilityList* iCapabilityList; |
|
68 }; |
|
69 |
|
70 |
|
71 #endif /* CMTPGETFORMATCAPABILITLIST_H_ */ |