|
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: CXcapOperationFactory |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __XCAPOPERATIONFACTORY__ |
|
22 #define __XCAPOPERATIONFACTORY__ |
|
23 |
|
24 #include <e32base.h> |
|
25 #include "XdmOperationFactory.h" |
|
26 |
|
27 _LIT( KOperationsLogFile, "XcapOperations" ); |
|
28 const TInt KOpLogBufferMaxSize = 2000; |
|
29 |
|
30 //FORWARD DECLARATION |
|
31 class CXdmDocument; |
|
32 class CXdmDocumentNode; |
|
33 |
|
34 //CLASS DECLARATION |
|
35 NONSHARABLE_CLASS( CXcapOperationFactory ) : public CXdmOperationFactory |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 * @param CXdmProtocolInfo Protocol info |
|
42 * @return CXdmProtocol |
|
43 */ |
|
44 static CXcapOperationFactory* NewL(); |
|
45 |
|
46 /** |
|
47 * Destructor. A simple wrapper to the C++ destructor. |
|
48 * |
|
49 */ |
|
50 virtual ~CXcapOperationFactory(); |
|
51 |
|
52 public: |
|
53 |
|
54 /** |
|
55 * Return an operation object that knows how to manipulate |
|
56 * whole documents |
|
57 */ |
|
58 MXdmOperation* FetchL( CXdmDocument& aTargetDocument, |
|
59 CXdmDocumentNode* aTargetNode = NULL ) const; |
|
60 |
|
61 /** |
|
62 * Return an operation object that knows how to manipulate |
|
63 * partial document |
|
64 */ |
|
65 MXdmOperation* InsertL( CXdmDocument& aTargetDocument, |
|
66 CXdmDocumentNode* aTargetNode ) const; |
|
67 |
|
68 /** |
|
69 * Return an operation object that knows how to manipulate |
|
70 * partial document |
|
71 */ |
|
72 MXdmOperation* ReplaceL( CXdmDocument& aOldDocument, |
|
73 CXdmDocumentNode* aNewNode, |
|
74 CXdmDocumentNode* aOldNode ) const; |
|
75 |
|
76 /** |
|
77 * Return an operation object that knows how to manipulate |
|
78 * partial document |
|
79 */ |
|
80 MXdmOperation* AppendL( CXdmDocument& aTargetDocument, |
|
81 CXdmDocumentNode* aTargetNode ) const; |
|
82 |
|
83 /** |
|
84 * Return an operation object that knows how to manipulate |
|
85 * partial document |
|
86 */ |
|
87 MXdmOperation* DeletionL( CXdmDocument& aTargetDocument, |
|
88 CXdmDocumentNode* aTargetNode ) const; |
|
89 |
|
90 public: |
|
91 |
|
92 /** |
|
93 * Return an operation object that knows how to manipulate |
|
94 * partial document |
|
95 */ |
|
96 void WriteToLog( TRefByValue<const TDesC8> aFmt,... ) const; |
|
97 |
|
98 private: |
|
99 |
|
100 /** |
|
101 * C++ constructor |
|
102 * @return CImpsTcpCirWatcher |
|
103 */ |
|
104 void ConstructL(); |
|
105 |
|
106 /** |
|
107 * Write here something meaningful |
|
108 */ |
|
109 void WriteTraceLog( const TDesC8& aLogDescriptor ); |
|
110 |
|
111 /** |
|
112 * C++ constructor |
|
113 * @return CImpsTcpCirWatcher |
|
114 */ |
|
115 CXcapOperationFactory(); |
|
116 |
|
117 private: //Data |
|
118 |
|
119 CXdmLogWriter* iLogWriter; |
|
120 }; |
|
121 |
|
122 #endif |