ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Slots | Public Member Functions | List of all members
DownloadModel Class Reference

#include <downloadmodel.h>

Inheritance diagram for DownloadModel:
Inheritance graph
[legend]
Collaboration diagram for DownloadModel:
Collaboration graph
[legend]

Public Types

enum  TransferHandlerType { ServersModel, TechSpec, None }
 

Public Slots

void enqueue (File *f)
 
void enqueue (QList< File * > list)
 
void clear ()
 
void fileChanged (File *file)
 
void fileDownloaded (File *file)
 
void stop ()
 
void resume ()
 

Public Member Functions

 DownloadModel (TransferHandler *handler, QObject *parent=0)
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
QModelIndex parent (const QModelIndex &index) const
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
QList< File * > files ()
 
bool isEmpty () const
 
bool isDownloading () const
 

Member Enumeration Documentation

Enumerator
ServersModel 
TechSpec 
None 

Constructor & Destructor Documentation

DownloadModel::DownloadModel ( TransferHandler handler,
QObject *  parent = 0 
)
explicit

Member Function Documentation

void DownloadModel::clear ( )
slot
int DownloadModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
QVariant DownloadModel::data ( const QModelIndex &  index,
int  role 
) const
void DownloadModel::enqueue ( File f)
slot
void DownloadModel::enqueue ( QList< File * >  list)
slot
void DownloadModel::fileChanged ( File file)
slot
void DownloadModel::fileDownloaded ( File file)
slot
QList< File * > DownloadModel::files ( )
QVariant DownloadModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
QModelIndex DownloadModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
bool DownloadModel::isDownloading ( ) const
bool DownloadModel::isEmpty ( ) const
QModelIndex DownloadModel::parent ( const QModelIndex &  index) const
void DownloadModel::resume ( )
slot
int DownloadModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
void DownloadModel::stop ( )
slot

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