QString street;
QString city;
QString number;
+ QString country;
};
- enum SearchType {YELLOW_PAGES, PERSONS};
+ enum SearchType {YELLOW_PAGES, PERSONS, BOTH};
struct SearchDetails
{
enum Error {NO_ERROR, CONNECTION_FAILURE, INVALID_LOGIN, TIMEOUT};
- enum SourceId {SOURCE_NONE, ENIRO, MOBIL1881};
- static int const SOURCE_COUNT = 2;
+ enum SourceId {ENIRO, MOBIL1881, DASTELEFONBUCH};
+ static int const SOURCE_COUNT = 3;
struct SourceDetails
{
static Source* getSource();
virtual void abort();
virtual void search(SearchDetails const& details) = 0;
+ virtual void getSearchTypes(QList<SearchType>& types) const;
void setMaxResults(unsigned int results);
unsigned int getMaxResults() const;
void setTimeout(unsigned int ms);
static QString& cleanUpNumber(QString& number);
static QString& stripTags(QString& string);
static QString& htmlEntityDecode(QString& string);
+ static bool isPhoneNumber(QString const& string);
void fixUrl(QUrl& url);
QHttp http_;