Rabbit Remote Control 0.1.0-bate14
Loading...
Searching...
No Matches
CListFileModel Class Reference
Inheritance diagram for CListFileModel:
Collaboration diagram for CListFileModel:

Public Member Functions

 CListFileModel (QObject *parent=nullptr)
virtual int Load (QSettings &set)
virtual int Save (QSettings &set)
QModelIndex AddFileTransfer (QSharedPointer< CFileTransfer > f)
int RemoveFileTransfer (int id)
int RemoveFileTransfer (QList< int > ids)
QSharedPointer< CFileTransferGetFileTransfer (const QModelIndex &index)
void UpdateFileTransfer (QSharedPointer< CFileTransfer > f)
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
virtual bool removeRows (int row, int count, const QModelIndex &parent) override

Private Attributes

QList< QSharedPointer< CFileTransfer > > m_lstFile

Detailed Description

Definition at line 117 of file ListFileModel.h.

Constructor & Destructor Documentation

◆ CListFileModel()

CListFileModel::CListFileModel ( QObject * parent = nullptr)
explicit

Definition at line 292 of file ListFileModel.cpp.

Member Function Documentation

◆ AddFileTransfer()

QModelIndex CListFileModel::AddFileTransfer ( QSharedPointer< CFileTransfer > f)

Definition at line 347 of file ListFileModel.cpp.

◆ columnCount()

int CListFileModel::columnCount ( const QModelIndex & parent = QModelIndex()) const
override

Definition at line 321 of file ListFileModel.cpp.

◆ data()

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

Definition at line 330 of file ListFileModel.cpp.

◆ GetFileTransfer()

QSharedPointer< CFileTransfer > CListFileModel::GetFileTransfer ( const QModelIndex & index)

Definition at line 389 of file ListFileModel.cpp.

◆ headerData()

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

Definition at line 297 of file ListFileModel.cpp.

◆ Load()

int CListFileModel::Load ( QSettings & set)
virtual

Definition at line 425 of file ListFileModel.cpp.

◆ RemoveFileTransfer() [1/2]

int CListFileModel::RemoveFileTransfer ( int id)

Definition at line 358 of file ListFileModel.cpp.

◆ RemoveFileTransfer() [2/2]

int CListFileModel::RemoveFileTransfer ( QList< int > ids)

Definition at line 375 of file ListFileModel.cpp.

◆ removeRows()

bool CListFileModel::removeRows ( int row,
int count,
const QModelIndex & parent )
overridevirtual

Definition at line 399 of file ListFileModel.cpp.

◆ rowCount()

int CListFileModel::rowCount ( const QModelIndex & parent = QModelIndex()) const
override

Definition at line 313 of file ListFileModel.cpp.

◆ Save()

int CListFileModel::Save ( QSettings & set)
virtual

Definition at line 455 of file ListFileModel.cpp.

◆ UpdateFileTransfer()

void CListFileModel::UpdateFileTransfer ( QSharedPointer< CFileTransfer > f)

Definition at line 413 of file ListFileModel.cpp.

Member Data Documentation

◆ m_lstFile

QList<QSharedPointer<CFileTransfer> > CListFileModel::m_lstFile
private

Definition at line 144 of file ListFileModel.h.


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