|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Get object info operation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CGETOBJECTINFO_H |
|
20 #define CGETOBJECTINFO_H |
|
21 |
|
22 #include "crequestprocessor.h" |
|
23 |
|
24 // forward declacration |
|
25 class CMmMtpDpMetadataAccessWrapper; |
|
26 class CMTPTypeObjectInfo; |
|
27 class MMmMtpDpConfig; |
|
28 |
|
29 /** |
|
30 * Defines GetObjectInfo request processor |
|
31 */ |
|
32 class CGetObjectInfo : public CRequestProcessor |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Two-phase construction method |
|
37 * @param aFramework The data provider framework |
|
38 * @param aConnection The connection from which the request comes |
|
39 * @param aWrapper medadata access interface |
|
40 * @return a pointer to the created request processor object |
|
41 */ |
|
42 IMPORT_C static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework, |
|
43 MMTPConnection& aConnection, |
|
44 MMmMtpDpConfig& aDpConfig ); |
|
45 |
|
46 /** |
|
47 * Destructor |
|
48 */ |
|
49 IMPORT_C ~CGetObjectInfo(); |
|
50 |
|
51 protected: |
|
52 // From CRequestProcessor |
|
53 /** |
|
54 * GetObjectInfo request handler |
|
55 */ |
|
56 void ServiceL(); |
|
57 |
|
58 private: |
|
59 /** |
|
60 * Standard c++ constructor |
|
61 * @param aFramework The data provider framework |
|
62 * @param aConnection The connection from which the request comes |
|
63 * @param aWrapper medadata access interface |
|
64 */ |
|
65 IMPORT_C CGetObjectInfo( MMTPDataProviderFramework& aFramework, |
|
66 MMTPConnection& aConnection, |
|
67 MMmMtpDpConfig& aDpConfig ); |
|
68 |
|
69 /** |
|
70 * Second-phase construction |
|
71 */ |
|
72 IMPORT_C void ConstructL(); |
|
73 |
|
74 private: |
|
75 /** |
|
76 * Prepare object with existing data according to the handle from PC |
|
77 */ |
|
78 void BuildObjectInfoL(); |
|
79 |
|
80 private: |
|
81 |
|
82 CMTPTypeObjectInfo* iObjectInfo; |
|
83 |
|
84 MMmMtpDpConfig& iDpConfig; |
|
85 }; |
|
86 |
|
87 #endif // CGETOBJECTINFO_H |