|
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 CMTPGETDEVICEINFO_H |
|
22 #define CMTPGETDEVICEINFO_H |
|
23 |
|
24 #include "cmtprequestprocessor.h" |
|
25 #include "mtpdebug.h" |
|
26 #include "rmtpdevicedpsingletons.h" |
|
27 #include "rmtpframework.h" |
|
28 |
|
29 class CMTPTypeDeviceInfo; |
|
30 class CMTPTypeArray; |
|
31 class CMTPDataProviderController; |
|
32 |
|
33 /** |
|
34 Implements the device data provider GetDeviceInfo request processor. |
|
35 @internalComponent |
|
36 */ |
|
37 class CMTPGetDeviceInfo : public CMTPRequestProcessor |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
43 ~CMTPGetDeviceInfo(); |
|
44 |
|
45 private: |
|
46 |
|
47 CMTPGetDeviceInfo(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
48 void ConstructL(); |
|
49 |
|
50 private: // From CMTPRequestProcessor |
|
51 |
|
52 void ServiceL(); |
|
53 |
|
54 private: |
|
55 |
|
56 void BuildDeviceInfoL(); |
|
57 |
|
58 void SetSupportedOperationsL(CMTPDataProviderController& aDpController); |
|
59 void SetSupportedEventsL(CMTPDataProviderController& aDpController); |
|
60 void SetSupportedDevicePropertiesL(); |
|
61 void SetSupportedCaptureFormatsL(CMTPDataProviderController& aDpController); |
|
62 void SetSupportedPlaybackFormatsL(CMTPDataProviderController& aDpController); |
|
63 |
|
64 void AddToArrayL(RArray<TUint>& aDestArray, const RArray<TUint>& aSrcArray) const; |
|
65 void AddToArrayWithFilterL(RArray<TUint>& aDestArray, const RArray<TUint>& aSrcArray) const; |
|
66 |
|
67 void RemoveServiceFormat(RArray<TUint>& aSupportedCaptureFormats); |
|
68 |
|
69 private: // Owned. |
|
70 |
|
71 /** |
|
72 FLOGGER debug trace member variable. |
|
73 */ |
|
74 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
75 |
|
76 /** |
|
77 The DeviceInfo dataset buffer. |
|
78 */ |
|
79 CMTPTypeDeviceInfo* iDeviceInfo; |
|
80 |
|
81 /** |
|
82 The MTP framework singletons. |
|
83 */ |
|
84 RMTPFramework iSingletons; |
|
85 |
|
86 /** |
|
87 The device DP singletons handle. |
|
88 */ |
|
89 RMTPDeviceDpSingletons iDpSingletons; |
|
90 }; |
|
91 |
|
92 #endif // CMTPGETDEVICEINFO_H |
|
93 |