equal
deleted
inserted
replaced
206 { |
206 { |
207 delete mSearchInterface; |
207 delete mSearchInterface; |
208 mSearchInterface = NULL; |
208 mSearchInterface = NULL; |
209 } |
209 } |
210 if (astring.length()) |
210 if (astring.length()) |
211 { |
211 { |
212 QString database("root "); |
212 mSearchInterface = CpixSearcher::newInstance(astring, |
213 database.append(astring); |
|
214 mSearchInterface = CpixSearcher::newInstance(database, |
|
215 DEFAULT_SEARCH_FIELD); |
|
216 } |
|
217 else |
|
218 { |
|
219 mSearchInterface = CpixSearcher::newInstance("root", |
|
220 DEFAULT_SEARCH_FIELD); |
213 DEFAULT_SEARCH_FIELD); |
221 } |
214 } |
222 if (mSearchInterface) |
215 if (mSearchInterface) |
223 { |
216 { |
224 connect(mSearchInterface, SIGNAL(handleSearchResults(int,int)), this, |
217 connect(mSearchInterface, SIGNAL(handleSearchResults(int,int)), this, |
228 connect(mSearchInterface, |
221 connect(mSearchInterface, |
229 SIGNAL(handleBatchDocuments(int,int,CpixDocument**)), this, |
222 SIGNAL(handleBatchDocuments(int,int,CpixDocument**)), this, |
230 SLOT(getBatchDocumentAsync(int,int,CpixDocument**))); |
223 SLOT(getBatchDocumentAsync(int,int,CpixDocument**))); |
231 } |
224 } |
232 } |
225 } |
233 |
|
234 // --------------------------------------------------------------------------- |
226 // --------------------------------------------------------------------------- |
235 // InDeviceHandler::isPrepared() |
227 // InDeviceHandler::isPrepared() |
236 // verify the mSearchInterface is prepared or not |
228 // verify the mSearchInterface is prepared or not |
237 // --------------------------------------------------------------------------- |
229 // --------------------------------------------------------------------------- |
238 // |
230 // |