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

#include <Fuoten/Models/FeedListModel>

Inheritance diagram for FeedListModel:
AbstractFeedModel BaseModel

Public Member Functions

 FeedListModel (QObject *parent=nullptr)
 ~FeedListModel () override
Public Member Functions inherited from AbstractFeedModel
 AbstractFeedModel (QObject *parent=nullptr)
 ~AbstractFeedModel () override
QModelIndex findByID (qint64 id) const override
QHash< qint64, QModelIndex > findByIDs (const IdList &ids) const override
Public Member Functions inherited from BaseModel
 BaseModel (QObject *parent=nullptr)
 ~BaseModel () override
double doubleParentId () 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 AbstractFeedModel
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 AbstractFeedModel
void feedCreated (qint64 id, qint64 folderId)
void feedDeleted (qint64 id)
void feedMarkedRead (qint64 id, qint64 newestItemId)
void feedMoved (qint64 id, qint64 targetFolderId)
void feedRenamed (qint64 id, const QString &newName)
void feedsRequested (const Fuoten::IdList &updatedFeeds, const Fuoten::IdList &newFeeds, const Fuoten::IdList &deletedFeeds)
void folderDeleted (qint64 folderId)
void folderMarkedRead (qint64 folderId, qint64 newestItemId)
void itemMarked (qint64 itemId, bool unread)
void itemsMarked ()
void itemsRquested (const Fuoten::IdList &updatedItems, const Fuoten::IdList &newItems, const Fuoten::IdList &deletedItems)
Protected Member Functions inherited from AbstractFeedModel
void clear () override
QList< Feed * > feeds () 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 Feed objects.

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

Constructor & Destructor Documentation

◆ FeedListModel()

FeedListModel ( QObject * parent = nullptr)
explicit

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

◆ ~FeedListModel()

~FeedListModel ( )
override

Deconstructs the FeedListModel object.