Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Jenirok
Summary Tracker SCM Files
authoreshe <jessehakanen@gmail.com>
Fri, 4 Jun 2010 18:05:34 +0000 (19:05 +0100)
committereshe <jessehakanen@gmail.com>
Fri, 4 Jun 2010 18:05:34 +0000 (19:05 +0100)
src/common/eniro.cpp
src/common/eniro.h

index 90d2493..b28760c 100644 (file)
@@ -58,8 +58,8 @@ QRegExp Eniro::tagStripper_ = QRegExp("<([^>]+)>");
 
 Eniro::Eniro(Site site, QObject *parent): QObject(parent), site_(site),
 username_(""), password_(""), loggedIn_(false), error_(NO_ERROR),
-errorString_(""), maxResults_(10), timeout_(0), timerId_(0), findNumber_(true),
-pendingSearches_(), pendingNumberRequests_()
+errorString_(""), maxResults_(DEFAULT_MAX_RESULTS), timeout_(0), timerId_(0),
+findNumber_(true), pendingSearches_(), pendingNumberRequests_()
 {
     connect(&http_, SIGNAL(requestFinished(int, bool)), this, SLOT(httpReady(int, bool)));
 }
index 0a810dc..4660740 100644 (file)
@@ -65,6 +65,8 @@ public:
         QString id;
     };
 
+    static unsigned int const DEFAULT_MAX_RESULTS = 20;
+
     Eniro(Site site, QObject *parent = 0);
 
     ~Eniro();

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment