Fixed a bug that caused Eniro search results to sometimes have phone number in street...
[jenirok] / src / common / source.h
index 7e0765c..3477380 100644 (file)
@@ -41,7 +41,7 @@ public:
         QString number;
     };
 
-    enum SearchType {YELLOW_PAGES, PERSONS};
+    enum SearchType {YELLOW_PAGES, PERSONS, BOTH};
 
     struct SearchDetails
     {
@@ -55,7 +55,7 @@ public:
 
 
     enum Error {NO_ERROR, CONNECTION_FAILURE, INVALID_LOGIN, TIMEOUT};
-    enum SourceId {SOURCE_NONE, ENIRO, MOBIL1881};
+    enum SourceId {ENIRO, MOBIL1881};
     static int const SOURCE_COUNT = 2;
 
     struct SourceDetails
@@ -96,6 +96,7 @@ protected:
     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_;