libosmscout 1.1.1
Loading...
Searching...
No Matches
osmscout::SearchModule Class Reference

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

Inheritance diagram for osmscout::SearchModule:
Collaboration diagram for osmscout::SearchModule:

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 ()

Constructor & Destructor Documentation

◆ SearchModule()

osmscout::SearchModule::SearchModule ( QThread * thread,
DBThreadRef dbThread,
LookupModule * lookupModule )

◆ ~SearchModule()

virtual osmscout::SearchModule::~SearchModule ( )
virtual

Member Function Documentation

◆ 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: