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