#include <libosmscout-client-qt/include/osmscoutclientqt/SearchModule.h>
◆ SearchModule()
| osmscout::SearchModule::SearchModule |
( |
QThread * | thread, |
|
|
DBThreadRef | dbThread, |
|
|
LookupModule * | lookupModule ) |
◆ ~SearchModule()
| virtual osmscout::SearchModule::~SearchModule |
( |
| ) |
|
|
virtual |
◆ searchFinished
| void osmscout::SearchModule::searchFinished |
( |
const QString | searchPattern, |
|
|
bool | error ) |
|
signal |
◆ SearchForLocations
| void osmscout::SearchModule::SearchForLocations |
( |
const QString | searchPattern, |
|
|
int | limit, |
|
|
osmscout::GeoCoord | , |
|
|
AdminRegionInfoRef | defaultRegion, |
|
|
osmscout::BreakerRef | breaker ) |
|
slot |
Start object search by some pattern.
DBThread then emits searchResult signals followed by searchFinished for this pattern.
User of this function should use Qt::QueuedConnection for invoking this slot, search may generate IO load and may tooks long time.
Keep in mind that entries retrieved by searchResult signal can contains duplicates, because search may use various databases and indexes.
- Parameters
-
| searchPattern | |
| limit | - suggested limit for count of retrieved entries from one db |
◆ searchResult
| void osmscout::SearchModule::searchResult |
( |
const QString | searchPattern, |
|
|
const QList< LocationEntry > | ) |
|
signal |
The documentation for this class was generated from the following file: