libzypp  13.10.6
zypp::ZYpp Class Reference

#include <ZYpp.h>

Inheritance diagram for zypp::ZYpp:
zypp::base::ReferenceCounted

Public Types

typedef intrusive_ptr< ZYppPtr
 
typedef intrusive_ptr< const ZYppconstPtr
 
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...
 
- Public Member Functions inherited from zypp::base::ReferenceCounted
 ReferenceCounted ()
 Default ctor. More...
 
 ReferenceCounted (const ReferenceCounted &rhs)
 Copy ctor. More...
 
virtual ~ReferenceCounted ()
 Dtor. More...
 
ReferenceCountedoperator= (const ReferenceCounted &)
 Assignment. More...
 
unsigned refCount () const
 Return reference counter value. More...
 
void ref () const
 Add a reference. More...
 
void unref () const
 Release a reference. More...
 

Protected Member Functions

virtual ~ZYpp ()
 Dtor. More...
 
virtual std::ostream & dumpOn (std::ostream &str) const
 Stream output. More...
 
- Protected Member Functions inherited from zypp::base::ReferenceCounted
virtual void ref_to (unsigned) const
 Trigger derived classes after refCount was increased. More...
 
virtual void unref_to (unsigned) const
 Trigger derived classes after refCount was decreased. 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...
 

Private Attributes

RW_pointer< Impl_pimpl
 Pointer to implementation. More...
 

Friends

class ZYppFactory
 Factory. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from zypp::base::ReferenceCounted
static void add_ref (const ReferenceCounted *ptr_r)
 Called by zypp::intrusive_ptr to add a reference. More...
 
static void release (const ReferenceCounted *ptr_r)
 Called by zypp::intrusive_ptr to add a reference. More...
 

Detailed Description

Todo:
define Exceptions ZYpp API main interface

Definition at line 55 of file ZYpp.h.

Member Typedef Documentation

Definition at line 59 of file ZYpp.h.

Definition at line 60 of file ZYpp.h.

Definition at line 108 of file ZYpp.h.

Definition at line 152 of file ZYpp.h.

Definition at line 153 of file ZYpp.h.

Constructor & Destructor Documentation

zypp::ZYpp::~ZYpp ( )
protectedvirtual

Dtor.

Definition at line 40 of file ZYpp.cc.

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

Factory ctor.

Definition at line 31 of file ZYpp.cc.

Member Function Documentation

ResPool zypp::ZYpp::pool ( void  ) const

Access to the global resolvable pool.

Same as zypp::ResPool::instance

Definition at line 59 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 71 of file ZYpp.cc.

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

Definition at line 62 of file ZYpp.cc.

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

Definition at line 65 of file ZYpp.cc.

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

Definition at line 68 of file ZYpp.cc.

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

Definition at line 86 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 89 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 92 of file ZYpp.cc.

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

Definition at line 95 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 98 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 101 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 104 of file ZYpp.cc.

Resolver_Ptr zypp::ZYpp::resolver ( ) const

Definition at line 74 of file ZYpp.cc.

KeyRing_Ptr zypp::ZYpp::keyRing ( ) const

Definition at line 77 of file ZYpp.cc.

Pathname zypp::ZYpp::homePath ( ) const

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

Definition at line 108 of file ZYpp.cc.

Pathname zypp::ZYpp::tmpPath ( ) const

Get the path where zypp related plugins store temp data.

Definition at line 111 of file ZYpp.cc.

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

set the home, if you need to change it

Definition at line 114 of file ZYpp.cc.

std::ostream & zypp::ZYpp::dumpOn ( std::ostream &  str) const
protectedvirtual

Stream output.

Reimplemented from zypp::base::ReferenceCounted.

Definition at line 48 of file ZYpp.cc.

Friends And Related Function Documentation

friend class ZYppFactory
friend

Factory.

Definition at line 149 of file ZYpp.h.

Member Data Documentation

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

Pointer to implementation.

Definition at line 159 of file ZYpp.h.


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