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

Public Slots

void slotGetDir (CRemoteFileSystem *p, QVector< QSharedPointer< CRemoteFileSystem > > contents, bool bEnd)

Signals

void sigGetDir (CRemoteFileSystem *p)
void sigMakeDir (const QString &dir)
void sigRemoveDir (const QString &szPath)
void sigRemoveFile (const QString &szFile)
void sigRename (const QString &oldName, const QString &newName)

Public Member Functions

 CRemoteFileSystemModel (QObject *parent=nullptr, CRemoteFileSystem::TYPES filter=CRemoteFileSystem::TYPE::ALL)
QModelIndex SetRootPath (const QString &szPath)
CRemoteFileSystemGetRoot ()
CRemoteFileSystemGetRemoteFileSystemFromIndex (const QModelIndex &index) const
CRemoteFileSystem::TYPES GetFilter ()
void CreateDir (QModelIndex index, const QString &dir)
void RemoveDir (QModelIndex index)
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
QModelIndex index (CRemoteFileSystem *node, int column=0) const
QModelIndex index (const QString &szPath) const
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
QModelIndex parent (const QModelIndex &index) const override
int rowCount (const QModelIndex &parent=QModelIndex()) const override
int columnCount (const QModelIndex &parent=QModelIndex()) const override
virtual Qt::ItemFlags flags (const QModelIndex &index) const override
virtual bool setData (const QModelIndex &index, const QVariant &value, int role) override
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
virtual void fetchMore (const QModelIndex &parent) override
virtual bool canFetchMore (const QModelIndex &parent) const override

Private Member Functions

void DeleteRemoteFileSystem (CRemoteFileSystem *p)

Private Attributes

CRemoteFileSystemm_pRoot
CRemoteFileSystem::TYPES m_Filter
QList< CRemoteFileSystem * > m_GetFolder

Detailed Description

Definition at line 106 of file RemoteFileSystemModel.h.

Constructor & Destructor Documentation

◆ CRemoteFileSystemModel()

CRemoteFileSystemModel::CRemoteFileSystemModel ( QObject * parent = nullptr,
CRemoteFileSystem::TYPES filter = CRemoteFileSystem::TYPE::ALL )
explicit

Definition at line 327 of file RemoteFileSystemModel.cpp.

◆ ~CRemoteFileSystemModel()

CRemoteFileSystemModel::~CRemoteFileSystemModel ( )
virtual

Definition at line 334 of file RemoteFileSystemModel.cpp.

Member Function Documentation

◆ canFetchMore()

bool CRemoteFileSystemModel::canFetchMore ( const QModelIndex & parent) const
overridevirtual

Definition at line 517 of file RemoteFileSystemModel.cpp.

◆ columnCount()

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

Definition at line 410 of file RemoteFileSystemModel.cpp.

◆ CreateDir()

void CRemoteFileSystemModel::CreateDir ( QModelIndex index,
const QString & dir )

Definition at line 611 of file RemoteFileSystemModel.cpp.

◆ data()

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

Definition at line 416 of file RemoteFileSystemModel.cpp.

◆ DeleteRemoteFileSystem()

void CRemoteFileSystemModel::DeleteRemoteFileSystem ( CRemoteFileSystem * p)
private

Definition at line 341 of file RemoteFileSystemModel.cpp.

◆ fetchMore()

void CRemoteFileSystemModel::fetchMore ( const QModelIndex & parent)
overridevirtual

Definition at line 533 of file RemoteFileSystemModel.cpp.

◆ flags()

Qt::ItemFlags CRemoteFileSystemModel::flags ( const QModelIndex & index) const
overridevirtual

Definition at line 688 of file RemoteFileSystemModel.cpp.

◆ GetFilter()

CRemoteFileSystem::TYPES CRemoteFileSystemModel::GetFilter ( )
nodiscard

Definition at line 382 of file RemoteFileSystemModel.cpp.

◆ GetRemoteFileSystemFromIndex()

CRemoteFileSystem * CRemoteFileSystemModel::GetRemoteFileSystemFromIndex ( const QModelIndex & index) const
nodiscard

Definition at line 375 of file RemoteFileSystemModel.cpp.

◆ GetRoot()

CRemoteFileSystem * CRemoteFileSystemModel::GetRoot ( )
nodiscard

Definition at line 370 of file RemoteFileSystemModel.cpp.

◆ headerData()

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

Definition at line 387 of file RemoteFileSystemModel.cpp.

◆ index() [1/3]

QModelIndex CRemoteFileSystemModel::index ( const QString & szPath) const
nodiscard

Definition at line 439 of file RemoteFileSystemModel.cpp.

◆ index() [2/3]

QModelIndex CRemoteFileSystemModel::index ( CRemoteFileSystem * node,
int column = 0 ) const
nodiscard

Definition at line 470 of file RemoteFileSystemModel.cpp.

◆ index() [3/3]

QModelIndex CRemoteFileSystemModel::index ( int row,
int column,
const QModelIndex & parent = QModelIndex() ) const
override

Definition at line 485 of file RemoteFileSystemModel.cpp.

◆ parent()

QModelIndex CRemoteFileSystemModel::parent ( const QModelIndex & index) const
override

Definition at line 503 of file RemoteFileSystemModel.cpp.

◆ RemoveDir()

void CRemoteFileSystemModel::RemoveDir ( QModelIndex index)

Definition at line 628 of file RemoteFileSystemModel.cpp.

◆ rowCount()

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

Definition at line 399 of file RemoteFileSystemModel.cpp.

◆ setData()

bool CRemoteFileSystemModel::setData ( const QModelIndex & index,
const QVariant & value,
int role )
overridevirtual

Definition at line 656 of file RemoteFileSystemModel.cpp.

◆ SetRootPath()

QModelIndex CRemoteFileSystemModel::SetRootPath ( const QString & szPath)

Definition at line 352 of file RemoteFileSystemModel.cpp.

◆ slotGetDir

void CRemoteFileSystemModel::slotGetDir ( CRemoteFileSystem * p,
QVector< QSharedPointer< CRemoteFileSystem > > contents,
bool bEnd )
slot

Definition at line 563 of file RemoteFileSystemModel.cpp.

Member Data Documentation

◆ m_Filter

CRemoteFileSystem::TYPES CRemoteFileSystemModel::m_Filter
private

Definition at line 156 of file RemoteFileSystemModel.h.

◆ m_GetFolder

QList<CRemoteFileSystem*> CRemoteFileSystemModel::m_GetFolder
private

Definition at line 157 of file RemoteFileSystemModel.h.

◆ m_pRoot

CRemoteFileSystem* CRemoteFileSystemModel::m_pRoot
private

Definition at line 155 of file RemoteFileSystemModel.h.


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