|
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 references. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CGETOBJECTREFERENCES_H |
|
20 #define CGETOBJECTREFERENCES_H |
|
21 |
|
22 #include "crequestprocessor.h" |
|
23 |
|
24 // forward declaration |
|
25 class CMTPTypeArray; |
|
26 class MMmMtpDpConfig; |
|
27 |
|
28 /** |
|
29 * Defines GetObjectReferences request processor |
|
30 */ |
|
31 class CGetObjectReferences : public CRequestProcessor |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Two-phase construction method |
|
36 * @param aFramework The data provider framework |
|
37 * @param aConnection The connection from which the request comes |
|
38 * @param aWrapper Medadata access interface |
|
39 * @return a pointer to the created request processor object |
|
40 */ |
|
41 IMPORT_C static MMmRequestProcessor* NewL( MMTPDataProviderFramework& aFramework, |
|
42 MMTPConnection& aConnection, |
|
43 MMmMtpDpConfig& aDpConfig ); |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 IMPORT_C ~CGetObjectReferences(); |
|
49 |
|
50 protected: |
|
51 // From CRequestProcessor |
|
52 /** |
|
53 * GetObjectReferences request handler |
|
54 */ |
|
55 void ServiceL(); |
|
56 |
|
57 private: |
|
58 /** |
|
59 * Standard c++ constructor |
|
60 * @param aFramework The data provider framework |
|
61 * @param aConnection The connection from which the request comes |
|
62 * @param aWrapper Medadata access interface |
|
63 */ |
|
64 CGetObjectReferences( MMTPDataProviderFramework& aFramework, |
|
65 MMTPConnection& aConnection ); |
|
66 |
|
67 /** |
|
68 * Two-phase construction |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 private: |
|
73 // Array object to store object references |
|
74 CMTPTypeArray* iReferences; |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // CGETOBJECTREFERENCES_H |