Rabbit Remote Control 0.1.0-de
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
CListFileModel Class Reference
Inheritance diagram for CListFileModel:
Inheritance graph
[legend]
Collaboration diagram for CListFileModel:
Collaboration graph
[legend]

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 293 of file ListFileModel.cpp.

Member Function Documentation

◆ AddFileTransfer()

QModelIndex CListFileModel::AddFileTransfer ( QSharedPointer< CFileTransfer f)

Definition at line 348 of file ListFileModel.cpp.

◆ columnCount()

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

Definition at line 322 of file ListFileModel.cpp.

◆ data()

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

Definition at line 331 of file ListFileModel.cpp.

◆ GetFileTransfer()

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

Definition at line 390 of file ListFileModel.cpp.

◆ headerData()

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

Definition at line 298 of file ListFileModel.cpp.

◆ Load()

int CListFileModel::Load ( QSettings &  set)
virtual

Definition at line 420 of file ListFileModel.cpp.

◆ RemoveFileTransfer() [1/2]

int CListFileModel::RemoveFileTransfer ( int  id)

Definition at line 359 of file ListFileModel.cpp.

◆ RemoveFileTransfer() [2/2]

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

Definition at line 376 of file ListFileModel.cpp.

◆ removeRows()

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

Definition at line 400 of file ListFileModel.cpp.

◆ rowCount()

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

Definition at line 314 of file ListFileModel.cpp.

◆ Save()

int CListFileModel::Save ( QSettings &  set)
virtual

Definition at line 450 of file ListFileModel.cpp.

◆ UpdateFileTransfer()

void CListFileModel::UpdateFileTransfer ( QSharedPointer< CFileTransfer f)

Definition at line 408 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: