|
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 |
|
22 #ifndef CMTPGETSERVICEINFO_H_ |
|
23 #define CMTPGETSERVICEINFO_H_ |
|
24 |
|
25 #include "cmtprequestprocessor.h" |
|
26 #include "mtpdebug.h" |
|
27 #include "rmtpdevicedpsingletons.h" |
|
28 #include "rmtpframework.h" |
|
29 #include "cmtpserviceinfo.h" |
|
30 |
|
31 |
|
32 class CMTPTypeServiceInfo; |
|
33 |
|
34 |
|
35 /** |
|
36 Implements the device data provider GetDeviceInfo request processor. |
|
37 @internalComponent |
|
38 */ |
|
39 class CMTPGetServiceInfo : public CMTPRequestProcessor |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
45 ~CMTPGetServiceInfo(); |
|
46 |
|
47 private: |
|
48 |
|
49 CMTPGetServiceInfo(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
50 void ConstructL(); |
|
51 |
|
52 private: // From CMTPRequestProcessor |
|
53 |
|
54 void ServiceL(); |
|
55 |
|
56 private: |
|
57 |
|
58 void BuildServiceInfoL(); |
|
59 void BuildServiceInfoHeadL(CMTPServiceInfo& aServiceInfo); |
|
60 void BuildUsedServiceGUIDL(CMTPServiceInfo& aServiceInfo); |
|
61 void BuildServicePropertyL(CMTPServiceInfo& aServiceInfo); |
|
62 void BuildServiceFormatL(CMTPServiceInfo& aServiceInfo); |
|
63 void BuildServiceMethodL(CMTPServiceInfo& aServiceInfo); |
|
64 void BuildDataBlockL(CMTPServiceInfo& aServiceInfo); |
|
65 |
|
66 void AddToArrayL(RArray<TUint>& aDestArray, const RArray<TUint>& aSrcArray) const; |
|
67 |
|
68 private: // Owned. |
|
69 |
|
70 /** |
|
71 FLOGGER debug trace member variable. |
|
72 */ |
|
73 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
74 |
|
75 /** |
|
76 The DeviceInfo dataset buffer. |
|
77 */ |
|
78 CMTPTypeServiceInfo* iServiceInfo; |
|
79 |
|
80 /** |
|
81 The MTP framework singletons. |
|
82 */ |
|
83 RMTPFramework iSingletons; |
|
84 |
|
85 }; |
|
86 |
|
87 #endif /*CMTPGETSERVICEINFO_H_*/ |