|
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 search transactions. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPENGSEARCHTRANSACTION2IMP_H |
|
19 #define CPENGSEARCHTRANSACTION2IMP_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <E32Base.h> |
|
23 #include <CPEngSearchTransaction2.h> |
|
24 |
|
25 |
|
26 //FORWARD DECLARATIONS |
|
27 class CPEngSearchTransaction2; |
|
28 class CPEngNWSessionSlotID2; |
|
29 class CPEngSearchControl; |
|
30 class CPEngSearchCriteria2; |
|
31 class CPEngNWSessionSlotStorageProxy; |
|
32 |
|
33 |
|
34 /** |
|
35 * Presence attribute transactions. |
|
36 * |
|
37 * @since 3.0 |
|
38 */ |
|
39 NONSHARABLE_CLASS( CPEngSearchTransaction2Imp ): public CBase |
|
40 |
|
41 { |
|
42 public: /* Construction */ |
|
43 |
|
44 |
|
45 /** |
|
46 * Instantiates CPEngSearchTransaction2Imp object. |
|
47 * |
|
48 * @return New CPEngSearchTransaction2Imp instance. |
|
49 */ |
|
50 static CPEngSearchTransaction2Imp* NewL( |
|
51 CPEngSearchTransaction2& aInterface, |
|
52 TInt aPriority, |
|
53 const CPEngNWSessionSlotID2& aNWSessionSlotID ); |
|
54 |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 ~CPEngSearchTransaction2Imp(); |
|
60 |
|
61 |
|
62 |
|
63 protected: |
|
64 |
|
65 /** |
|
66 * C++ constructor. |
|
67 */ |
|
68 CPEngSearchTransaction2Imp( CPEngSearchTransaction2& aInterface, |
|
69 TInt aPriority ); |
|
70 |
|
71 |
|
72 /** |
|
73 * Symbian OS constructor. |
|
74 */ |
|
75 void ConstructL( const CPEngNWSessionSlotID2& aNWSessionSlotID ); |
|
76 |
|
77 |
|
78 |
|
79 public: /* Seacrh transaction implementation */ |
|
80 |
|
81 TBool IsSearchFromNetworkActive() const; |
|
82 |
|
83 TInt SearchFromNetwork( CPEngSearchCriteria2*& aCriteria, |
|
84 TInt aSearchLimit, |
|
85 MPEngSearchTransactionObserver2& aObserver ); |
|
86 |
|
87 TInt SearchFromNetwork( RPointerArray< CPEngSearchCriteria2 >& aCriterias, |
|
88 TInt aSearchLimit, |
|
89 MPEngSearchTransactionObserver2& aObserver ); |
|
90 |
|
91 TInt ContinueSearchFromNetwork( TInt aContinueIndex ); |
|
92 |
|
93 TInt StopSearchFromNetwork(); |
|
94 |
|
95 void HandleSearchDestruction( CPEngSearchControl* aSearch ); |
|
96 |
|
97 CPEngSearchTransaction2& Interface(); |
|
98 |
|
99 |
|
100 private: //Helpers |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 private: //Implementation |
|
107 |
|
108 |
|
109 |
|
110 private: //Data |
|
111 |
|
112 //REF: Implemented interface |
|
113 CPEngSearchTransaction2& iInterface; |
|
114 |
|
115 //OWN: The priority |
|
116 TInt iCActivePriority; |
|
117 |
|
118 //OWN: Slot connection to bind to the storage. |
|
119 CPEngNWSessionSlotStorageProxy* iUsedSlot; |
|
120 |
|
121 //OWN: Cached slot id for search control |
|
122 CPEngNWSessionSlotID2* iUsedSlotId; |
|
123 |
|
124 //OWN: The search operation |
|
125 CPEngSearchControl* iSearchCntrl; |
|
126 |
|
127 |
|
128 }; |
|
129 |
|
130 #endif //CPENGSEARCHTRANSACTION2IMP_H |
|
131 |
|
132 // End of File |