#include <PMManager.h>
Inheritance diagram for PMManager:

Public Types | |
| typedef std::set< PMSelectablePtr > | PMSelectableVec |
Public Member Functions | |
| virtual void | SaveState () |
| virtual bool | RestoreState () |
| virtual bool | DiffState () const |
| virtual void | ClearSaveState () |
| PMManager () | |
| virtual | ~PMManager () |
| void | poolSetInstalled (PMObjectContainerIter iter_r) |
| void | poolAddCandidates (PMObjectContainerIter iter_r) |
| void | poolRemoveCandidates (PMObjectContainerIter iter_r) |
| void | poolSortCandidates () |
| unsigned | size () const |
| bool | empty () const |
| PMSelectableVec::const_iterator | begin () const |
| PMSelectableVec::const_iterator | end () const |
| PMSelectableVec::const_reverse_iterator | rbegin () const |
| PMSelectableVec::const_reverse_iterator | rend () const |
| PMSelectablePtr | getItem (const std::string &name_t) const |
| PMSelectablePtr | operator[] (const std::string &name_r) const |
| void | setNothingSelected () |
| bool | anyMatch (PMSelectable::Test_method fnc_r) const |
| bool | anyMatch (PMSelectable::Test_fnc fnc_r) const |
| bool | anythingByUser () const |
| bool | anythingToDelete () const |
| bool | anythingToInstall () const |
| bool | solveInstall (PkgDep::ResultList &good, PkgDep::ErrorResultList &bad, bool filter_conflicts_with_installed=false) |
| bool | solveConsistent (PkgDep::ErrorResultList &bad) |
| virtual void | writeSettings () |
| virtual void | readSettings () |
Protected Member Functions | |
| virtual Pathname | settingsFile () const |
Private Types | |
| typedef std::map< std::string, PMSelectablePtr > | PMSelectablePool |
| typedef std::list< PMSelectable::SavedState > | SavedList |
Private Member Functions | |
| PMManager & | operator= (const PMManager &) |
| PMManager (const PMManager &) | |
| void | invalidateSolverSets () |
| virtual PMObjectPtr | assertObjectType (const PMObjectPtr &object_r) const=0 |
| virtual PMSelectablePtr | newSelectable (const PkgName &name_r) const |
| virtual void | prePSI () |
| virtual void | postPSI () |
| virtual void | prePAC () |
| virtual void | postPAC () |
| virtual void | prePRC () |
| virtual void | postPRC () |
| PMSelectablePtr | poolLookup (const std::string &name_r) const |
| PMSelectablePtr | poolProvide (const std::string &name_r) |
| void | poolAdjust () |
| void | clearAll () |
| void | checkPool () const |
| void | buildSets (PkgSet &installed, PkgSet &available, PkgSet &to_install) |
Private Attributes | |
| PMSelectablePool | _itemPool |
| PMSelectableVec | _items |
| PkgSet * | installed |
| PkgSet * | available |
| PkgSet * | toinstall |
| PkgSet * | nowinstalled |
| SavedList | _savedList |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const PMManager &obj) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
General test whether fnc_r returns true for at least one Selectable.
|
|
|
General test whether fnc_r returns true for at least one Selectable.
|
|
|
are there currently any "by_user" selectables ? |
|
|
are there currently any selectables for deletion ? |
|
|
are there currently any selectables for installation ? |
|
|
Concrete Manager has to assert that the passed ObjectPtr actually references the correct type of Object (PackageManager e.g. will handle nothing else but Packages). Implemented in PMPackageManager, PMSelectionManager, and PMYouPatchManager. |
|
|
Iterator for Selectables within this Manager. |
|
||||||||||||||||
|
set maximum number of packages that will be automatically selected for removal on upgrade |
|
|
|
|
|
|
|
|
Forgett a previously saved selection. Reimplemented in PMSelectionManager. |
|
|
Return true if current selection differs from previously saved selection. |
|
|
True if Manager does not contain any Selectable |
|
|
Iterator for Selectables within this Manager. |
|
|
PMSelectablePtr to the Selectable with the given name, or NULL if there is none. |
|
|
|
|
|
Currently we don't need concrete Selectables (e.g. PackageSelectable), thus new Selectables are created here. Otherwise make it pure virtual, and let the concrete Manager create the appropriate type of Selectable. |
|
|
|
|
|
PMSelectablePtr to the Selectable with the given name, or NULL if there is none. |
|
|
Called from InstSrc to add provided Objects |
|
|
Remove superfluous empty Selecatables. To be called after Objects were removed from Selectables. This clears any saved state! |
|
|
Lookup Selectable by name. |
|
|
Make shure the pool contains a Selectable named name_r, and return it. |
|
|
Called from InstSrc to remove the formerly added objects. |
|
|
Called from TargetSystem providing all(!) installed objects |
|
|
Sort all Selectables candiadte lists. This has to be done whenever the sort criteria were changed (e.g. after reordeing the InstSrces). |
|
|
Post poolAddCandidates hook |
|
|
Post poolRemoveCandidates hook |
|
|
Post poolSetInstalled hook Reimplemented in PMPackageManager. |
|
|
Pre poolAddCandidates hook |
|
|
Pre poolRemoveCandidates hook |
|
|
Pre poolSetInstalled hook Reimplemented in PMPackageManager. |
|
|
Iterator for Selectables within this Manager. |
|
|
Read setting slike Taboo states from disk. |
|
|
Iterator for Selectables within this Manager. |
|
|
Restore previously saved selection. Reimplemented in PMSelectionManager. |
|
|
Save current selection. Reimplemented in PMSelectionManager. |
|
|
Set all Selectables to NothingSelected ( neither install nor delete ) |
|
|
Return file name used to read and write settings. Subclasses should override this function and provide an appropriate filename, if they need their settings to be stored. Reimplemented in PMYouPatchManager. |
|
|
The number of Selectables within this Manager. |
|
|
determine whether installed system is consistent
|
|
||||||||||||||||
|
resolve dependencies for packages marked for installation
|
|
|
Write settings like Taboo states to disk. |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.6