#include <InstYou.h>
Public Member Functions | |
InstYou () | |
InstYou (const PMYouPatchInfoPtr &, const PMYouSettingsPtr &) | |
~InstYou () | |
PMError | initProduct () |
PMError | servers (std::list< PMYouServer > &) |
PMError | readUserPassword () |
PMError | setUserPassword (const std::string &username, const std::string &password, bool persistent) |
PMError | retrievePatchDirectory () |
PMError | retrievePatchInfo () |
PMError | processPatches () |
void | selectPatches (int kinds) |
void | updatePackageStates () |
PMYouSettingsPtr | settings () const |
PMYouPatchInfoPtr | patchInfo () const |
PMError | removePackages () |
void | showPatches (bool verbose=false) |
PMError | progress (int) |
PMError | patchProgress (int, const std::string &pkg=std::string()) |
PMError | showError (const std::string &type, const std::string &text, const std::string &details) |
PMError | showError (const PMError &error) |
PMError | showMessage (const std::string &type, std::list< PMYouPatchPtr > &) |
void | log (const std::string &text) |
int | lastUpdate () |
int | installedPatches () |
FSize | totalDownloadSize () |
int | quickCheckUpdates () |
std::string | username () const |
std::string | password () const |
void | filterArchitectures (PMYouPatchPtr &patch) |
Static Public Member Functions | |
void | setCallbacks (Callbacks *) |
Protected Member Functions | |
PMError | attachSource () |
PMError | releaseSource () |
void | resetProgress () |
bool | incrementProgress () |
PMYouPatchPtr | firstPatch () |
PMYouPatchPtr | nextPatch () |
PMError | retrieveCurrentPatch () |
PMError | installCurrentPatch () |
PMError | disconnect () |
PMError | writeLastUpdate () |
PMError | installPatches (const vector< PMYouPatchPtr > &) |
PMError | installPatch (const PMYouPatchPtr &) |
PMError | retrievePatch (const PMYouPatchPtr &) |
PMError | retrievePackage (const PMPackagePtr &pkg, const PMYouProductPtr &) |
PMError | retrieveScript (const std::string &script, const PMYouProductPtr &) |
PMError | retrieveFile (const PMYouFile &file) |
PMError | executeScript (const std::string &, const PMYouProductPtr &) |
PMError | executeScript (const std::string &script, const PMYouProductPtr &product, const std::list< std::string > &arguments) |
bool | hasOnlyNewPackages (const PMYouPatchPtr &patch) |
bool | hasNewPackages (const PMYouPatchPtr &patch) |
bool | isNewerPackage (const PMPackagePtr &pkg) |
bool | packageToBeInstalled (const PMYouPatchPtr &patch, const PMPackagePtr &pkg) |
bool | firesPackageTrigger (const PMYouPatchPtr &patch) |
bool | firesScriptTrigger (const PMYouPatchPtr &patch) |
bool | hasPatchRpm (const PMPackagePtr &pkg) |
PMError | verifyMediaNumber (int number, int lastNumber) |
Private Member Functions | |
void | init () |
Private Attributes | |
PMYouPatchInfoPtr | _info |
PMYouSettingsPtr | _settings |
std::vector< PMYouPatchPtr > | _patches |
std::vector< PMYouPatchPtr >::const_iterator | _selectedPatchesIt |
std::map< std::string, int > | _mediaMap |
int | _progressTotal |
int | _progressCurrent |
MediaAccess | _media |
std::string | _username |
std::string | _password |
FSize | _totalDownloadSize |
int | _installedPatches |
int | _currentMediaNumber |
Static Private Attributes | |
Callbacks * | _callbacks = 0 |
|
Constructor |
|
Custom constructor |
|
Destructor |
|
Attach source of patches. |
|
Close connection to server. |
|
|
|
|
|
Remove all packages which aren't to be installed because of their architecture. |
|
|
|
|
|
Get first selected patch. |
|
Check, if the patch has at least one package which is newer than the instakked version. |
|
Check, if patch has only packages which are at least as new as the installed version. If the patch contains a package which is older than the installed version or the patch doesn't contain a package which is newer than the installed version false is returned.
|
|
|
|
|
|
|
|
Init you with product information from installed system. |
|
Install next patch in list of selected patches to target system. |
|
Return how many patches have been installed. |
|
|
|
|
|
Check, if package is newer than the installed version. Return false if the package isn't installed yet. |
|
Returns how many days ago the last update was performed. Returns -1 when no update has occured yet. |
|
Add line to log. Calls callbacks. |
|
|
|
Return if the package is to be installed on the system. |
|
|
|
Get object holding patch information. |
|
Show YOU patch progress. Calls callbacks. |
|
Process selected patches. Patches are downloaded or mounted as required and then installed. The settings of the PMYouSettings object are taken into account. The function uses InstYou::Callbacks to report errors, log progress and handle other events which require information or action from the user. |
|
Show YOU progress. Calls callbacks. |
|
Check for updates. Returns number of new updates available or -1 on error. Doesn't check for type of updates and doesn't download any update information. |
|
Read user name and password needed for authentification from configuration file. |
|
Release source of patches. |
|
Remove downloaded packages. |
|
|
|
Download next patch in list of selected patches.
|
|
|
|
|
|
|
|
Read list of all available patches. The server where the patches are retrieved from has to be set in the paths() object. |
|
Read patch information files. The server where the patches are retrieved from has to be set in the paths() object. |
|
|
|
Select Patches. If there are YaST2 patches, only the newest YaST2 patch will be selected. If there are no YaST2 patches, all patches will be selected which match the given kind and contain packages which have an older version already installed. Patches which contain packages which are older than the corresponding installed version will not be selected.
|
|
Get list of patch servers. |
|
|
|
Get object holding path information. |
|
Write user name and password to configuration file.
|
|
Show error. Calls callbacks. |
|
Show error. Calls callbacks. |
|
Show patch message. |
|
Print list of patches to stdout.
|
|
Return total size of data to be downloaded based on current selection of patches. |
|
Update states of packages according to states of patches. |
|
|
|
Verify that media with given number is present. If not the function asks the user to insert the correct one by using callbacks. |
|
Writes current date as date of last update. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|