|
libosmscout 1.1.1
|
#include <libosmscout-client-qt/include/osmscoutclientqt/SearchModule.h>


Public Slots | |
| void | SearchForLocations (const QString searchPattern, int limit, osmscout::GeoCoord, AdminRegionInfoRef defaultRegion, osmscout::BreakerRef breaker) |
Signals | |
| void | searchResult (const QString searchPattern, const QList< LocationEntry >) |
| void | searchFinished (const QString searchPattern, bool error) |
Public Member Functions | |
| SearchModule (QThread *thread, DBThreadRef dbThread, LookupModule *lookupModule) | |
| virtual | ~SearchModule () |
| osmscout::SearchModule::SearchModule | ( | QThread * | thread, |
| DBThreadRef | dbThread, | ||
| LookupModule * | lookupModule ) |
|
virtual |
|
signal |
|
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.
| searchPattern | |
| limit | - suggested limit for count of retrieved entries from one db |
|
signal |