Danish Eniro search fixed.
[jenirok] / src / common / source.h
index 3477380..7ebe969 100644 (file)
@@ -39,6 +39,7 @@ public:
         QString street;
         QString city;
         QString number;
+        QString country;
     };
 
     enum SearchType {YELLOW_PAGES, PERSONS, BOTH};
@@ -55,8 +56,8 @@ public:
 
 
     enum Error {NO_ERROR, CONNECTION_FAILURE, INVALID_LOGIN, TIMEOUT};
-    enum SourceId {ENIRO, MOBIL1881};
-    static int const SOURCE_COUNT = 2;
+    enum SourceId {ENIRO, MOBIL1881, DASTELEFONBUCH};
+    static int const SOURCE_COUNT = 3;
 
     struct SourceDetails
     {
@@ -75,6 +76,7 @@ public:
     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);