Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Y2PM Class Reference

#include <Y2PM.h>

List of all members.

Public Types

typedef PM::LocaleSet LocaleSet
typedef PM::LocaleOrder LocaleOrder

Static Public Member Functions

static PMError rcInit ()
static PMError rcSave ()
static PMError rcCopyTo ()
static PMError setCandidateOrder (PM::CandidateOrder neworder_r)
static PkgArch baseArch ()
static const PM::ArchSetallowedArchs (void)
static void setAllowedArchs (const PM::ArchSet &allowed_archs)
static LocaleOrder getLocaleFallback (const LangCode &locale_r)
static LocaleOrder getLocaleFallback ()
static const LangCodegetPreferredLocale ()
static PMError setPreferredLocale (const LangCode &preferred_locale_r)
static const LocaleSetgetRequestedLocales ()
static PMError setRequestedLocales (const LocaleSet &requested_locales_r)
static PMError setRequestedLocales (const LangCode &requested_locale_r)
static bool runningFromSystem ()
static void setNotRunningFromSystem ()
static bool cacheToRamdisk ()
static void setCacheToRamdisk (const bool val_r)
static InstTargetinstTarget ()
static PMError instTargetInit (Pathname root_r="")
static PMError instTargetUpdate ()
static PMError instTargetClose ()
static bool noAutoInstSrcManager ()
static bool hasInstSrcManager ()
static InstSrcManagerinstSrcManager ()
static void ISM_RanksCanged ()
static PMPackageManagerpackageManager ()
static PMSelectionManagerselectionManager ()
static PMLanguageManagerlanguageManager ()
static void languageManagerTagDirty ()
static PMYouPatchManageryouPatchManager ()
static void packageSelectionSaveState ()
static bool packageSelectionRestoreState ()
static bool packageSelectionDiffState ()
static void packageSelectionClearSaveState ()
static int commitPackages (unsigned int media_nr, std::list< std::string > &errors_r, std::list< std::string > &remaining_r, std::list< std::string > &srcremaining_r)
static int commitPackages (unsigned int media_nr, std::list< std::string > &errors_r, std::list< std::string > &remaining_r, std::list< std::string > &srcremaining_r, PM::ISrcIdList installrank) __attribute__((deprecated))
static PMError installFile (const Pathname &path_r)
static PMError removePackage (const std::string &pkgname_r)

Static Private Member Functions

static void cleanupAtExit ()
static PMError addRequestedLocales (const LocaleSet &requested_locales_r)
static PMError addRequestedLocales (const LangCode &requested_locale_r)
static PMError delRequestedLocales (const LocaleSet &requested_locales_r)
static PMError delRequestedLocales (const LangCode &requested_locale_r)
static LocaleSettingslocaleSettings ()
static PMError preferredLocaleChanged ()
static PMError requestedLocalesChanged (const LocaleSet &addLocales_r, const LocaleSet &delLocales_r)

Static Private Attributes

static Pathname _system_rootdir
static bool _cache_to_ramdisk
static InstTarget_instTarget = 0
static InstSrcManager_instSrcManager = 0
static PMPackageManager_packageManager = 0
static PMSelectionManager_selectionManager = 0
static PMYouPatchManager_youPatchManager = 0
static PMLanguageManager_languageManager = 0
static bool _languageManagerDirty = true
static PkgArch _base_arch
static PM::ArchSet _allowed_archs

Friends

class PMLanguageManager

Classes

class  LocaleSettings


Detailed Description

Core class providing access to all components of the Package Management creating them on demand.


Member Typedef Documentation

typedef PM::LocaleOrder Y2PM::LocaleOrder
 

typedef PM::LocaleSet Y2PM::LocaleSet
 


Member Function Documentation

static PMError Y2PM::addRequestedLocales const LangCode requested_locale_r  )  [inline, static, private]
 

PMError Y2PM::addRequestedLocales const LocaleSet requested_locales_r  )  [static, private]
 

Add locales to requested locales.

