libzypp  15.28.6
zypp::ui Namespace Reference

Namespaces

 selfilter
 

Classes

class  Selectable
 Collects PoolItems of same kind and name. More...
 
struct  asSelectable
 Solvable to Selectable transform functor. More...
 
class  StatusBackup
 Simple ResStatus backup stack. More...
 
struct  StatusHelper
 
struct  SelectableTraits
 

Typedefs

typedef
ResPoolProxy::const_iterator 
PoolProxyIterator
 

Enumerations

enum  Status {
  S_Protected, S_Taboo, S_Del, S_Update,
  S_Install, S_AutoDel, S_AutoUpdate, S_AutoInstall,
  S_KeepInstalled, S_NoInst
}
 UI status Status values calculated by Selectable. More...
 

Functions

 IMPL_PTR_TYPE (Selectable)
 
std::ostream & operator<< (std::ostream &str, const Selectable &obj)
 
std::ostream & dumpOn (std::ostream &str, const Selectable &obj)
 
 DEFINE_PTR_TYPE (Selectable)
 
std::string asString (const Status &obj)
 
static ResPoolProxy poolProxy ()
 
template<class T >
PoolProxyIterator poolProxyBegin ()
 
template<class T >
PoolProxyIterator poolProxyEnd ()
 
static PoolProxyIterator pkgBegin ()
 
static PoolProxyIterator pkgEnd ()
 
static PoolProxyIterator patchesBegin ()
 
static PoolProxyIterator patchesEnd ()
 
template<typename T >
bool contains (const std::set< T > &container, T search)
 
static void addDirectlySelectedPackages (set< string > &pkgNames)
 
template<class PkgSet_T >
void addPkgSetPackages (set< string > &pkgNames)
 Template to handle Patterns. More...
 
static void addPatternPackages (set< string > &pkgNames)
 
static void addPatchPackages (set< string > &pkgNames)
 
set< string > userWantedPackageNames ()
 This returns a set of package names the user explicitly wanted to transact ( to install, to update, or to delete) for any of the following reasons: More...
 

Typedef Documentation

Enumeration Type Documentation

UI status Status values calculated by Selectable.

Note
The Status enum, and it's use within Selectabe is tightly related to the Y2UI. It might be not verry usefull outside the Y2UI.
Todo:
make it an EnumerationClass
Enumerator
S_Protected 
S_Taboo 
S_Del 
S_Update 
S_Install 
S_AutoDel 
S_AutoUpdate 
S_AutoInstall 
S_KeepInstalled 
S_NoInst 

Definition at line 34 of file Status.h.

Function Documentation

zypp::ui::IMPL_PTR_TYPE ( Selectable  )
std::ostream& zypp::ui::operator<< ( std::ostream &  str,
const Selectable &  obj 
)
related

Definition at line 290 of file Selectable.cc.

std::ostream& zypp::ui::dumpOn ( std::ostream &  str,
const Selectable &  obj 
)
related

Definition at line 293 of file Selectable.cc.

zypp::ui::DEFINE_PTR_TYPE ( Selectable  )
std::string zypp::ui::asString ( const Status &  obj)

Definition at line 30 of file Status.cc.

static ResPoolProxy zypp::ui::poolProxy ( )
inlinestatic

Definition at line 39 of file UserWantedPackages.cc.

template<class T >
PoolProxyIterator zypp::ui::poolProxyBegin ( )

Definition at line 41 of file UserWantedPackages.cc.

template<class T >
PoolProxyIterator zypp::ui::poolProxyEnd ( )

Definition at line 42 of file UserWantedPackages.cc.

static PoolProxyIterator zypp::ui::pkgBegin ( )
inlinestatic

Definition at line 44 of file UserWantedPackages.cc.

static PoolProxyIterator zypp::ui::pkgEnd ( )
inlinestatic

Definition at line 45 of file UserWantedPackages.cc.

static PoolProxyIterator zypp::ui::patchesBegin ( )
inlinestatic

Definition at line 50 of file UserWantedPackages.cc.

static PoolProxyIterator zypp::ui::patchesEnd ( )
inlinestatic

Definition at line 51 of file UserWantedPackages.cc.

template<typename T >
bool zypp::ui::contains ( const std::set< T > &  container,
search 
)

Definition at line 53 of file UserWantedPackages.cc.

static void zypp::ui::addDirectlySelectedPackages ( set< string > &  pkgNames)
static

Definition at line 83 of file UserWantedPackages.cc.

template<class PkgSet_T >
void zypp::ui::addPkgSetPackages ( set< string > &  pkgNames)

Template to handle Patterns.

Definition at line 112 of file UserWantedPackages.cc.

static void zypp::ui::addPatternPackages ( set< string > &  pkgNames)
static

Definition at line 103 of file UserWantedPackages.cc.

static void zypp::ui::addPatchPackages ( set< string > &  pkgNames)
static

Definition at line 138 of file UserWantedPackages.cc.

std::set< std::string > zypp::ui::userWantedPackageNames ( )

This returns a set of package names the user explicitly wanted to transact ( to install, to update, or to delete) for any of the following reasons:

  • The user wanted to transact the pkg directly
  • Pkg is part of a pattern the user wanted to transact
  • Pkg is part of a language the user wanted to transact (? No more transacting Languages)
  • Pkg is part of a patch the user wanted to transact
  • Pkg is part of a pattern that is required by a pattern the user wanted to transact

Definition at line 68 of file UserWantedPackages.cc.