23 #ifndef __WADSEEKERWADSTABLE_H__
24 #define __WADSEEKERWADSTABLE_H__
30 #include "gui/widgets/tablewidgetmouseaware.h"
44 QAction* actionSkipCurrentSite;
50 static const int IDX_NAME_COLUMN = 0;
51 static const int IDX_URL_COLUMN = 1;
52 static const int IDX_PROGRESS_COLUMN = 2;
53 static const int IDX_SPEED_COLUMN = 3;
54 static const int IDX_ETA_COLUMN = 4;
55 static const int IDX_SIZE_COLUMN = 5;
60 void addFile(
const QString& filename);
62 ContextMenu* contextMenu(
const QModelIndex& index,
const QPoint& cursorPosition);
72 QString fileNameAtRow(
int row)
const;
84 void setFileDownloadFinished(
const QString& filename);
85 void setFileFailed(
const QString& filename);
86 void setFileProgress(
const QString& filename, qint64 current, qint64 total);
87 void setFileSuccessful(
const QString& filename);
92 void setFileUrl(
const QString& filename,
const QUrl& url);
95 void showEvent(QShowEvent* pEvent);
101 bool bAlreadyShownOnce;
110 QMap<QString, SpeedCalculator* > speedCalculators;
114 static const int UPDATE_INTERVAL_MS = 1000;
118 int findFileRow(
const QString& filename);
119 void updateDataInfoValues(
bool bForce);
void setFileUrl(const QString &filename, const QUrl &url)
Fired when new URL starts for specified file.
qint64 expectedDataSize(int row) const
Total size of data in bytes for specified row.
double totalDonePercentage() const
Total done percentage calculated basing on the data set by siteFileProgress().