const PM::ArchSet & Y2PM::allowedArchs void   )  [static]
 

Return the list of allowed architectures

PkgArch Y2PM::baseArch  )  [static]
 

Return the target architecture

static bool Y2PM::cacheToRamdisk  )  [inline, static]
 

If false, InstSrc will not create a data cache in ramdisk, if not running from system.

void Y2PM::cleanupAtExit  )  [static, private]
 

static int Y2PM::commitPackages unsigned int  media_nr,
std::list< std::string > &  errors_r,
std::list< std::string > &  remaining_r,
std::list< std::string > &  srcremaining_r,
PM::ISrcIdList  installrank
[static]
 

OBSOLETE, using installrank argument

static int Y2PM::commitPackages unsigned int  media_nr,
std::list< std::string > &  errors_r,
std::list< std::string > &  remaining_r,
std::list< std::string > &  srcremaining_r
[static]
 

package deletion/installation main loop deletes/installs all packages currently marked in packageManager() if media_nr == 0, install everything regardless of media nr if media_nr > 0, install only from this media nr return list of failed package names in errors_r return list of unavailable packages (due to InstSrc errors or wrong media nr) in remaining_r return list of unavailable source packages (due to InstSrc errors or wrong media nr) in srcremaining_r return number of sucessfully installed packages

static PMError Y2PM::delRequestedLocales const LangCode requested_locale_r  )  [inline, static, private]
 

PMError Y2PM::delRequestedLocales const LocaleSet requested_locales_r  )  [static, private]
 

Remove locales from requested locales.

static LocaleOrder Y2PM::getLocaleFallback  )  [inline, static]
 

Return the locale fallbacks for PreferredLocale.

Y2PM::LocaleOrder Y2PM::getLocaleFallback const LangCode locale_r  )  [static]
 

Return an ordered list of locales to try. For 'de_DE' you may for example get a list like: { de_DE, de, en }

const LangCode & Y2PM::getPreferredLocale  )  [static]
 

Return the preferred locale. The preferred language for labels, descritions, etc. passed to the UI.

const Y2PM::LocaleSet & Y2PM::getRequestedLocales  )  [static]
 

Return requested locales. Languages to be supported by the system, i.e. language specific packages to be installed by e.g. selections.

static bool Y2PM::hasInstSrcManager  )  [inline, static]
 

Returns true, if an InstSrcManager is present.

PMError Y2PM::installFile const Pathname path_r  )  [static]
 

Install a single rpm file.

InstSrcManager & Y2PM::instSrcManager  )  [static]
 

Access to the installation source manager

InstTarget & Y2PM::instTarget  )  [static]
 

Access to the installation target. Target is uninitialized untill instTargetInit and after instTargetClose.

PMError Y2PM::instTargetClose  )  [static]
 

Shutdown access to the installation target. Provided packages and selections will be withdrawn from existing managers.

PMError Y2PM::instTargetInit Pathname  root_r = ""  )  [static]
 

Initialize the installation target to use the system located below root_r. If the installation target is already initialized, a provided root_r must match the root path in use, otherwise an error is returned. If no root_r (or an empty path) is provided, an already initialized target is used, otherwise it's initialized to use "/".

If the installation target actually gets initialized, packages and selections are loaded into already existing managers. Otherwise managers will retrieve their data as they are created.

Use instTargetUpdate if you want to make shure, that installation target and managers exist and are up to date.

PMError Y2PM::instTargetUpdate  )  [static]
 

Make shure, that installation target is initialized and managers exist. Check whether databases on target need to be reread, and load the updated content into the managers.

NOTE: If the installation target has to use some other location than "/", make shure you explicitly call instTargetInit before.

void Y2PM::ISM_RanksCanged  )  [static]
 

Triggered by InstSrcManager whenever InstSrc ranks were changed. We have to adjust e.g. package candidate lists as the InstSrc rank is a criteria for candidate selection.

PMLanguageManager & Y2PM::languageManager  )  [static]
 

Access to the Language manager

