玉兔远程控制 0.1.0-alpha.2
载入中...
搜索中...
未找到
Public 成员函数 | Private 属性 | 所有成员列表
CListFileModel类 参考
类 CListFileModel 继承关系图:
Inheritance graph
[图例]
CListFileModel 的协作图:
Collaboration graph
[图例]

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.cpp293 行定义.

成员函数说明

◆ AddFileTransfer()

QModelIndex CListFileModel::AddFileTransfer ( QSharedPointer< CFileTransfer f)

在文件 ListFileModel.cpp348 行定义.

◆ columnCount()

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

在文件 ListFileModel.cpp322 行定义.

◆ data()

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

在文件 ListFileModel.cpp331 行定义.

◆ GetFileTransfer()

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

在文件 ListFileModel.cpp390 行定义.

◆ headerData()

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

在文件 ListFileModel.cpp298 行定义.

◆ Load()

int CListFileModel::Load ( QSettings &  set)
virtual

在文件 ListFileModel.cpp420 行定义.

◆ RemoveFileTransfer() [1/2]

int CListFileModel::RemoveFileTransfer ( int  id)

在文件 ListFileModel.cpp359 行定义.

◆ RemoveFileTransfer() [2/2]

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

在文件 ListFileModel.cpp376 行定义.

◆ removeRows()

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

在文件 ListFileModel.cpp400 行定义.

◆ rowCount()

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

在文件 ListFileModel.cpp314 行定义.

◆ Save()

int CListFileModel::Save ( QSettings &  set)
virtual

在文件 ListFileModel.cpp450 行定义.

◆ UpdateFileTransfer()

void CListFileModel::UpdateFileTransfer ( QSharedPointer< CFileTransfer f)

在文件 ListFileModel.cpp408 行定义.

类成员变量说明

◆ m_lstFile

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

在文件 ListFileModel.h144 行定义.


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