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

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 103 of file RemoteFileSystemModel.h.

Constructor & Destructor Documentation

◆ CRemoteFileSystemModel()

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

Definition at line 308 of file RemoteFileSystemModel.cpp.

◆ ~CRemoteFileSystemModel()

CRemoteFileSystemModel::~CRemoteFileSystemModel ( )
virtual

Definition at line 315 of file RemoteFileSystemModel.cpp.

Member Function Documentation

◆ canFetchMore()

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

Definition at line 498 of file RemoteFileSystemModel.cpp.

◆ columnCount()

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

Definition at line 391 of file RemoteFileSystemModel.cpp.

◆ CreateDir()

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

Definition at line 592 of file RemoteFileSystemModel.cpp.

◆ data()

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

Definition at line 403 of file RemoteFileSystemModel.cpp.

◆ DeleteRemoteFileSystem()

void CRemoteFileSystemModel::DeleteRemoteFileSystem ( CRemoteFileSystem p)
private

Definition at line 322 of file RemoteFileSystemModel.cpp.

◆ fetchMore()

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

Definition at line 520 of file RemoteFileSystemModel.cpp.

◆ flags()

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

Definition at line 657 of file RemoteFileSystemModel.cpp.

◆ GetFilter()

CRemoteFileSystem::TYPES CRemoteFileSystemModel::GetFilter ( )

Definition at line 362 of file RemoteFileSystemModel.cpp.

◆ GetRemoteFileSystemFromIndex()

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

Definition at line 355 of file RemoteFileSystemModel.cpp.

◆ GetRoot()

CRemoteFileSystem * CRemoteFileSystemModel::GetRoot ( )

Definition at line 350 of file RemoteFileSystemModel.cpp.

◆ headerData()

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

Definition at line 367 of file RemoteFileSystemModel.cpp.

◆ index() [1/3]

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

Definition at line 429 of file RemoteFileSystemModel.cpp.

◆ index() [2/3]

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

Definition at line 458 of file RemoteFileSystemModel.cpp.

◆ index() [3/3]

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

Definition at line 467 of file RemoteFileSystemModel.cpp.

◆ parent()

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

Definition at line 484 of file RemoteFileSystemModel.cpp.

◆ RemoveDir()

void CRemoteFileSystemModel::RemoveDir ( QModelIndex  index)

Definition at line 610 of file RemoteFileSystemModel.cpp.

◆ rowCount()

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

Definition at line 379 of file RemoteFileSystemModel.cpp.

◆ setData()

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

Definition at line 633 of file RemoteFileSystemModel.cpp.

◆ SetRootPath()

QModelIndex CRemoteFileSystemModel::SetRootPath ( const QString &  szPath)

Definition at line 333 of file RemoteFileSystemModel.cpp.

◆ slotGetDir

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

Definition at line 550 of file RemoteFileSystemModel.cpp.

Member Data Documentation

◆ m_Filter

CRemoteFileSystem::TYPES CRemoteFileSystemModel::m_Filter
private

Definition at line 153 of file RemoteFileSystemModel.h.

◆ m_GetFolder

QList<CRemoteFileSystem*> CRemoteFileSystemModel::m_GetFolder
private

Definition at line 154 of file RemoteFileSystemModel.h.

◆ m_pRoot

CRemoteFileSystem* CRemoteFileSystemModel::m_pRoot
private

Definition at line 152 of file RemoteFileSystemModel.h.


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