23 #ifndef __WADSEEKERWADSTABLE_H__
24 #define __WADSEEKERWADSTABLE_H__
26 #include <QElapsedTimer>
30 #include "gui/widgets/tablewidgetmouseaware.h"
45 QAction *actionSkipCurrentSite;
51 static const int IDX_NAME_COLUMN = 0;
52 static const int IDX_URL_COLUMN = 1;
53 static const int IDX_PROGRESS_COLUMN = 2;
54 static const int IDX_SPEED_COLUMN = 3;
55 static const int IDX_ETA_COLUMN = 4;
56 static const int IDX_SIZE_COLUMN = 5;
61 void addFile(
const QString &filename);
63 ContextMenu *contextMenu(
const QModelIndex &index,
const QPoint &cursorPosition);
73 QString fileNameAtRow(
int row)
const;
85 void setFileDownloadFinished(
const ModFile &filename);
86 void setFileFailed(
const ModFile &filename);
87 void setFileProgress(
const ModFile &filename, qint64 current, qint64 total);
88 void setFileSuccessful(
const ModFile &filename);
93 void setFileUrl(
const ModFile &filename,
const QUrl &url);
96 void showEvent(QShowEvent *pEvent)
override;
102 bool bAlreadyShownOnce;
111 QMap<QString, SpeedCalculator *> speedCalculators;
112 QElapsedTimer updateClock;
115 static const int UPDATE_INTERVAL_MS = 1000;
119 int findFileRow(
const QString &filename);
120 void updateDataInfoValues(
bool bForce);