libzypp  17.23.8
Selectable.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_UI_SELECTABLE_H
13 #define ZYPP_UI_SELECTABLE_H
14 
15 #include <iosfwd>
16 
18 #include <zypp/base/NonCopyable.h>
19 #include <zypp/base/PtrTypes.h>
20 #include <zypp/base/Iterator.h>
21 
23 #include <zypp/ui/Status.h>
24 
26 namespace zypp
27 {
28 
30  namespace ui
31  {
32 
33  DEFINE_PTR_TYPE(Selectable);
34 
36  //
37  // CLASS NAME : Selectable
38  //
52  {
53  friend std::ostream & operator<<( std::ostream & str, const Selectable & obj );
54  friend std::ostream & dumpOn( std::ostream & str, const Selectable & obj );
55 
56  public:
57  typedef intrusive_ptr<Selectable> Ptr;
58  typedef intrusive_ptr<const Selectable> constPtr;
59 
63 
66 
69 
70  public:
81  static Ptr get( const pool::ByIdent & ident_r );
82 
84  static Ptr get( IdString ident_r )
85  { return get( pool::ByIdent( ident_r ) ); }
86 
88  static Ptr get( ResKind kind_r, const std::string & name_r )
89  { return get( pool::ByIdent( kind_r, name_r ) ); }
90 
92  static Ptr get( const std::string & name_r )
93  { return get( pool::ByIdent( ResKind::package, name_r ) ); }
94 
96  static Ptr get( const sat::Solvable & solv_r )
97  { return get( pool::ByIdent( solv_r ) ); }
98 
100  static Ptr get( const ResObject::constPtr & resolvable_r )
101  { return resolvable_r ? get( resolvable_r->satSolvable() ) : Ptr(); }
102 
104  static Ptr get( const PoolItem & pi_r )
105  { return get( pi_r.satSolvable() ); }
107 
108  public:
114  IdString ident() const;
115 
117  ResKind kind() const;
118 
120  const std::string & name() const;
121 
123  PoolItem installedObj() const;
124 
131  PoolItem candidateObj() const;
132 
139  PoolItem candidateObjFrom( Repository repo_r ) const;
140 
149 
157 
159  bool identIsAutoInstalled() const;
160 
165  bool identicalAvailable( const PoolItem & rhs ) const;
166 
171  bool identicalInstalled( const PoolItem & rhs ) const;
172 
177  { return identicalInstalled( candidateObj() ); }
178 
183  { return identicalInstalled( updateCandidateObj() ); }
184 
189  PoolItem identicalAvailableObj( const PoolItem & rhs ) const;
190 
195  PoolItem identicalInstalledObj( const PoolItem & rhs ) const;
196 
203  template<class TRes>
205  { return asKind<TRes>( candidateObj() ); }
206 
213  template<class TRes>
215  { return asKind<TRes>( candidateObj() ); }
216 
225  PoolItem setCandidate( const PoolItem & newCandidate_r, ResStatus::TransactByValue causer_r = ResStatus::USER );
228 
235  bool setOnSystem( const PoolItem & newCandidate_r, ResStatus::TransactByValue causer_r = ResStatus::USER );
236 
242  PoolItem theObj() const;
243 
245 
250  bool availableEmpty() const;
255  { return makeIterable( availableBegin(), availableEnd() ); }
257 
259 
264  bool installedEmpty() const;
269  { return makeIterable( installedBegin(), installedEnd() ); }
271 
273 
279  bool picklistEmpty() const;
284  { return makeIterable( picklistBegin(), picklistEnd() ); }
285 
288 
293  picklist_size_type picklistPos( const PoolItem & pi_r ) const;
294 
296  picklist_size_type picklistPos( const sat::Solvable & solv_r ) const;
298 
300 
301  public:
306  bool hasObject() const
307  { return (! installedEmpty()) || candidateObj(); }
308 
310  bool hasInstalledObj() const
311  { return ! installedEmpty(); }
312 
314  bool hasCandidateObj() const
315  { return bool(candidateObj()); }
316 
318  bool hasBothObjects() const
319  { return (! installedEmpty()) && candidateObj(); }
320 
322  bool hasInstalledObjOnly() const
323  { return (! installedEmpty()) && ! candidateObj(); }
324 
326  bool hasCandidateObjOnly() const
327  { return ( installedEmpty() ) && candidateObj(); }
328 
330  bool hasRetracted() const;
331 
333  bool hasRetractedInstalled() const;
335 
340  bool isUnmaintained() const;
341 
353  bool multiversionInstall() const;
354 
357  bool pickInstall( const PoolItem & pi_r, ResStatus::TransactByValue causer_r = ResStatus::USER, bool yesno_r = true );
358 
362  { return pickInstall( pi_r, causer_r, false ); }
363 
366  bool pickDelete( const PoolItem & pi_r, ResStatus::TransactByValue causer_r = ResStatus::USER, bool yesno_r = true );
367 
371  { return pickDelete( pi_r, causer_r, false ); }
372 
396  Status pickStatus( const PoolItem & pi_r ) const;
397 
399  bool setPickStatus( const PoolItem & pi_r, Status state_r, ResStatus::TransactByValue causer_r = ResStatus::USER );
401 
411  bool isUndetermined() const;
412 
416  bool isRelevant() const;
417 
419  bool isSatisfied() const;
420 
422  bool isBroken() const;
423 
429  bool isNeeded() const;
430 
432  bool isUnwanted() const;
434 
435  public:
439  enum Fate {
440  TO_DELETE = -1,
443  };
445  Fate fate() const;
446 
448  bool unmodified() const
449  { return fate() == UNMODIFIED; }
450 
457  bool locked() const
458  { Status st( status() ); return( st == S_Protected || st == S_Taboo ); }
459 
465  bool hasLocks() const;
466 
468  bool toModify() const
469  { return fate() != UNMODIFIED; }
470 
472  bool toDelete() const
473  { return fate() == TO_DELETE; }
474 
476  bool toInstall() const
477  { return fate() == TO_INSTALL; }
478 
480  bool onSystem() const
481  { return( ( hasInstalledObj() && !toDelete() )
482  ||( hasCandidateObj() && toInstall() ) ); }
483 
485  bool offSystem() const
486  { return ! onSystem(); }
487 
489  bool setFate( Fate fate_r, ResStatus::TransactByValue causer_r = ResStatus::USER );
490 
493  { return setFate( TO_INSTALL, causer_r ); }
494 
497 
500 
503  { return setFate( TO_DELETE, causer_r ); }
504 
507 
510  { return setFate( UNMODIFIED, causer_r ); }
512 
513  public:
522  Status status() const;
523 
528  bool setStatus( Status state_r, ResStatus::TransactByValue causer_r = ResStatus::USER );
529 
532 
534  bool hasLicenceConfirmed() const;
535 
537  void setLicenceConfirmed( bool val_r = true );
539 
540  public:
542  struct Impl;
543  typedef shared_ptr<Impl> Impl_Ptr;
545  Selectable( Impl_Ptr pimpl_r );
546  private:
548  ~Selectable();
549  private:
552  };
554 
556  std::ostream & operator<<( std::ostream & str, const Selectable & obj );
557 
559  std::ostream & dumpOn( std::ostream & str, const Selectable & obj );
560 
566  {
567  typedef Selectable_Ptr result_type;
568 
569  Selectable_Ptr operator()( const sat::Solvable & solv_r ) const;
570 
571  Selectable_Ptr operator()( const PoolItem & pi_r ) const
572  { return operator()( pi_r.satSolvable() ); }
573  };
574 
576  } // namespace ui
579 } // namespace zypp
581 #endif // ZYPP_UI_SELECTABLE_H
zypp::ui::Selectable::locked
bool locked() const
True if locked (subclass of unmodified).
Definition: Selectable.h:457
zypp::ui::Selectable::installedSize
installed_size_type installedSize() const
Definition: Selectable.cc:135
zypp::ui::Selectable::hasInstalledObj
bool hasInstalledObj() const
True if installed object is present.
Definition: Selectable.h:310
zypp::ui::Selectable::picklistBegin
picklist_iterator picklistBegin() const
Definition: Selectable.cc:152
zypp::PoolItem
Combining sat::Solvable and ResStatus.
Definition: PoolItem.h:50
zypp::ui::Selectable::picklistPos
picklist_size_type picklistPos(const PoolItem &pi_r) const
Return the position of pi_r in the piclist or picklistNoPos.
Definition: Selectable.cc:158
zypp::ui::Selectable::hasLicenceConfirmed
bool hasLicenceConfirmed() const
Return value of LicenceConfirmed bit.
Definition: Selectable.cc:226
zypp::ui::Selectable::TO_INSTALL
Definition: Selectable.h:442
zypp::ResTraits::constPtrType
intrusive_ptr< const TRes > constPtrType
Definition: ResTraits.h:83
zypp::ui::Selectable::status
Status status() const
Return the current Status.
Definition: Selectable.cc:64
zypp::ui::dumpOn
std::ostream & dumpOn(std::ostream &str, const Selectable &obj)
Definition: Selectable.cc:316
zypp::sat::Solvable
A Solvable object within the sat Pool.
Definition: Solvable.h:53
zypp::ui::Selectable::kind
ResKind kind() const
The ResObjects kind.
Definition: Selectable.cc:58
zypp::ui::Selectable::identicalAvailable
bool identicalAvailable(const PoolItem &rhs) const
True if rhs is installed and one with the same content is available.
Definition: Selectable.cc:88
zypp::ui::Selectable::available_iterator
SelectableTraits::available_iterator available_iterator
Iterates over ResObject::constPtr.
Definition: Selectable.h:61
zypp::ui::Selectable::offSystem
bool offSystem() const
True if would be off system after commit.
Definition: Selectable.h:485
zypp::sat::SolvableType::satSolvable
Solvable satSolvable() const
Return the corresponding sat::Solvable.
Definition: SolvableType.h:57
zypp::ui::Selectable::TO_DELETE
Definition: Selectable.h:440
zypp::ui::Selectable::isBroken
bool isBroken() const
Whether a relevant patchs requirements are broken.
Definition: Selectable.cc:210
zypp::ui::Selectable::highestAvailableVersionObj
PoolItem highestAvailableVersionObj() const
Simply the highest available version, ignoring priorities and policies.
Definition: Selectable.cc:82
zypp::ui::Selectable::isUnwanted
bool isUnwanted() const
Broken (needed) but locked patches.
Definition: Selectable.cc:218
zypp::ui::Selectable::isRelevant
bool isRelevant() const
Returns true if the patch is relevant which means that at least one package of the patch is installed...
Definition: Selectable.cc:204
zypp::ui::Selectable::fate
Fate fate() const
Definition: Selectable.cc:235
zypp::ui::Selectable
Collects PoolItems of same kind and name.
Definition: Selectable.h:51
zypp::ui::Selectable::setDeleted
bool setDeleted(ResStatus::TransactByValue causer_r=ResStatus::USER)
Take care the item gets deleted if it is installed.
Definition: Selectable.cc:304
zypp::ui::asSelectable::operator()
Selectable_Ptr operator()(const PoolItem &pi_r) const
Definition: Selectable.h:571
zypp::ResKind::package
static const ResKind package
Definition: ResKind.h:40
zypp::ui::Selectable::dumpOn
friend std::ostream & dumpOn(std::ostream &str, const Selectable &obj)
Definition: Selectable.cc:316
zypp::base::ReferenceCounted
Base class for reference counted objects.
Definition: ReferenceCounted.h:33
zypp::ui::Selectable::Ptr
intrusive_ptr< Selectable > Ptr
Definition: Selectable.h:57
zypp::ui::Selectable::installed
Iterable< installed_iterator > installed() const
Definition: Selectable.h:268
zypp::ui::Selectable::get
static Ptr get(const std::string &name_r)
Get the Package Selctable by name.
Definition: Selectable.h:92
zypp::ui::Selectable::identicalAvailableObj
PoolItem identicalAvailableObj(const PoolItem &rhs) const
Return an available Object with the same content as rhs.
Definition: Selectable.cc:94
zypp::ui::Selectable::setCandidate
PoolItem setCandidate(const PoolItem &newCandidate_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Set a candidate (out of available objects).
Definition: Selectable.cc:100
zypp::ui::Selectable::multiversionInstall
bool multiversionInstall() const
Whether at least one of the available packages has multiversionInstall set.
Definition: Selectable.cc:184
zypp::ui::Selectable::setStatus
bool setStatus(Status state_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Try to set a new Status.
Definition: Selectable.cc:67
zypp::ui::Selectable::toModify
bool toModify() const
True if either to delete or to install.
Definition: Selectable.h:468
zypp::ui::asSelectable::result_type
Selectable_Ptr result_type
Definition: Selectable.h:567
zypp::ui::Selectable::_pimpl
RW_pointer< Impl > _pimpl
Pointer to implementation.
Definition: Selectable.h:551
zypp::ui::Selectable::get
static Ptr get(ResKind kind_r, const std::string &name_r)
Get the Selctable by kind and name.
Definition: Selectable.h:88
PtrTypes.h
zypp::ui::Selectable::pickInstall
bool pickInstall(const PoolItem &pi_r, ResStatus::TransactByValue causer_r=ResStatus::USER, bool yesno_r=true)
Select a specific available item for installation.
Definition: Selectable.cc:187
zypp::ui::Selectable::identIsAutoInstalled
bool identIsAutoInstalled() const
Whether this ident is flagged as AutoInstalled.
Definition: Selectable.cc:85
zypp::ui::Selectable::identicalInstalledCandidate
bool identicalInstalledCandidate() const
True if the candidateObj is installed (same content).
Definition: Selectable.h:176
zypp::ResStatus::TransactByValue
TransactByValue
Definition: ResStatus.h:106
zypp::ui::Selectable::setToInstall
bool setToInstall(ResStatus::TransactByValue causer_r=ResStatus::USER)
Set the item to be installed (new- or re-install).
Definition: Selectable.h:492
zypp::ui::S_Taboo
Definition: Status.h:37
zypp::ui::Selectable::installed_iterator
SelectableTraits::installed_iterator installed_iterator
Definition: Selectable.h:64
zypp::ui::Selectable::installedEnd
installed_iterator installedEnd() const
Definition: Selectable.cc:141
zypp::ui::Selectable::picklistNoPos
static constexpr const picklist_size_type picklistNoPos
Returned by picklistPos if the Item does not belong to the picklist.
Definition: Selectable.h:287
zypp::ui::Selectable::available_size_type
SelectableTraits::available_size_type available_size_type
Definition: Selectable.h:62
zypp::ui::Selectable::availableEmpty
bool availableEmpty() const
Definition: Selectable.cc:118
zypp::ui::SelectableTraits::available_iterator
AvailableItemSet::iterator available_iterator
Definition: SelectableTraits.h:119
zypp::ResObject::constPtr
TraitsType::constPtrType constPtr
Definition: ResObject.h:43
zypp::ui::Selectable::setFate
bool setFate(Fate fate_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Definition: Selectable.cc:259
zypp::ui::Selectable::setOnSystem
bool setOnSystem(const PoolItem &newCandidate_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Arrange the specified candidate (out of available objects) to be on system after commit.
Definition: Selectable.cc:106
bool
zypp::ui::Selectable::hasCandidateObj
bool hasCandidateObj() const
True if candidate object is present.
Definition: Selectable.h:314
zypp::ui::Selectable::toInstall
bool toInstall() const
True if to install.
Definition: Selectable.h:476
zypp::ui::Selectable::hasCandidateObjOnly
bool hasCandidateObjOnly() const
True if candidate object is present but no installed.
Definition: Selectable.h:326
zypp::IdString
Access to the sat-pools string space.
Definition: IdString.h:41
zypp::RW_pointer< Impl >
SelectableTraits.h
zypp::ui::Selectable::pickNoDelete
bool pickNoDelete(const PoolItem &pi_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Deselect a specific installed item from deletion.
Definition: Selectable.h:370
zypp::ui::Selectable::Impl_Ptr
shared_ptr< Impl > Impl_Ptr
Definition: Selectable.h:542
zypp::ui::Selectable::installedObj
PoolItem installedObj() const
The last Installed object.
Definition: Selectable.cc:70
zypp::ui::SelectableTraits::installed_size_type
AvailableItemSet::size_type installed_size_type
Definition: SelectableTraits.h:126
zypp::ui::asSelectable::operator()
Selectable_Ptr operator()(const sat::Solvable &solv_r) const
Definition: SolvIterMixin.cc:59
zypp::ui::Selectable::setToDelete
bool setToDelete(ResStatus::TransactByValue causer_r=ResStatus::USER)
Set the item to be deleted (must be installed).
Definition: Selectable.h:502
zypp::ui::Selectable::setUpToDate
bool setUpToDate(ResStatus::TransactByValue causer_r=ResStatus::USER)
Take care the item gets installed if it is not, or is older.
Definition: Selectable.cc:291
zypp::ui::Selectable::pickNoInstall
bool pickNoInstall(const PoolItem &pi_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Deselect a specific available item from installation.
Definition: Selectable.h:361
zypp::ui::Selectable::updateCandidateObj
PoolItem updateCandidateObj() const
The best candidate for update, if there is one.
Definition: Selectable.cc:79
zypp::ui::Selectable::hasInstalledObjOnly
bool hasInstalledObjOnly() const
True if installed object is present but no candidate.
Definition: Selectable.h:322
zypp::base::NonCopyable
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Definition: NonCopyable.h:26
zypp::ui::Selectable::Fate
Fate
Definition: Selectable.h:439
zypp::ui::Selectable::identicalInstalledUpdateCandidate
bool identicalInstalledUpdateCandidate() const
True if the updateCandidateObj is installed (same content).
Definition: Selectable.h:182
zypp::ui::Selectable::picklistSize
picklist_size_type picklistSize() const
Definition: Selectable.cc:149
zypp::ui::DEFINE_PTR_TYPE
DEFINE_PTR_TYPE(Selectable)
zypp::ui::Selectable::isUnmaintained
bool isUnmaintained() const
True if this package has no replacement from the available repositories.
Definition: Selectable.cc:181
zypp::ui::Selectable::constPtr
intrusive_ptr< const Selectable > constPtr
Definition: Selectable.h:58
zypp::ui::Selectable::pickStatus
Status pickStatus(const PoolItem &pi_r) const
Compute the ui::Status for an individual PoolItem.
Definition: Selectable.cc:193
zypp::ui::Selectable::isSatisfied
bool isSatisfied() const
Whether a relevant patchs requirements are met.
Definition: Selectable.cc:207
zypp::ui::Selectable::get
static Ptr get(const ResObject::constPtr &resolvable_r)
Get the Selctable containing a specific ResObject.
Definition: Selectable.h:100
zypp::ui::SelectableTraits::picklist_size_type
PickList::size_type picklist_size_type
Definition: SelectableTraits.h:130
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
zypp::ui::SelectableTraits::picklist_iterator
PickList::const_iterator picklist_iterator
Definition: SelectableTraits.h:129
zypp::ui::Selectable::candidateObj
PoolItem candidateObj() const
The 'best' or 'most interesting' among all available objects.
Definition: Selectable.cc:73
zypp::ui::Selectable::modifiedBy
ResStatus::TransactByValue modifiedBy() const
Return who caused the modification.
Definition: Selectable.cc:223
zypp::ui::Selectable::UNMODIFIED
Definition: Selectable.h:441
zypp::ui::Selectable::installedEmpty
bool installedEmpty() const
Definition: Selectable.cc:132
zypp::ui::Selectable::installedAsKind
ResTraits< TRes >::constPtrType installedAsKind() const
Return the installedObj resolvable casted to a specific kind.
Definition: Selectable.h:204
zypp::ui::Selectable::ident
IdString ident() const
The identifier.
Definition: Selectable.cc:55
zypp::ui::S_Protected
Definition: Status.h:36
zypp::ui::Selectable::picklist_size_type
SelectableTraits::picklist_size_type picklist_size_type
Definition: Selectable.h:68
zypp::ui::Selectable::picklistEnd
picklist_iterator picklistEnd() const
Definition: Selectable.cc:155
zypp::ui::Selectable::setInstalled
bool setInstalled(ResStatus::TransactByValue causer_r=ResStatus::USER)
Take care the item gets installed if it is not.
Definition: Selectable.cc:286
zypp::ui::Selectable::identicalInstalledObj
PoolItem identicalInstalledObj(const PoolItem &rhs) const
\Return an installed Object with the same content as rhs.
Definition: Selectable.cc:97
zypp::ui::Selectable::get
static Ptr get(const sat::Solvable &solv_r)
Get the Selctable containing a specific sat::Solvable.
Definition: Selectable.h:96
Iterator.h
zypp::ui::Selectable::isNeeded
bool isNeeded() const
This includes unlocked broken patches, as well as those already selected to be installed.
Definition: Selectable.cc:213
zypp::ui::Selectable::hasRetractedInstalled
bool hasRetractedInstalled() const
True if this Selectable contains an installed retracted item.
Definition: Selectable.cc:178
zypp::ui::Selectable::isUndetermined
bool isUndetermined() const
Returns true for packages, because packages are not classified by the solver.
Definition: Selectable.cc:201
zypp::ui::Selectable::hasBothObjects
bool hasBothObjects() const
True if installed and candidate object is present.
Definition: Selectable.h:318
zypp::pool::ByIdent
Main filter selecting PoolItems by name and kind.
Definition: ByIdent.h:26
zypp::ui::Selectable::setPickStatus
bool setPickStatus(const PoolItem &pi_r, Status state_r, ResStatus::TransactByValue causer_r=ResStatus::USER)
Assign a new status to a specific item.
Definition: Selectable.cc:196
zypp::ui::Selectable::identicalInstalled
bool identicalInstalled(const PoolItem &rhs) const
True if rhs has the same content as an installed one.
Definition: Selectable.cc:91
zypp::ui::Selectable::toDelete
bool toDelete() const
True if to delete.
Definition: Selectable.h:472
zypp::ui::Selectable::get
static Ptr get(const PoolItem &pi_r)
Get the Selctable containing a specific PoolItem.
Definition: Selectable.h:104
zypp::ui::Selectable::availableEnd
available_iterator availableEnd() const
Definition: Selectable.cc:127
zypp::ui::Selectable::Impl
Selectable implementation.
Definition: SelectableImpl.h:42
zypp::ui::Status
Status
UI status Status values calculated by Selectable.
Definition: Status.h:34
ReferenceCounted.h
zypp::ui::Selectable::picklist
Iterable< picklist_iterator > picklist() const
Definition: Selectable.h:283
zypp::ui::Selectable::unmodified
bool unmodified() const
True if neither to delete or to install.
Definition: Selectable.h:448
zypp::ui::Selectable::hasRetracted
bool hasRetracted() const
True if this Selectable contains a retracted item.
Definition: Selectable.cc:175
zypp::ResStatus::USER
Definition: ResStatus.h:111
zypp::ui::asSelectable
Solvable to Selectable transform functor.
Definition: Selectable.h:565
zypp::ui::Selectable::~Selectable
~Selectable()
Dtor.
Definition: Selectable.cc:45
zypp::ui::Selectable::availableSize
available_size_type availableSize() const
Definition: Selectable.cc:121
zypp::ui::Selectable::operator<<
friend std::ostream & operator<<(std::ostream &str, const Selectable &obj)
Definition: Selectable.cc:313
zypp::ui::Selectable::theObj
PoolItem theObj() const
An object you could use as pars pro toto.
Definition: Selectable.cc:113
zypp::ui::Selectable::get
static Ptr get(const pool::ByIdent &ident_r)
Get the Selctable.
Definition: Selectable.cc:28
zypp::ui::Selectable::name
const std::string & name() const
The ResObjects name.
Definition: Selectable.cc:61
zypp::ui::Selectable::installed_size_type
SelectableTraits::installed_size_type installed_size_type
Definition: Selectable.h:65
Status.h
zypp::ui::Selectable::candidateObjFrom
PoolItem candidateObjFrom(Repository repo_r) const
The best candidate provided by a specific Repository, if there is one.
Definition: Selectable.cc:76
zypp::ui::Selectable::availableBegin
available_iterator availableBegin() const
Definition: Selectable.cc:124
zypp::ui::Selectable::pickDelete
bool pickDelete(const PoolItem &pi_r, ResStatus::TransactByValue causer_r=ResStatus::USER, bool yesno_r=true)
Select a specific installed item for deletion.
Definition: Selectable.cc:190
zypp::ui::SelectableTraits::available_size_type
AvailableItemSet::size_type available_size_type
Definition: SelectableTraits.h:121
zypp::ui::SelectableTraits::installed_iterator
AvailableItemSet::iterator installed_iterator
Definition: SelectableTraits.h:124
zypp::ui::Selectable::get
static Ptr get(IdString ident_r)
Get the Selctable by it's sat-identifyer.
Definition: Selectable.h:84
zypp::ui::Selectable::picklist_iterator
SelectableTraits::picklist_iterator picklist_iterator
Definition: Selectable.h:67
zypp::ui::Selectable::Selectable
Selectable(Impl_Ptr pimpl_r)
Default ctor.
Definition: Selectable.cc:36
zypp::ui::Selectable::setLicenceConfirmed
void setLicenceConfirmed(bool val_r=true)
Set LicenceConfirmed bit.
Definition: Selectable.cc:229
zypp::ui::Selectable::candidateAsKind
ResTraits< TRes >::constPtrType candidateAsKind() const
Return the candidateObj resolvable casted to a specific kind.
Definition: Selectable.h:214
str
String related utilities and Regular expression matching.
zypp::ui::Selectable::onSystem
bool onSystem() const
True if would be on system after commit.
Definition: Selectable.h:480
zypp::ui::Selectable::unset
bool unset(ResStatus::TransactByValue causer_r=ResStatus::USER)
Set the item to stay unmodified.
Definition: Selectable.h:509
zypp::Repository
Definition: Repository.h:39
zypp::ui::Selectable::picklistEmpty
bool picklistEmpty() const
Definition: Selectable.cc:146
zypp::ui::Selectable::installedBegin
installed_iterator installedBegin() const
Definition: Selectable.cc:138
zypp::ui::Selectable::hasLocks
bool hasLocks() const
True if it includes locked items (don't mix this with the locked status).
Definition: Selectable.cc:232
zypp::ui::operator<<
std::ostream & operator<<(std::ostream &str, const Selectable &obj)
Definition: Selectable.cc:313
zypp::ResKind
Resolvable kinds. A lowercased string and used as identification. Comparison against string values is...
Definition: ResKind.h:32
zypp::ui::Selectable::hasObject
bool hasObject() const
True if either installed or candidate object is present.
Definition: Selectable.h:306
zypp::Iterable
Definition: Iterable.h:36
zypp::ui::Selectable::available
Iterable< available_iterator > available() const
Definition: Selectable.h:254
NonCopyable.h