|
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 // INCLUDE FILES |
|
19 #include "CPEngSearchTransaction2.h" |
|
20 #include "CPEngSearchTransaction2Imp.h" |
|
21 |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CPEngSearchTransaction2::NewL() |
|
28 // Two-phased constructor. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 EXPORT_C CPEngSearchTransaction2* CPEngSearchTransaction2::NewL( |
|
32 const CPEngNWSessionSlotID2& aNWSessionSlotID, |
|
33 TInt aPriority ) |
|
34 { |
|
35 CPEngSearchTransaction2* self = CPEngSearchTransaction2::NewLC( |
|
36 aNWSessionSlotID, |
|
37 aPriority ); |
|
38 CleanupStack::Pop( self ); |
|
39 return self; |
|
40 } |
|
41 |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // CPEngSearchTransaction2::NewLC() |
|
45 // Two-phased constructor. |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 EXPORT_C CPEngSearchTransaction2* CPEngSearchTransaction2::NewLC( |
|
49 const CPEngNWSessionSlotID2& aNWSessionSlotID, |
|
50 TInt aPriority ) |
|
51 { |
|
52 CPEngSearchTransaction2* self = new ( ELeave ) CPEngSearchTransaction2; |
|
53 CleanupStack::PushL( self ); |
|
54 self->iImp = CPEngSearchTransaction2Imp::NewL( *self, |
|
55 aPriority, |
|
56 aNWSessionSlotID ); |
|
57 return self; |
|
58 } |
|
59 |
|
60 |
|
61 |
|
62 // Destructor |
|
63 CPEngSearchTransaction2::~CPEngSearchTransaction2() |
|
64 { |
|
65 delete iImp; |
|
66 } |
|
67 |
|
68 |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // CPEngSearchTransaction2::CPEngSearchTransaction2 |
|
72 // C++ default constructor can NOT contain any code, that |
|
73 // might leave. |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 CPEngSearchTransaction2::CPEngSearchTransaction2() |
|
77 { |
|
78 } |
|
79 |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CPEngSearchTransaction2::IsSearchFromNetworkActive() |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 EXPORT_C TBool CPEngSearchTransaction2::IsSearchFromNetworkActive() const |
|
86 { |
|
87 return iImp->IsSearchFromNetworkActive(); |
|
88 } |
|
89 |
|
90 |
|
91 // ----------------------------------------------------------------------------- |
|
92 // CPEngSearchTransaction2::SearchFromNetwork() |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 EXPORT_C TInt CPEngSearchTransaction2::SearchFromNetwork( |
|
96 CPEngSearchCriteria2*& aCriteria, |
|
97 TInt aSearchLimit, |
|
98 MPEngSearchTransactionObserver2& aObserver ) |
|
99 { |
|
100 return iImp->SearchFromNetwork( aCriteria, |
|
101 aSearchLimit, |
|
102 aObserver ); |
|
103 } |
|
104 |
|
105 |
|
106 // ----------------------------------------------------------------------------- |
|
107 // CPEngSearchTransaction2::SearchFromNetwork() |
|
108 // ----------------------------------------------------------------------------- |
|
109 // |
|
110 EXPORT_C TInt CPEngSearchTransaction2::SearchFromNetwork( |
|
111 RPointerArray< CPEngSearchCriteria2 >& aCriterias, |
|
112 TInt aSearchLimit, |
|
113 MPEngSearchTransactionObserver2& aObserver ) |
|
114 { |
|
115 return iImp->SearchFromNetwork( aCriterias, |
|
116 aSearchLimit, |
|
117 aObserver ); |
|
118 } |
|
119 |
|
120 |
|
121 // ----------------------------------------------------------------------------- |
|
122 // CPEngSearchTransaction2::ContinueSearchFromNetwork() |
|
123 // ----------------------------------------------------------------------------- |
|
124 // |
|
125 EXPORT_C TInt CPEngSearchTransaction2::ContinueSearchFromNetwork( TInt aContinueIndex ) |
|
126 { |
|
127 return iImp->ContinueSearchFromNetwork( aContinueIndex ); |
|
128 } |
|
129 |
|
130 |
|
131 // ----------------------------------------------------------------------------- |
|
132 // CPEngSearchTransaction2::StopSearchFromNetwork() |
|
133 // ----------------------------------------------------------------------------- |
|
134 // |
|
135 EXPORT_C TInt CPEngSearchTransaction2::StopSearchFromNetwork() |
|
136 { |
|
137 return iImp->StopSearchFromNetwork(); |
|
138 } |
|
139 |
|
140 |
|
141 // End of File |
|
142 |
|
143 |