玉兔远程控制 0.1.0-bate11
载入中...
搜索中...
未找到
CListFileModel类 参考
类 CListFileModel 继承关系图:
CListFileModel 的协作图:

Public 成员函数

 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 属性

QList< QSharedPointer< CFileTransfer > > m_lstFile

详细描述

在文件 ListFileModel.h117 行定义.

构造及析构函数说明

◆ CListFileModel()

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

在文件 ListFileModel.cpp292 行定义.

成员函数说明

◆ AddFileTransfer()

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

在文件 ListFileModel.cpp347 行定义.

◆ columnCount()

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

在文件 ListFileModel.cpp321 行定义.

◆ data()

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

在文件 ListFileModel.cpp330 行定义.

◆ GetFileTransfer()

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

在文件 ListFileModel.cpp389 行定义.

◆ headerData()

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

在文件 ListFileModel.cpp297 行定义.

◆ Load()

int CListFileModel::Load ( QSettings & set)
virtual

在文件 ListFileModel.cpp425 行定义.

◆ RemoveFileTransfer() [1/2]

int CListFileModel::RemoveFileTransfer ( int id)

在文件 ListFileModel.cpp358 行定义.

◆ RemoveFileTransfer() [2/2]

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

在文件 ListFileModel.cpp375 行定义.

◆ removeRows()

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

在文件 ListFileModel.cpp399 行定义.

◆ rowCount()

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

在文件 ListFileModel.cpp313 行定义.

◆ Save()

int CListFileModel::Save ( QSettings & set)
virtual

在文件 ListFileModel.cpp455 行定义.

◆ UpdateFileTransfer()

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

在文件 ListFileModel.cpp413 行定义.

类成员变量说明

◆ m_lstFile

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

在文件 ListFileModel.h144 行定义.


该类的文档由以下文件生成: