qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Signals | Public Member Functions | Private Attributes | List of all members
FileTransferList::Model Class Reference

#include <filesform.h>

Inheritance diagram for FileTransferList::Model:
Inheritance graph
Collaboration diagram for FileTransferList::Model:
Collaboration graph

Signals

void togglePause (ToxFile file)
 
void cancel (ToxFile file)
 

Public Member Functions

 Model (QObject *parent=nullptr)
 
 ~Model ()=default
 
void onFileUpdated (const ToxFile &file)
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 

Private Attributes

QHash< QByteArray, int > idToRow
 
std::vector< ToxFilefiles
 

Detailed Description

Definition at line 64 of file filesform.h.

Constructor & Destructor Documentation

◆ Model()

FileTransferList::Model::Model ( QObject *  parent = nullptr)

Definition at line 169 of file filesform.cpp.

◆ ~Model()

FileTransferList::Model::~Model ( )
default

Member Function Documentation

◆ cancel

void FileTransferList::Model::cancel ( ToxFile  file)
signal
Here is the caller graph for this function:

◆ columnCount()

int FileTransferList::Model::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 240 of file filesform.cpp.

Here is the caller graph for this function:

◆ data()

QVariant FileTransferList::Model::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

Definition at line 245 of file filesform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ headerData()

QVariant FileTransferList::Model::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

Definition at line 173 of file filesform.cpp.

Here is the call graph for this function:

◆ onFileUpdated()

void FileTransferList::Model::onFileUpdated ( const ToxFile file)

Definition at line 187 of file filesform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rowCount()

int FileTransferList::Model::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 235 of file filesform.cpp.

◆ setData()

bool FileTransferList::Model::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override

Definition at line 294 of file filesform.cpp.

Here is the call graph for this function:

◆ togglePause

void FileTransferList::Model::togglePause ( ToxFile  file)
signal
Here is the caller graph for this function:

Member Data Documentation

◆ files

std::vector<ToxFile> FileTransferList::Model::files
private

Definition at line 85 of file filesform.h.

◆ idToRow

QHash<QByteArray , int > FileTransferList::Model::idToRow
private

Definition at line 84 of file filesform.h.


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