libfuoten 0.8.1
Qt based library to access the ownCloud/Nextcloud News App API
Loading...
Searching...
No Matches
FolderListFilterModel Class Reference

#include <Fuoten/Models/FolderListFilterModel>

Inheritance diagram for FolderListFilterModel:
BaseFilterModel

Public Member Functions

 FolderListFilterModel (QObject *parent=nullptr)
 ~FolderListFilterModel () override
bool inOperation () const override
Q_INVOKABLE void load (const QString &locale=QString()) override
bool loaded () const override
qint64 parentId () const override
Q_INVOKABLE void reload (const QString &locale=QString()) override
void setParentId (qint64 nParentId) override
void setStorage (AbstractStorage *nStorage) override
AbstractStoragestorage () const override
Public Member Functions inherited from BaseFilterModel
 BaseFilterModel (QObject *parent=nullptr)
 ~BaseFilterModel () override
double doubleParentId () const
bool hideRead () const
QString search () const
void setDoubleParentId (double nDoubleParentId)
void setHideRead (bool nHideRead)
void setSearch (const QString &nSearch)
virtual void setSortingRole (FuotenEnums::SortingRole nSortingRole)
virtual void setSortOrder (Qt::SortOrder nSortOrder)
virtual FuotenEnums::SortingRole sortingRole () const
virtual Qt::SortOrder sortOrder () const

Additional Inherited Members

Properties inherited from BaseFilterModel
double doubleParentId
bool hideRead
bool inOperation
bool loaded
qint64 parentId
QString search
Fuoten::FuotenEnums::SortingRole sortingRole
Qt::SortOrder sortOrder
Fuoten::AbstractStoragestorage
Signals inherited from BaseFilterModel
void doubleParentIdChanged (double doubleParentId)
void hideReadChanged (bool hideRead)
void inOperationChanged (bool inOperation)
void loadedChanged (bool loaded)
void parentIdChanged (qint64 parentId)
void searchChanged (const QString &search)
void sortingRoleChanged (FuotenEnums::SortingRole sortingRole)
void sortOrderChanged (Qt::SortOrder sortOrder)
void storageChanged (Fuoten::AbstractStorage *storage)
Protected Member Functions inherited from BaseFilterModel
bool find (const QString &str) const

Detailed Description

Proxy filter model for FolderListModel.

This proxy model filters and sorts the data of a FolderListModel that is internally created.

Constructor & Destructor Documentation

◆ FolderListFilterModel()

FolderListFilterModel ( QObject * parent = nullptr)
explicit

Constructs a new folder list filter model with the given parent.

◆ ~FolderListFilterModel()

~FolderListFilterModel ( )
override

Deconstructs the FeedListModel object.

Member Function Documentation

◆ inOperation()

bool inOperation ( ) const
overridevirtual

Returns true while the underlying FolderListModel is loading.

Implements BaseFilterModel.

◆ load()

void load ( const QString & locale = QString())
overridevirtual

Loads the data in the underlying FolderListModel.

Implements BaseFilterModel.

◆ loaded()

bool loaded ( ) const
overridevirtual

Returns true if the source model has initially loaded its data.

Implements BaseFilterModel.

◆ parentId()

qint64 parentId ( ) const
overridevirtual

Returns the parent ID that is currently set in the underlying FolderListModel.

Implements BaseFilterModel.

◆ reload()

void reload ( const QString & locale = QString())
overridevirtual

Reloads the complete underlying FolderListModel.

Implements BaseFilterModel.

◆ setParentId()

void setParentId ( qint64 nParentId)
overridevirtual

Sets the parent ID in the underlying FolderListModel.

Implements BaseFilterModel.

◆ setStorage()

void setStorage ( AbstractStorage * nStorage)
overridevirtual

Sets the pointer to a local storage object in the underlying FolderListModel.

Implements BaseFilterModel.

◆ storage()

AbstractStorage * storage ( ) const
overridevirtual

Returns the pointer to the local storage handler set in the underlying FolderListModel.

Implements BaseFilterModel.