libzypp  15.28.6
zypp::ZYpp Class Reference

#include <ZYpp.h>

Inheritance diagram for zypp::ZYpp:

Public Types

typedef ::boost::shared_ptr< ZYppPtr
 
typedef ::boost::shared_ptr
< const ZYpp
constPtr
 
typedef ZYppCommitResult CommitResult
 

Public Member Functions

ResPool pool () const
 Access to the global resolvable pool. More...
 
ResPoolProxy poolProxy () const
 Pool of ui::Selectable. More...
 
DiskUsageCounter::MountPointSet diskUsage ()
 
void setPartitions (const DiskUsageCounter::MountPointSet &mp)
 
DiskUsageCounter::MountPointSet getPartitions () const
 
Target_Ptr target () const
 
Target_Ptr getTarget () const
 Same as target but returns NULL if target is not initialized, instead of throwing. More...
 
void initializeTarget (const Pathname &root, bool doRebuild_r=false)
 
void finishTarget ()
 
ZYppCommitResult commit (const ZYppCommitPolicy &policy_r)
 Commit changes and transactions. More...
 
void installSrcPackage (const SrcPackage_constPtr &srcPackage_r)
 Install a source package on the Target. More...
 
ManagedFile provideSrcPackage (const SrcPackage_constPtr &srcPackage_r)
 Provides a source package on the Target. More...
 
Resolver_Ptr resolver () const
 
KeyRing_Ptr keyRing () const
 
Pathname homePath () const
 Get the path where zypp related plugins store persistent data and caches. More...
 
Pathname tmpPath () const
 Get the path where zypp related plugins store temp data. More...
 
void setHomePath (const Pathname &path)
 set the home, if you need to change it More...
 

Private Types

typedef zypp_detail::ZYppImpl Impl
 
typedef shared_ptr< ImplImpl_Ptr
 

Private Member Functions

 ZYpp (const Impl_Ptr &impl_r)
 Factory ctor. More...
 
friend void::boost::checked_delete (ZYpp *)
 Deleted via shared_ptr. More...
 
 ~ZYpp ()
 Dtor. More...
 

Private Attributes

RW_pointer< Impl_pimpl
 Pointer to implementation. More...
 

Friends

class ZYppFactory
 Factory. More...
 
std::ostream & operator<< (std::ostream &str, const ZYpp &obj)
 

Detailed Description

Todo:
define Exceptions ZYpp API main interface

Definition at line 54 of file ZYpp.h.

Member Typedef Documentation

typedef ::boost::shared_ptr<ZYpp> zypp::ZYpp::Ptr

Definition at line 60 of file ZYpp.h.

typedef ::boost::shared_ptr<const ZYpp> zypp::ZYpp::constPtr

Definition at line 61 of file ZYpp.h.

Definition at line 109 of file ZYpp.h.

Definition at line 146 of file ZYpp.h.

Definition at line 147 of file ZYpp.h.

Constructor & Destructor Documentation

zypp::ZYpp::ZYpp ( const Impl_Ptr impl_r)
explicitprivate

Factory ctor.

Definition at line 26 of file ZYpp.cc.

zypp::ZYpp::~ZYpp ( )
private

Dtor.

Definition at line 30 of file ZYpp.cc.

Member Function Documentation

ResPool zypp::ZYpp::pool ( ) const

Access to the global resolvable pool.

Same as zypp::ResPool::instance

Definition at line 42 of file ZYpp.cc.

ResPoolProxy zypp::ZYpp::poolProxy ( ) const

Pool of ui::Selectable.

Based on the ResPool, ui::Selectable groups ResObjetcs of same kind and name.

Definition at line 54 of file ZYpp.cc.

DiskUsageCounter::MountPointSet zypp::ZYpp::diskUsage ( )

Definition at line 45 of file ZYpp.cc.

void zypp::ZYpp::setPartitions ( const DiskUsageCounter::MountPointSet mp)

Definition at line 48 of file ZYpp.cc.

DiskUsageCounter::MountPointSet zypp::ZYpp::getPartitions ( ) const

Definition at line 51 of file ZYpp.cc.

Target_Ptr zypp::ZYpp::target ( ) const
Exceptions
Exception

Definition at line 69 of file ZYpp.cc.

Target_Ptr zypp::ZYpp::getTarget ( ) const

Same as target but returns NULL if target is not initialized, instead of throwing.

Definition at line 72 of file ZYpp.cc.

void zypp::ZYpp::initializeTarget ( const Pathname &  root,
bool  doRebuild_r = false 
)
Exceptions
ExceptionJust init the target, dont populate store or pool. If doRebuild_r is true, an already existing database is rebuilt (rpm –rebuilddb ).

Definition at line 75 of file ZYpp.cc.

void zypp::ZYpp::finishTarget ( )
Exceptions
Exception

Definition at line 78 of file ZYpp.cc.

ZYppCommitResult zypp::ZYpp::commit ( const ZYppCommitPolicy policy_r)

Commit changes and transactions.

Parameters
\refCommitPolicy
Returns
CommitResult
Exceptions
Exception

Definition at line 81 of file ZYpp.cc.

void zypp::ZYpp::installSrcPackage ( const SrcPackage_constPtr &  srcPackage_r)

Install a source package on the Target.

Exceptions
Exception

Definition at line 84 of file ZYpp.cc.

ManagedFile zypp::ZYpp::provideSrcPackage ( const SrcPackage_constPtr &  srcPackage_r)

Provides a source package on the Target.

Exceptions
Exception

Definition at line 87 of file ZYpp.cc.

Resolver_Ptr zypp::ZYpp::resolver ( ) const

Definition at line 57 of file ZYpp.cc.

KeyRing_Ptr zypp::ZYpp::keyRing ( ) const

Definition at line 60 of file ZYpp.cc.

Pathname zypp::ZYpp::homePath ( ) const

Get the path where zypp related plugins store persistent data and caches.

Definition at line 91 of file ZYpp.cc.

Pathname zypp::ZYpp::tmpPath ( ) const

Get the path where zypp related plugins store temp data.

Definition at line 94 of file ZYpp.cc.

void zypp::ZYpp::setHomePath ( const Pathname &  path)

set the home, if you need to change it

Definition at line 97 of file ZYpp.cc.

zypp::ZYpp::void::boost::checked_delete ( ZYpp )
private

Deleted via shared_ptr.

Friends And Related Function Documentation

friend class ZYppFactory
friend

Factory.

Definition at line 145 of file ZYpp.h.

std::ostream& operator<< ( std::ostream &  str,
const ZYpp obj 
)
friend

Definition at line 33 of file ZYpp.cc.

Member Data Documentation

RW_pointer<Impl> zypp::ZYpp::_pimpl
private

Pointer to implementation.

Definition at line 157 of file ZYpp.h.


The documentation for this class was generated from the following files: