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;
58 static const int PROGRESS_COLUMN_WIDTH = 85;
63 void addFile(
const QString &filename);
65 ContextMenu *contextMenu(
const QModelIndex &index,
const QPoint &cursorPosition);
75 QString fileNameAtRow(
int row)
const;
87 void setFileDownloadFinished(
const ModFile &filename);
88 void setFileFailed(
const ModFile &filename);
89 void setFileProgress(
const ModFile &filename, qint64 current, qint64 total);
90 void setFileSuccessful(
const ModFile &filename);
95 void setFileUrl(
const ModFile &filename,
const QUrl &url);
98 void showEvent(QShowEvent *pEvent)
override;
104 bool bAlreadyShownOnce;
113 QMap<QString, SpeedCalculator *> speedCalculators;
114 QElapsedTimer updateClock;
117 static const int UPDATE_INTERVAL_MS = 1000;
121 int findFileRow(
const QString &filename);
122 void updateDataInfoValues(
bool bForce);