projects
/
jenirok
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed search to retry automatically couple of times before failing.
[jenirok]
/
src
/
gui
/
resultwindow.h
diff --git
a/src/gui/resultwindow.h
b/src/gui/resultwindow.h
index
3391f7d
..
dde6501
100644
(file)
--- a/
src/gui/resultwindow.h
+++ b/
src/gui/resultwindow.h
@@
-35,7
+35,8
@@
public:
ResultWindow(QWidget* parent = 0);
~ResultWindow();
static const int REQUEST_TIMEOUT = 30000;
ResultWindow(QWidget* parent = 0);
~ResultWindow();
static const int REQUEST_TIMEOUT = 30000;
- static const int SEARCH_INTERVAL = 2000;
+ static const int SEARCH_INTERVAL = 1000;
+ static const int RETRIES = 2;
signals:
void itemSelected(Source::Result const& result);
signals:
void itemSelected(Source::Result const& result);
@@
-59,6
+60,8
@@
private:
ConnectionManager* connectionManager_;
int timer_;
bool searching_;
ConnectionManager* connectionManager_;
int timer_;
bool searching_;
+ int retries_;
+ Source::SearchDetails currentSearch_;
};
};