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

#include <Fuoten/Models/FolderListModel>

Inheritance diagram for FolderListModel:
AbstractFolderModel BaseModel

Public Member Functions

 FolderListModel (QObject *parent=nullptr)
 ~FolderListModel () override
Public Member Functions inherited from AbstractFolderModel
 AbstractFolderModel (QObject *parent=nullptr)
 ~AbstractFolderModel () override
QModelIndex findByID (qint64 id) const override
Public Member Functions inherited from BaseModel
 BaseModel (QObject *parent=nullptr)
 ~BaseModel () override
double doubleParentId () const
virtual QHash< qint64, QModelIndex > findByIDs (const IdList &ids) const
bool inOperation () const
int limit () const
bool loaded () const
qint64 parentId () const
void setDoubleParentId (double nDoubleParentId)
void setLimit (int nLimit)
void setParentId (qint64 nParentId)
void setSortingRole (FuotenEnums::SortingRole nSortingRole)
void setSortOrder (Qt::SortOrder nSortOrder)
void setStorage (AbstractStorage *nStorage)
void setUnreadOnly (bool nUnreadOnly)
FuotenEnums::SortingRole sortingRole () const
Qt::SortOrder sortOrder () const
AbstractStoragestorage () const
bool unreadOnly () const

Additional Inherited Members

Properties inherited from BaseModel
double doubleParentId
bool inOperation
int limit
bool loaded
qint64 parentId
Fuoten::FuotenEnums::SortingRole sortingRole
Qt::SortOrder sortOrder
Fuoten::AbstractStoragestorage
bool unreadOnly
Public Slots inherited from AbstractFolderModel
void load () override
Public Slots inherited from BaseModel
virtual void load ()=0
virtual void reload ()
Signals inherited from BaseModel
void doubleParentIdChanged (double doubleParentId)
void inOperationChanged (bool inOperation)
void limitChanged (int limit)
void loadedChanged (bool loaded)
void parentIdChanged (qint64 parentId)
void sortingRoleChanged (FuotenEnums::SortingRole sortingRole)
void sortOrderChanged (Qt::SortOrder sortOrder)
void storageChanged (Fuoten::AbstractStorage *storage)
void unreadOnlyChanged (bool unreadOnly)
Protected Slots inherited from AbstractFolderModel
void feedCreated (qint64 feedId, qint64 folderId)
void feedMarkedRead (qint64 id)
void feedsRequested (const Fuoten::IdList &updatedFeeds, const Fuoten::IdList &newFeeds, const Fuoten::IdList &deletedFeeds)
void folderCreated (qint64 id, const QString &name)
void folderDeleted (qint64 id)
void folderMarkedRead (qint64 id, qint64 newestItem)
void folderRenamed (qint64 id, const QString &newName)
void foldersRequested (const QList< QPair< qint64, QString > > &updatedFolders, const QList< QPair< qint64, QString > > &newFolders, const Fuoten::IdList &deletedFolders)
void itemMarked (qint64 itemId, bool unread)
void updateCountValues ()
Protected Member Functions inherited from AbstractFolderModel
void clear () override
QList< Folder * > folders () const
void handleStorageChanged (AbstractStorage *old) override
Protected Member Functions inherited from BaseModel
void setInOperation (bool nInOperation)
void setLoaded (bool loaded)

Detailed Description

List model containing Folder objects.

List model with one column that contains a pointer to a Folder object. The Qt::DisplayRole (display in QML) returns the pointer. To use this model, you need an AbstractStorage that has to be set to the BaseModel::storage property.

Constructor & Destructor Documentation

◆ FolderListModel()

FolderListModel ( QObject * parent = nullptr)
explicit

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

◆ ~FolderListModel()

~FolderListModel ( )
override

Deconstructs the FeedListModel object.