WadseekerWadsTable Class Reference
+ Inheritance diagram for WadseekerWadsTable:

Classes

class  ContextMenu
 

Public Slots

void setFileDownloadFinished (const QString &filename)
 
void setFileFailed (const QString &filename)
 
void setFileProgress (const QString &filename, qint64 current, qint64 total)
 
void setFileSuccessful (const QString &filename)
 
void setFileUrl (const QString &filename, const QUrl &url)
 Fired when new URL starts for specified file. More...
 

Public Member Functions

 WadseekerWadsTable (QWidget *pParent=NULL)
 
void addFile (const QString &filename)
 
ContextMenucontextMenu (const QModelIndex &index, const QPoint &cursorPosition)
 
qint64 expectedDataSize (int row) const
 Total size of data in bytes for specified row. More...
 
QString fileNameAtRow (int row) const
 
double totalDonePercentage () const
 Total done percentage calculated basing on the data set by siteFileProgress(). More...
 
- Public Member Functions inherited from TableWidgetMouseAware
 TableWidgetMouseAware (QWidget *parent=NULL)
 
bool isEmitSignalsEvenIfIndexIsInvalidEnabled () const
 
QList< int > selectedRows () const
 Returns indices of currently selected rows. More...
 
void setEmitSignalsEvenIfIndexIsInvalid (bool b)
 

Static Public Attributes

static const int IDX_ETA_COLUMN = 4
 
static const int IDX_NAME_COLUMN = 0
 
static const int IDX_PROGRESS_COLUMN = 2
 
static const int IDX_SIZE_COLUMN = 5
 
static const int IDX_SPEED_COLUMN = 3
 
static const int IDX_URL_COLUMN = 1
 

Protected Member Functions

void showEvent (QShowEvent *pEvent)
 
- Protected Member Functions inherited from TableWidgetMouseAware
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 

Additional Inherited Members

- Signals inherited from TableWidgetMouseAware
void leftMouseDoubleClicked (const QModelIndex &index, const QPoint &cursorPosition)
 
void middleMouseClick (const QModelIndex &index, const QPoint &cursorPosition)
 
void rightMouseClick (const QModelIndex &index, const QPoint &cursorPosition)
 

Detailed Description

Definition at line 34 of file wadseekerwadstable.h.

Member Function Documentation

qint64 WadseekerWadsTable::expectedDataSize ( int  row) const

Total size of data in bytes for specified row.

Returns
Amount of bytes if successful, negative value if row is invalid.

Definition at line 93 of file wadseekerwadstable.cpp.

void WadseekerWadsTable::setFileUrl ( const QString &  filename,
const QUrl &  url 
)
slot

Fired when new URL starts for specified file.

Definition at line 206 of file wadseekerwadstable.cpp.

double WadseekerWadsTable::totalDonePercentage ( ) const

Total done percentage calculated basing on the data set by siteFileProgress().

Returns
A value between 0.0 and 100.0. If percentage cannot be calculated a negative value is returned.

Definition at line 247 of file wadseekerwadstable.cpp.


The documentation for this class was generated from the following files: