#include <PMYouSettings.h>
Inheritance diagram for PMYouSettings:
Public Member Functions | |
PMYouSettings () | |
PMYouSettings (const std::string &product, const std::string &version, const std::string &baseArch) | |
~PMYouSettings () | |
void | init (const std::string &product, const std::string &version, const std::string &baseArch) |
PMError | initProduct () |
void | setMasterMedia (const PMYouMediaPtr &) |
PMYouMediaPtr | masterMedia () |
void | setPathPrefix (const Pathname &) |
Pathname | pathPrefix () |
void | filterExclusiveProducts (const std::list< std::string > &) |
void | setPatchServer (const PMYouServer &) |
PMYouServer | patchServer () |
void | setUsernamePassword (const std::string &username, const std::string &password) |
Url | patchUrl () |
Pathname | mediaPatchesFile () |
Pathname | localDir () |
Pathname | localWriteDir () |
Pathname | attachPoint () |
Pathname | rootAttachPoint () |
Pathname | installDir () |
Pathname | externalRpmDir () |
Pathname | filesDir () |
std::string | directoryFileName () |
std::string | mediaMapFileName () |
Pathname | cookiesFile () |
Pathname | configFile () |
Pathname | passwordFile () |
Pathname | logFile () |
SysConfig * | config () |
void | setLangCode (const LangCode &) |
LangCode | langCode () const |
std::string | locale () const |
std::string | defaultLocale () const |
std::list< PMYouProductPtr > | products () const |
PMYouProductPtr | primaryProduct () const |
void | setCheckSignatures (bool) |
bool | checkSignatures () const |
void | setReloadPatches (bool) |
bool | reloadPatches () |
void | setNoExternalPackages (bool) |
bool | noExternalPackages () const |
void | setDryRun (bool) |
bool | dryRun () const |
void | setGetAll (bool) |
bool | getAll () const |
void | setGetOnly (bool) |
bool | getOnly () const |
void | setLogEnabled (bool) |
bool | isLogEnabled () const |
Static Public Member Functions | |
std::string | translateLangCode (const LangCode &lang) |
Protected Member Functions | |
void | init () |
Private Member Functions | |
REP_BODY (PMYouSettings) | |
Private Attributes | |
PMYouMediaPtr | _masterMedia |
Pathname | _pathPrefix |
PMYouServer | _patchServer |
SysConfig * | _config |
LangCode | _lang |
std::list< PMYouProductPtr > | _products |
bool | _checkSignatures |
bool | _reloadPatches |
bool | _noExternalPackages |
bool | _dryRun |
bool | _getAll |
bool | _getOnly |
bool | _isLogEnabled |
|
Constructor. |
|
Constructor. Initialise object with values based on the given product, version and baseArch. |
|
Destructor |
|
Return directory used as attach point for media interface, i.e. for mounting CDs or NFS servers or for downloading files via FTP, HTTP etc. This function returns a writable location. |
|
Return true, if signatures should be checked, otherwise return false. |
|
Return configuration object for file at configFile(). |
|
Return path to file used for storing configuration information. |
|
Return path to file used for storing cookies. |
|
Return default locale. See locale(). |
|
Return name of file holding the list of patches in the "patches" directory. |
|
Return true, if the YOU run should be performed as dry run, i.e. without actually installing the patches, otherwise return false. |
|
Return path to directory where external RPMs are stored. |
|
Return path to directory where extra files are stored. |
|
Filter exclusive products. Remove all products which are not contained in the argument list. If the list is empty no products are removed. |
|
Return true if all packages should be retrieved, not only the ones which actually will be installed, otherwise return false. |
|
Get if patches will only be retrived, but not installed. |
|
|
|
Init object with given product, version and baseArch values. |
|
Read information about product (name, version, architecture, YOU URL, if the product is a business product, path on server and name of distproduct) and initialize object accordingly. |
|
Return directory where information about installed patches is stored. |
|
Return if the separate YOU log is enabled. |
|
Return language code used for displaying messages to the user. |
|
Return local base directory for you related files. |
|
Return clear text locale as used by the patch file parser. |
|
Return local base directory for you related files suited for writing to it. This depends on the identity of the user. root gets a directory under /var, non-root users get a directory in their home directory. |
|
Return path to file used for special YOU logs. |
|
Return master media. |
|
Return name of file holding the media map for the patches. |
|
Return path to patch meta information file (aka media.1/patches). |
|
Return true if external packages should be downloaded, otherwise return false. |
|
Return path to file used for storing passwords. |
|
Return patch server where patches are read from. |
|
Return base URL to patches. This doesn't include the product dependent path. |
|
Get patch prefix. |
|
Return product which characterizes the installed system best. |
|
Return products relevant for YOU updates. |
|
Return true if patches should be reloaded from the server, otherwise return false. |
|
|
|
Return directory used as attach point for media interface, i.e. for mounting CDs or NFS servers or for downloading files via FTP, HTTP etc. This function returns the location used by root. |
|
Set if signatures should be checked or not. |
|
Set if the you run should be performed as dry run, i.e. without actually installing the patches. |
|
Set if all packages should be retrieved, not only the ones which actually will be installed. |
|
Set if patches will only be retrived, but not installed. |
|
Set language code used for displaying messages to the user. If the language code argument is empty, the preferred YaST locale is set. |
|
Enable writing of separate YOU log. |
|
Set master media. This is used as reference for testing other media instances. |
|
Set if external packages should be downloaded. |
|
Set patch server where patches are read from. |
|
Set path prefix. This is the path read from the file "media.1/patches". It is prepended to the product dependent path to the patches. |
|
Set if patches should be reloaded from the server. |
|
Set username and password for current server. |
|
Translate standard lang code into full language name as used in patch info files. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|