|
1 /* |
|
2 * Copyright (c) 2004 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: Presence attribute transaction factory. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPENGATTRIBUTETRANSACTIONFACTORY_H__ |
|
19 #define CPENGATTRIBUTETRANSACTIONFACTORY_H__ |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include "CPEngSessionSlotObject.h" |
|
24 #include "MPEngTransactionFactory.h" |
|
25 #include "PEngWVCspVersion.h" |
|
26 #include <E32Base.h> |
|
27 |
|
28 |
|
29 |
|
30 //FORWARD DECLARATION |
|
31 class MPEngIncomingTransactionHandler; |
|
32 class MPEngOutgoingTransactionHandler; |
|
33 class MPEngPresenceAttrTransactionEnv; |
|
34 class MPEngPresenceAttrManager; |
|
35 |
|
36 |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * Presence attribute transaction factory. |
|
42 * |
|
43 * @lib PEngAttrLib |
|
44 * @since 3.0 |
|
45 */ |
|
46 NONSHARABLE_CLASS( CPEngAttributeTransactionFactory ) : public CPEngSessionSlotObject, |
|
47 public MPEngTransactionFactory |
|
48 |
|
49 { |
|
50 public: // Constructors and destructor |
|
51 |
|
52 /** |
|
53 * Two-phased constructor. |
|
54 */ |
|
55 static CPEngAttributeTransactionFactory* NewL( const CPEngSessionSlotId& aSlotId, |
|
56 MPEngPresenceAttrTransactionEnv& aTransEnv, |
|
57 MPEngPresenceAttrManager& aAttrManager ); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CPEngAttributeTransactionFactory(); |
|
63 |
|
64 private: |
|
65 |
|
66 /** |
|
67 * C++ default constructor. |
|
68 */ |
|
69 CPEngAttributeTransactionFactory( MPEngPresenceAttrTransactionEnv& aTransEnv, |
|
70 MPEngPresenceAttrManager& aAttrManager ); |
|
71 |
|
72 /** |
|
73 * By default Symbian 2nd phase constructor is private. |
|
74 */ |
|
75 void ConstructL( const CPEngSessionSlotId& aSlotId ); |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 public: // Functions from base classes |
|
81 |
|
82 /** |
|
83 * From MPEngTransactionFactory. |
|
84 * |
|
85 * @see MPEngTransactionFactory |
|
86 * @since 3.0 |
|
87 */ |
|
88 void Close(); |
|
89 |
|
90 MPEngIncomingTransactionHandler* IncomingTransactionHandlerL( |
|
91 const TDesC8& aIncomingRequest ); |
|
92 |
|
93 void OutgoingTransactionHandlerL( |
|
94 TInt aOperation, |
|
95 const TDesC16& aData, |
|
96 RPointerArray<MPEngOutgoingTransactionHandler>& aHandlers ); |
|
97 |
|
98 |
|
99 |
|
100 private: // Data |
|
101 |
|
102 //OWN: Attribute transaction environment |
|
103 MPEngPresenceAttrTransactionEnv& iTransEnv; |
|
104 |
|
105 //OWN: Attribute manager |
|
106 MPEngPresenceAttrManager& iAttributeManager; |
|
107 |
|
108 //OWN: Flag describing are above ref. counted singletons owned or not |
|
109 TBool iRefsOwned; |
|
110 |
|
111 //OWN: Transaction domain |
|
112 HBufC16* iDomain; |
|
113 |
|
114 //OWN: WV CSP version |
|
115 TPEngWVCspVersion iCspVersion; |
|
116 }; |
|
117 |
|
118 #endif // CPENGATTRIBUTETRANSACTIONFACTORY_H__ |
|
119 |
|
120 |
|
121 // End of File |
|
122 |