|
libfuoten 0.8.1
Qt based library to access the ownCloud/Nextcloud News App API
|
#include <Fuoten/Models/ArticleListFilterModel>
Properties | |
| int | bodyLimit |
| Fuoten::FuotenEnums::Type | parentIdType |
| Properties inherited from BaseFilterModel | |
| double | doubleParentId |
| bool | hideRead |
| bool | inOperation |
| bool | loaded |
| qint64 | parentId |
| QString | search |
| Fuoten::FuotenEnums::SortingRole | sortingRole |
| Qt::SortOrder | sortOrder |
| Fuoten::AbstractStorage * | storage |
Public Member Functions | |
| ArticleListFilterModel (QObject *parent=nullptr) | |
| ~ArticleListFilterModel () override | |
| int | bodyLimit () const |
| bool | inOperation () const override |
| Q_INVOKABLE void | load (const QString &locale=QString()) override |
| bool | loaded () const override |
| qint64 | parentId () const override |
| FuotenEnums::Type | parentIdType () const |
| Q_INVOKABLE void | reload (const QString &locale=QString()) override |
| void | setBodyLimit (int nBodyLimit) |
| void | setParentId (qint64 nParentId) override |
| void | setParentIdType (FuotenEnums::Type nParentIdType) |
| void | setStorage (AbstractStorage *nStorage) override |
| AbstractStorage * | storage () 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 |
Signals | |
| void | bodyLimitChanged (int bodyLimit) |
| void | parentIdTypeChanged (FuotenEnums::Type parentIdType) |
| 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) |
Additional Inherited Members | |
| Protected Member Functions inherited from BaseFilterModel | |
| bool | find (const QString &str) const |
Proxy filter model for ArticleListModel.
This proxy model filters and sorts the data of a ArticleListModel that is internally created.
|
readwrite |
Limits the size of the body text in number of characters.
Values lower than 0 will return no body text, 0 will return the full body text, any other positive value will return a body stripped from HTML tags and limited to the amount of characters. Defaults to -1.
| int | bodyLimit() const |
| void | setBodyLimit(int nBodyLimit) |
| void | bodyLimitChanged(int bodyLimit) |
|
readwrite |
Defines the type of the parentId used in the underlying model.
Defaults to FuotenEnums::All
| FuotenEnums::Type | parentIdType() const |
| void | setParentIdType(FuotenEnums::Type nParentIdType) |
| void | parentIdTypeChanged(FuotenEnums::Type parentIdType) |
|
explicit |
Constructs a new ArticleListFilterModel object with the given parent.
|
override |
Destroys the ArticleListFilterModel object.
| int bodyLimit | ( | ) | const |
Getter function for the bodyLimit property.
|
signal |
This is emitted if the value of the bodyLimit property changes.
|
overridevirtual |
Returns true while the underlying ArticleListModel is loading.
Implements BaseFilterModel.
|
overridevirtual |
Loads the data in the underlying ArticleListModel.
Implements BaseFilterModel.
|
overridevirtual |
Returns true if the source model has initially loaded its data.
Implements BaseFilterModel.
|
overridevirtual |
Returns the parent ID that is currently set in the underlying ArticleListModel.
Implements BaseFilterModel.
| FuotenEnums::Type parentIdType | ( | ) | const |
Getter function for the parentIdType property.
|
signal |
This is emitted if the value of the parentIdType property changes.
|
overridevirtual |
Reloads the complete underlying ArticleListModel.
Implements BaseFilterModel.
| void setBodyLimit | ( | int | nBodyLimit | ) |
Setter function for the bodyLimit property. Emits the bodyLimitChanged() signal if nBodyLimit is not equal to the stored value.
|
overridevirtual |
Sets the parent ID in the underlying ArticleListModel.
| nParentId | ID of the parent folder, -1 (default) to show all feeds |
Implements BaseFilterModel.
| void setParentIdType | ( | FuotenEnums::Type | nParentIdType | ) |
Setter function for the parentIdType property. Emits the parentIdTypeChanged() signal if nParentIdType is not equal to the stored value.
|
overridevirtual |
Sets the pointer to a local storage object in the underlying ArticleListModel.
| nStorage | reimplemented local storage |
Implements BaseFilterModel.
|
overridevirtual |
Returns the pointer to the local storage handler set in the underlying ArticleListModel.
Implements BaseFilterModel.