Filters UpdatePackage information basing on what is requested by the program. More...
#include <updatepackagefilter.h>
Public Member Functions | |
QList< UpdatePackage > | filter (const QList< UpdatePackage > &packages) |
void | setIgnoreRevisions (const QMap< QString, QList< QString > > &packagesRevisions) |
bool | wasAnyUpdatePackageIgnored () const |
After filter() flag which says if any package was ignored. More... | |
Friends | |
class | PrivData< UpdatePackageFilter > |
Filters UpdatePackage information basing on what is requested by the program.
Firstly packages are filtered by specified channel name: setChannel(). All packages which do not fit this criteria are discarded.
Next these filters are applied:
Definition at line 53 of file updatepackagefilter.h.
bool UpdatePackageFilter::wasAnyUpdatePackageIgnored | ( | ) | const |
After filter() flag which says if any package was ignored.
This flag is set to correct value after a call to filter(). If true then at least one package was ignored due to being on setIgnoreRevisions() list.
Note that if package was on ignore list but the list itself was ignored because of other valid update packages which weren't on it then this will return false. This is consistent with the description of this class.
Definition at line 213 of file updatepackagefilter.cpp.