|
1 /* |
|
2 * Copyright (c) 2005 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: A proxy operation between the client and another operation. |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "EPos_CPosLmLocalInternalProxyOp.h" |
|
22 #include "EPos_MPosLmLocalInternalProxyOpClient.h" |
|
23 |
|
24 // ================= MEMBER FUNCTIONS ======================= |
|
25 |
|
26 // C++ default constructor can NOT contain any code, that |
|
27 // might leave. |
|
28 // |
|
29 CPosLmLocalInternalProxyOp::CPosLmLocalInternalProxyOp( |
|
30 MPosLmLocalInternalProxyOpClient& aOpClient, |
|
31 CPosLmOperation* aOp) : |
|
32 CPosLmOperation(), |
|
33 iOpClient(&aOpClient), |
|
34 iOp(aOp) |
|
35 { |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CPosLmLocalInternalProxyOp::NewL |
|
40 // Two-phased constructor. |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 CPosLmLocalInternalProxyOp* CPosLmLocalInternalProxyOp::NewL( |
|
44 MPosLmLocalInternalProxyOpClient& aOpOwner, |
|
45 CPosLmOperation* aOp) |
|
46 { |
|
47 CPosLmLocalInternalProxyOp* self = new(ELeave) CPosLmLocalInternalProxyOp( |
|
48 aOpOwner, aOp); |
|
49 return self; |
|
50 } |
|
51 |
|
52 // Destructor |
|
53 CPosLmLocalInternalProxyOp::~CPosLmLocalInternalProxyOp() |
|
54 { |
|
55 delete iOp; |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CPosLmLocalInternalProxyOp::Operation |
|
60 // |
|
61 // (other items were commented in a header). |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 CPosLmOperation* CPosLmLocalInternalProxyOp::Operation() |
|
65 { |
|
66 return iOp; |
|
67 } |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // CPosLmLocalInternalProxyOp::NextStep |
|
71 // |
|
72 // (other items were commented in a header). |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 void CPosLmLocalInternalProxyOp::NextStep( |
|
76 TRequestStatus& aStatus, |
|
77 TReal32& aProgress) |
|
78 { |
|
79 iOpClient->DoNextStep(aStatus, aProgress); |
|
80 } |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // CPosLmLocalInternalProxyOp::ExecuteL |
|
84 // |
|
85 // (other items were commented in a header). |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 void CPosLmLocalInternalProxyOp::ExecuteL() |
|
89 { |
|
90 iOpClient->DoExecuteL(); |
|
91 } |
|
92 |
|
93 // End of File |