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: CLocalReplacement |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __LOCALREPLACEMENT__ |
|
22 #define __LOCALREPLACEMENT__ |
|
23 |
|
24 #include <e32base.h> |
|
25 #include "XdmOperation.h" |
|
26 #include "LocalOperationBase.h" |
|
27 |
|
28 //FORWARD DECLARATIONS |
|
29 class CLocalDocumentNode; |
|
30 |
|
31 //CLASS DECLARATION |
|
32 NONSHARABLE_CLASS( CLocalReplacement ) : public CLocalOperationBase |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Symbian OS default constructor. |
|
38 * @param TInt Default Access Point ID |
|
39 * @return CXdmDocOperation* |
|
40 */ |
|
41 static CLocalReplacement* NewL( CLocalDocument& aParentDoc, |
|
42 CLocalDocumentNode* aOldNode, |
|
43 CLocalDocumentNode* aNewNode, |
|
44 CLocalOperationFactory& aOperationFactory ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CLocalReplacement(); |
|
50 |
|
51 private: //Methods |
|
52 |
|
53 /** |
|
54 * Symbian OS default constructor. |
|
55 * @param TInt Default Access Point ID |
|
56 * @return CXdmDocOperation* |
|
57 */ |
|
58 CLocalReplacement( CLocalDocument& aTargetDoc, |
|
59 CLocalDocumentNode* aOldNode, |
|
60 CLocalDocumentNode* aNewNode, |
|
61 CLocalOperationFactory& aOperationFactory ); |
|
62 |
|
63 private: //From MXdmOperation |
|
64 |
|
65 /** |
|
66 * Execute this operation synchronously |
|
67 */ |
|
68 void ExecuteL(); |
|
69 |
|
70 /** |
|
71 * Execute this operation synchronously |
|
72 */ |
|
73 void HandlePartialReplacementL( TInt aDataLength ); |
|
74 |
|
75 /** |
|
76 * Set this operation to completed state. |
|
77 */ |
|
78 void Destroy(); |
|
79 |
|
80 private: //Data |
|
81 |
|
82 CLocalDocumentNode* iNewNode; |
|
83 CLocalDocumentNode* iTargetNode; |
|
84 TXdmOperationType iOperationType; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif //__LOCALREPLACEMENT__ |
|
89 |
|
90 // End of File |
|