UpdatePackageFilter Class Reference

Filters UpdatePackage information basing on what is requested by the program. More...

#include <updatepackagefilter.h>

+ Inheritance diagram for UpdatePackageFilter:

Public Member Functions

QList< UpdatePackagefilter (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 >
 

Detailed Description

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:

  • Packages which are told to be ignored through setIgnoreRevisions() method. However if at least one package goes through the filters then this list is itself ignored. The ignore list by itself is designed to prevent nagging users for updates which they already discarded. But if an update for one of the package appears it's probable that it may require update for other packages as well due to incompatible interfaces between the main program and the plugins.
    TL;DR: If we update one of them, then we'll be only safe if we update all of them.
  • Packages which have the same revision number as the ones already installed are discarded. This is hardcoded into the class.

Definition at line 53 of file updatepackagefilter.h.

Member Function Documentation

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.

Returns
true if at least one package was discarded. false if no package was discarded.

Definition at line 223 of file updatepackagefilter.cpp.


The documentation for this class was generated from the following files: