23 #ifndef __WADSEEKERWADSTABLE_H__ 24 #define __WADSEEKERWADSTABLE_H__ 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;
115 static const int UPDATE_INTERVAL_MS = 1000;
119 int findFileRow(
const QString &filename);
120 void updateDataInfoValues(
bool bForce);
qint64 expectedDataSize(int row) const
Total size of data in bytes for specified row.
void setFileUrl(const ModFile &filename, const QUrl &url)
Fired when new URL starts for specified file.
double totalDonePercentage() const
Total done percentage calculated basing on the data set by siteFileProgress().