23 #ifndef __WADSEEKERSITESTABLE_H__
24 #define __WADSEEKERSITESTABLE_H__
26 #include "gui/widgets/tablewidgetmouseaware.h"
35 static const int IDX_URL_COLUMN = 0;
36 static const int IDX_PROGRESS_COLUMN = 1;
37 static const int IDX_ABORT_COLUMN = 2;
39 static const int PROGRESS_COLUMN_WIDTH = 85;
43 void addUrl(
const QUrl &url);
44 void removeUrl(
const QUrl &url);
47 void addService(
const QString &service);
48 void removeService(
const QString &service);
49 void setUrlProgress(
const QUrl &url, qint64 current, qint64 total);
52 void serviceAbortRequested(
const QString &service);
53 void urlAbortRequested(
const QUrl &url);
56 void showEvent(QShowEvent *pEvent)
override;
62 bool bAlreadyShownOnce;
67 void addSite(
const QString &text, std::function<
void(
void)> onAbort);
68 int findRow(
const QString &text);
69 int findRow(
const QUrl &url);
72 void requestUrlAbort(
const QString &urlAsString);