static void Y2PM::languageManagerTagDirty  )  [inline, static]
 

Access to the Language manager

Y2PM::LocaleSettings & Y2PM::localeSettings  )  [inline, static, private]
 

bool Y2PM::noAutoInstSrcManager  )  [static]
 

Special call to create the instSrcManager (if it does not already exist), but prevent autoenabling of any InstSrc'es found in the cache.

Returns true, if the call succeeded. Otherwise the instSrcManager has already been constructed, and may or may not contain enabled InstSrc'es.

PMPackageManager & Y2PM::packageManager  )  [static]
 

Access to the Package manager

void Y2PM::packageSelectionClearSaveState  )  [static]
 

[package/selectionManager] Forgett a previously saved selection.

bool Y2PM::packageSelectionDiffState  )  [static]
 

[package/selectionManager] Return true if current selection differs from previously saved selection.

bool Y2PM::packageSelectionRestoreState  )  [static]
 

[package/selectionManager] Restore previously saved selection.

void Y2PM::packageSelectionSaveState  )  [static]
 

[package/selectionManager] Save current selection

PMError Y2PM::preferredLocaleChanged  )  [static, private]
 

Triggered if preferred locale value actually changed.

PMError Y2PM::rcCopyTo  )  [static]
 

PMError Y2PM::rcInit  )  [static]
 

PMError Y2PM::rcSave  )  [static]
 

PMError Y2PM::removePackage const std::string &  pkgname_r  )  [static]
 

Remove a single package by name.

PMError Y2PM::requestedLocalesChanged const LocaleSet addLocales_r,
const LocaleSet delLocales_r
[static, private]
 

Triggered if requested locale value actually changed.

static bool Y2PM::runningFromSystem  )  [inline, static]
 

If false, root is ramdisk, and system to install is (or will be) mounted below _system_rootdir. Need to know this e.g. in InstSrc to determine, wheter to write a chache on 'enable' or to wait until system to be installed is available below _system_rootdir.

PMSelectionManager & Y2PM::selectionManager  )  [static]
 

Access to the Selection manager

static void Y2PM::setAllowedArchs const PM::ArchSet allowed_archs  )  [inline, static]
 

static void Y2PM::setCacheToRamdisk const bool  val_r  )  [inline, static]
 

PMError Y2PM::setCandidateOrder PM::CandidateOrder  neworder_r  )  [static]
 

static void Y2PM::setNotRunningFromSystem  )  [inline, static]
 

PMError Y2PM::setPreferredLocale const LangCode preferred_locale_r  )  [static]
 

Change the preferred locale.

static PMError Y2PM::setRequestedLocales const LangCode requested_locale_r  )  [inline, static]
 

PMError Y2PM::setRequestedLocales const LocaleSet requested_locales_r  )  [static]
 

Change requested locales.

PMYouPatchManager & Y2PM::youPatchManager  )  [static]
 

Access to the YouPatch manager


Friends And Related Function Documentation

friend class PMLanguageManager [friend]
 


Member Data Documentation

std::list< PkgArch > Y2PM::_allowed_archs [static, private]
 

List of allowed architectures

PkgArch Y2PM::_base_arch [static, private]
 

Architecture of the target

bool Y2PM::_cache_to_ramdisk [static, private]
 

InstSrcManager * Y2PM::_instSrcManager = 0 [static, private]
 

InstTarget * Y2PM::_instTarget = 0 [static, private]
 

PMLanguageManager * Y2PM::_languageManager = 0 [static, private]
 

bool Y2PM::_languageManagerDirty = true [static, private]
 

PMPackageManager * Y2PM::_packageManager = 0 [static, private]
 

PMSelectionManager * Y2PM::_selectionManager = 0 [static, private]
 

Pathname Y2PM::_system_rootdir [static, private]
 

PMYouPatchManager * Y2PM::_youPatchManager = 0 [static, private]
 


The documentation for this class was generated from the following files:
Generated on Mon Sep 12 21:52:14 2005 for yast2-packagemanager by  doxygen 1.4.4