libzypp  13.10.6
ResStatus.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_RESSTATUS_H
13 #define ZYPP_RESSTATUS_H
14 
15 #include <inttypes.h>
16 #include <iosfwd>
17 #include "zypp/Bit.h"
18 
20 namespace zypp
21 {
22 
23  namespace resstatus
24  {
25  class UserLockQueryManip;
26  class StatusBackup;
27  }
28 
30  //
31  // CLASS NAME : ResStatus
32  //
53  class ResStatus
54  {
55  friend std::ostream & operator<<( std::ostream & str, const ResStatus & obj );
56  friend bool operator==( const ResStatus & lhs, const ResStatus & rhs );
57 
58  public:
65  typedef uint16_t FieldType;
67  // Bit Ranges within FieldType defined by 1st bit and size:
76  // enlarge FieldType if more bit's needed. It's not yet
77  // checked by the compiler.
79  public:
80 
89  {
92  };
94  {
99  };
101  {
103  LOCKED = bit::RangeValue<TransactField,1>::value, // locked, must not transact
104  TRANSACT = bit::RangeValue<TransactField,2>::value // transact according to state
105  };
107  {
112  };
113 
115  {
118  };
120  {
123  };
125  {
130  };
131 
133  {
136  };
137 
138  enum WeakValue // Unlike the other fields those are BITS that may be or'ed!
139  {
145  };
146 
147  enum UserLockQuery // internal
148  {
151  };
153 
154  public:
155 
157  ResStatus();
158 
160  ResStatus( bool isInstalled_r );
161 
163  ~ResStatus();
164 
171  { return _bitfield; }
172 
173  public:
174 
175  bool isLicenceConfirmed() const
176  { return fieldValueIs<LicenceConfirmedField>( LICENCE_CONFIRMED ); }
177 
178  void setLicenceConfirmed( bool toVal_r = true )
179  { fieldValueAssign<LicenceConfirmedField>( toVal_r ? LICENCE_CONFIRMED : LICENCE_UNCONFIRMED ); }
180 
181  public:
182  bool isRecommended() const
183  { return _bitfield.test( RECOMMENDED ); }
184 
185  bool isSuggested() const
186  { return _bitfield.test( SUGGESTED ); }
187 
188  bool isOrphaned() const
189  { return _bitfield.test( ORPHANED ); }
190 
191  bool isUnneeded() const
192  { return _bitfield.test( UNNEEDED ); }
193 
194  void resetWeak()
195  { return fieldValueAssign<WeakField>( NO_WEAK ); }
196 
197  void setRecommended( bool toVal_r = true )
198  { _bitfield.set( RECOMMENDED, toVal_r ); }
199 
200  void setSuggested( bool toVal_r = true )
201  { _bitfield.set( SUGGESTED, toVal_r ); }
202 
203  void setOrphaned( bool toVal_r = true )
204  { _bitfield.set( ORPHANED, toVal_r ); }
205 
206  void setUnneeded( bool toVal_r = true )
207  { _bitfield.set( UNNEEDED, toVal_r ); }
208 
209  public:
212 
213  bool isUndetermined() const
214  { return fieldValueIs<ValidateField>( UNDETERMINED ); }
215 
216  bool isSatisfied() const
217  { return fieldValueIs<ValidateField>( SATISFIED ); }
218 
219  bool isBroken() const
220  { return fieldValueIs<ValidateField>( BROKEN ); }
221 
222  bool isNonRelevant() const
223  { return fieldValueIs<ValidateField>( NONRELEVANT ); }
224 
225  public:
226  // These two are IMMUTABLE!
227 
228  bool isInstalled() const
229  { return fieldValueIs<StateField>( INSTALLED ); }
230 
231  bool isUninstalled() const
232  { return fieldValueIs<StateField>( UNINSTALLED ); }
233 
234  public:
235 
236  bool staysInstalled() const
237  { return isInstalled() && !transacts(); }
238 
239  bool wasInstalled() const { return staysInstalled(); } //for old status
240 
241  bool isToBeInstalled() const
242  { return isUninstalled() && transacts(); }
243 
244  bool staysUninstalled() const
245  { return isUninstalled() && !transacts(); }
246 
247  bool wasUninstalled() const { return staysUninstalled(); } // for old status
248 
249  bool isToBeUninstalled() const
250  { return isInstalled() && transacts(); }
251 
252  bool isLocked() const
253  { return fieldValueIs<TransactField>( LOCKED ); }
254 
255  bool isUserLocked() const
256  { return isLocked() && isByUser(); }
257 
258  bool isSoftLocked() const
259  { return isKept() && ( isByApplLow() || isByUser() ); }
260 
261  bool isKept() const
262  { return fieldValueIs<TransactField>( KEEP_STATE ); }
263 
264  bool transacts() const
265  { return fieldValueIs<TransactField>( TRANSACT ); }
266 
269 
271  bool onSystem() const
272  { return( isInstalled() != transacts() ); }
273 
275  bool offSystem() const
276  { return ! onSystem(); }
277 
278  bool isBySolver() const
279  { return fieldValueIs<TransactByField>( SOLVER ); }
280 
281  bool isByApplLow() const
282  { return fieldValueIs<TransactByField>( APPL_LOW ); }
283 
284  bool isByApplHigh() const
285  { return fieldValueIs<TransactByField>( APPL_HIGH ); }
286 
287  bool isByUser() const
288  { return fieldValueIs<TransactByField>( USER ); }
289 
292 
294  {
295  if ( isLessThan<TransactByField>( causer ) ) {
296  fieldValueAssign<TransactByField>( causer );
297  return true;
298  } else {
299  return false;
300  }
301  }
302 
304  { return isToBeUninstalled() && fieldValueIs<TransactDetailField>( DUE_TO_OBSOLETE ); }
305 
307  { return isToBeUninstalled() && fieldValueIs<TransactDetailField>( DUE_TO_UPGRADE ); }
308 
309  bool isToBeInstalledSoft () const
310  { return isToBeInstalled() && fieldValueIs<TransactDetailField>( SOFT_INSTALL ); }
311 
313  { return isToBeInstalled() && !fieldValueIs<TransactDetailField>( SOFT_INSTALL ); }
314 
315  bool isToBeUninstalledSoft () const
316  { return isToBeUninstalled() && fieldValueIs<TransactDetailField>( SOFT_REMOVE ); }
317 
318  private:
319 
323 
324  bool isUserLockQueryMatch() const
325  { return fieldValueIs<UserLockQueryField>( USERLOCK_MATCH ); }
326 
327  void setUserLockQueryMatch( bool match_r )
328  { fieldValueAssign<UserLockQueryField>( match_r ? USERLOCK_MATCH : USERLOCK_NOMATCH ); }
330 
331  public:
332 
333  //------------------------------------------------------------------------
334  // get/set functions, returnig \c true if requested status change
335  // was successfull (i.e. leading to the desired transaction).
336  // If a lower level (e.g.SOLVER) wants to transact, but it's
337  // already set by a higher level, \c true should be returned.
338  // Removing a higher levels transaction bit should fail.
339  //
340  // The may functions checks only, if the action would return true
341  // if it is called.
342 
346  bool setTransactValue( TransactValue newVal_r, TransactByValue causer_r )
347  {
348  switch ( newVal_r )
349  {
350  case KEEP_STATE:
351  return setTransact( false, causer_r );
352  break;
353  case LOCKED:
354  return setLock( true, causer_r );
355  break;
356  case TRANSACT:
357  return setTransact( true, causer_r );
358  break;
359  }
360  return false;
361  }
362 
364  {
365  bit::BitField<FieldType> savBitfield = _bitfield;
366  bool ret = setTransactValue( newVal_r, causer_r );
367  _bitfield = savBitfield;
368  return ret;
369  }
370 
376  bool setLock( bool toLock_r, TransactByValue causer_r )
377  {
378  if ( toLock_r == isLocked() )
379  {
380  // we're already in the desired state, but in case of
381  // LOCKED, remember a superior causer.
382  if ( isLocked() && isLessThan<TransactByField>( causer_r ) )
383  fieldValueAssign<TransactByField>( causer_r );
384  return true;
385  }
386  // Here: Lock status is to be changed:
387  if ( causer_r != USER && causer_r != APPL_HIGH )
388  return false;
389  if ( toLock_r ) {
390  // We're in unlocked state, which includes TRANSACT.
391  // Causer must be allowed to reset this. But from
392  // KEEP_STATE every causer is allowed to set the lock.
393  if ( ! setTransact( false, causer_r ) )
394  return false;
395  fieldValueAssign<TransactField>( LOCKED );
396  fieldValueAssign<TransactByField>( causer_r );
397  } else {
398  // To leave Locked state it needs a superior causer.
399  if ( isGreaterThan<TransactByField>( causer_r ) )
400  return false;
401  fieldValueAssign<TransactField>( KEEP_STATE );
402  fieldValueAssign<TransactByField>( SOLVER ); // reset to lowest causer
403  // in order to distinguish from keep_state_by_user
404  }
405  return true;
406  }
407 
408  bool maySetLock( bool to_r, TransactByValue causer_r )
409  {
410  bit::BitField<FieldType> savBitfield = _bitfield;
411  bool ret = setLock( to_r, causer_r );
412  _bitfield = savBitfield;
413  return ret;
414  }
415 
421  bool setTransact( bool toTansact_r, TransactByValue causer_r )
422  {
423  if ( toTansact_r == transacts() )
424  {
425  // we're already in the desired state, but in case of
426  // TRANSACT, remember a superior causer.
427  if ( transacts() && isLessThan<TransactByField>( causer_r ) )
428  fieldValueAssign<TransactByField>( causer_r );
429 
430  fieldValueAssign<TransactDetailField>( NO_DETAIL ); // Details has to be set again
431  return true;
432  }
433  // Here: transact status is to be changed:
434  if ( ! fieldValueIs<TransactField>( KEEP_STATE )
435  && isGreaterThan<TransactByField>( causer_r ) ) {
436  return false;
437  }
438 
439  if ( toTansact_r )
440  {
441  fieldValueAssign<TransactField>( TRANSACT );
442  }
443  else
444  {
445  fieldValueAssign<TransactField>( KEEP_STATE );
446  }
447  fieldValueAssign<TransactDetailField>( NO_DETAIL ); // Details has to be set again
448  fieldValueAssign<TransactByField>( causer_r );
449  return true;
450  }
451 
452  bool maySetTransact( bool val_r, TransactByValue causer )
453  {
454  bit::BitField<FieldType> savBitfield = _bitfield;
455  bool ret = setTransact (val_r, causer);
456  _bitfield = savBitfield;
457  return ret;
458  }
459 
461  bool setSoftLock( TransactByValue causer_r )
462  {
463  if ( ! setTransact( false, causer_r ) )
464  return false;
465  if ( fieldValueIs<TransactField>( KEEP_STATE )
466  && isLessThan<TransactByField>( causer_r ) )
467  fieldValueAssign<TransactByField>( causer_r );
468  return true;
469  }
470 
474  {
475  if ( ! setTransact( false, causer_r ) )
476  return false;
477  if ( fieldValueIs<TransactField>( KEEP_STATE ) )
478  fieldValueAssign<TransactByField>( SOLVER );
479  return true;
480  }
481 
491  bool setSoftTransact( bool toTansact_r, TransactByValue causer_r,
492  TransactByValue causerLimit_r )
493  {
494  if ( fieldValueIs<TransactField>( KEEP_STATE )
495  && toTansact_r != transacts()
496  && isGreaterThan<TransactByField>( causerLimit_r ) )
497  {
498  // any transact status change requires a superior causer.
499  return false;
500  }
501  return setTransact( toTansact_r, causer_r );
502  }
503 
504  bool setSoftTransact( bool toTansact_r, TransactByValue causer_r )
505  { return setSoftTransact( toTansact_r, causer_r, causer_r ); }
506 
507  bool maySetSoftTransact( bool val_r, TransactByValue causer,
508  TransactByValue causerLimit_r )
509  {
510  bit::BitField<FieldType> savBitfield = _bitfield;
511  bool ret = setSoftTransact( val_r, causer, causerLimit_r );
512  _bitfield = savBitfield;
513  return ret;
514  }
515 
516  bool maySetSoftTransact( bool val_r, TransactByValue causer )
517  { return maySetSoftTransact( val_r, causer, causer ); }
518 
520  {
521  if (isInstalled()) return false;
522  return setTransact (true, causer);
523  }
524 
526  {
527  bit::BitField<FieldType> savBitfield = _bitfield;
528  bool ret = setToBeInstalled (causer);
529  _bitfield = savBitfield;
530  return ret;
531  }
532 
534  {
535  if (!isInstalled()) return false;
536  return setTransact (true, causer);
537  }
538 
540  {
541  bit::BitField<FieldType> savBitfield = _bitfield;
542  bool ret = setToBeUninstalled (causer);
543  _bitfield = savBitfield;
544  return ret;
545  }
546 
547  //------------------------------------------------------------------------
548  // *** These are only for the Resolver ***
549 
551  {
552  if (!setToBeUninstalled (SOLVER)) return false;
553  fieldValueAssign<TransactDetailField>(DUE_TO_OBSOLETE);
554  return true;
555  }
556 
558  {
559  if (!setToBeUninstalled (causer)) return false;
560  fieldValueAssign<TransactDetailField>(DUE_TO_UPGRADE);
561  return true;
562  }
563 
565  {
566  if (isInstalled()
567  || !setSoftTransact (true, SOLVER))
568  return false;
569 
570  fieldValueAssign<TransactDetailField>(SOFT_INSTALL);
571  return true;
572  }
573 
575  {
576  if (!isInstalled()
577  || !setSoftTransact (true, SOLVER))
578  return false;
579 
580  fieldValueAssign<TransactDetailField>(SOFT_REMOVE);
581  return true;
582  }
583 
585  {
586  bit::BitField<FieldType> savBitfield = _bitfield;
587  bool ret = setToBeUninstalledSoft ();
588  _bitfield = savBitfield;
589  return ret;
590  }
591 
592  bool isSoftInstall () {
593  return fieldValueIs<TransactDetailField> (SOFT_INSTALL);
594  }
595 
596  bool isSoftUninstall () {
597  return fieldValueIs<TransactDetailField> (SOFT_REMOVE);
598  }
599 
600  bool setSoftInstall (bool flag) {
601  fieldValueAssign<TransactDetailField>(flag?SOFT_INSTALL:0);
602  return true;
603  }
604 
605  bool setSoftUninstall (bool flag) {
606  fieldValueAssign<TransactDetailField>(flag?SOFT_REMOVE:0);
607  return true;
608  }
609 
611  {
612  fieldValueAssign<ValidateField>(UNDETERMINED);
613  return true;
614  }
615 
616  bool setSatisfied ()
617  {
618  fieldValueAssign<ValidateField>(SATISFIED);
619  return true;
620  }
621 
622  bool setBroken ()
623  {
624  fieldValueAssign<ValidateField>(BROKEN);
625  return true;
626  }
627 
629  {
630  fieldValueAssign<ValidateField>(NONRELEVANT);
631  return true;
632  }
633 
634  bool setStatus( ResStatus newStatus_r )
635  {
636  // State field is immutable!
637  if ( _bitfield.value<StateField>() != newStatus_r._bitfield.value<StateField>() )
638  return false;
639  // Transaction state change allowed?
640  if ( ! setTransactValue( newStatus_r.getTransactValue(), newStatus_r.getTransactByValue() ) )
641  return false;
642 
643  // Ok, we take it all..
644  _bitfield = newStatus_r._bitfield;
645  return true;
646  }
647 
650  static const ResStatus toBeInstalled;
655 
656  private:
663 
666  template<class _Field>
667  bool fieldValueIs( FieldType val_r ) const
668  { return _bitfield.isEqual<_Field>( val_r ); }
669 
672  template<class _Field>
674  { _bitfield.assign<_Field>( val_r ); }
675 
678  template<class _Field>
679  bool isGreaterThan( FieldType val_r )
680  { return _bitfield.value<_Field>() > val_r; }
681 
682  template<class _Field>
683  bool isLessThan( FieldType val_r )
684  { return _bitfield.value<_Field>() < val_r; }
685 
686  private:
689  };
691 
693  std::ostream & operator<<( std::ostream & str, const ResStatus & obj );
694 
696  std::ostream & operator<<( std::ostream & str, ResStatus::TransactValue obj );
697 
699  std::ostream & operator<<( std::ostream & str, ResStatus::TransactByValue obj );
700 
702  inline bool operator==( const ResStatus & lhs, const ResStatus & rhs )
703  { return lhs._bitfield == rhs._bitfield; }
704 
706  inline bool operator!=( const ResStatus & lhs, const ResStatus & rhs )
707  { return ! (lhs == rhs); }
708 
710 
711  namespace resstatus
712  {
714  {
715  public:
717  : _status( 0 )
718  {}
719 
720  StatusBackup( ResStatus & status_r )
721  : _status( &status_r )
723  {}
724 
725  void replay()
726  { if ( _status ) _status->_bitfield = _bitfield; }
727 
728  private:
731  };
732  }
733 
735 } // namespace zypp
737 #endif // ZYPP_RESSTATUS_H
bool setSoftInstall(bool flag)
Definition: ResStatus.h:600
bool setTransactByValue(TransactByValue causer)
Definition: ResStatus.h:293
bool isByApplLow() const
Definition: ResStatus.h:281
StatusBackup(ResStatus &status_r)
Definition: ResStatus.h:720
_IntT value() const
Return the value.
Definition: Bit.h:179
bit::BitField< FieldType > BitFieldType
Definition: ResStatus.h:66
bool isSuggested() const
Definition: ResStatus.h:185
bool transacts() const
Definition: ResStatus.h:264
bool setUndetermined()
Definition: ResStatus.h:610
bool staysUninstalled() const
Definition: ResStatus.h:244
friend std::ostream & operator<<(std::ostream &str, const ResStatus &obj)
Definition: ResStatus.cc:71
TransactValue getTransactValue() const
Definition: ResStatus.h:267
bool isToBeUninstalledDueToUpgrade() const
Definition: ResStatus.h:306
ResStatus::BitFieldType _bitfield
Definition: ResStatus.h:730
bool isToBeUninstalled() const
Definition: ResStatus.h:249
bool setSoftUninstall(bool flag)
Definition: ResStatus.h:605
bool isNonRelevant() const
Definition: ResStatus.h:222
bool isUnneeded() const
Definition: ResStatus.h:191
bool isToBeInstalledSoft() const
Definition: ResStatus.h:309
bit::Range< FieldType, LicenceConfirmedField::end, 4 > WeakField
Definition: ResStatus.h:74
bool isToBeUninstalledSoft() const
Definition: ResStatus.h:315
static const ResStatus toBeInstalled
Definition: ResStatus.h:650
bool wasUninstalled() const
Definition: ResStatus.h:247
friend bool operator==(const ResStatus &lhs, const ResStatus &rhs)
bool isUninstalled() const
Definition: ResStatus.h:231
bool isLocked() const
Definition: ResStatus.h:252
bool isKept() const
Definition: ResStatus.h:261
bool isGreaterThan(FieldType val_r)
compare two values.
Definition: ResStatus.h:679
void setOrphaned(bool toVal_r=true)
Definition: ResStatus.h:203
Detail for no transact, i.e.
Definition: ResStatus.h:117
ValidateValue validate() const
Definition: ResStatus.h:210
Manipulator for ResStatus::UserLockQueryField.
Definition: PoolImpl.h:42
bool maySetLock(bool to_r, TransactByValue causer_r)
Definition: ResStatus.h:408
bool resetTransact(TransactByValue causer_r)
Not the same as setTransact( false ).
Definition: ResStatus.h:473
bit::Range< FieldType, WeakField::end, 1 > UserLockQueryField
Definition: ResStatus.h:75
void setLicenceConfirmed(bool toVal_r=true)
Definition: ResStatus.h:178
bool setToBeUninstalledDueToUpgrade(TransactByValue causer)
Definition: ResStatus.h:557
bool onSystem() const
True if would be on system after commit.
Definition: ResStatus.h:271
bool isSatisfied() const
Definition: ResStatus.h:216
bool isInstalled() const
Definition: ResStatus.h:228
static const ResStatus toBeUninstalledDueToUpgrade
Definition: ResStatus.h:652
bool setSoftLock(TransactByValue causer_r)
Definition: ResStatus.h:461
bool maySetToBeInstalled(TransactByValue causer)
Definition: ResStatus.h:525
BitFieldType _bitfield
Definition: ResStatus.h:688
bool isLessThan(FieldType val_r)
Definition: ResStatus.h:683
bool setSoftTransact(bool toTansact_r, TransactByValue causer_r, TransactByValue causerLimit_r)
Soft toggle between TRANSACT and KEEP_STATE.
Definition: ResStatus.h:491
BitField & assign(_IntT rhs)
Assign Range in rhs to this.
Definition: Bit.h:201
BitField & set(_IntT rhs, bool doset_r)
Set or unset bits of rhs.
Definition: Bit.h:229
bool isByUser() const
Definition: ResStatus.h:287
BitFieldType bitfield() const
Debug helper returning the bitfield.
Definition: ResStatus.h:170
bool isSoftUninstall()
Definition: ResStatus.h:596
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:120
bit::Range< FieldType, TransactField::end, 2 > TransactByField
Definition: ResStatus.h:71
bit::Range< FieldType, ValidateField::end, 2 > TransactField
Definition: ResStatus.h:70
bool setTransactValue(TransactValue newVal_r, TransactByValue causer_r)
Set TransactValue.
Definition: ResStatus.h:346
bool maySetTransact(bool val_r, TransactByValue causer)
Definition: ResStatus.h:452
bool maySetTransactValue(TransactValue newVal_r, TransactByValue causer_r)
Definition: ResStatus.h:363
bit::Range< FieldType, TransactDetailField::end, 1 > LicenceConfirmedField
Definition: ResStatus.h:73
static const ResStatus toBeUninstalledDueToObsolete
Definition: ResStatus.h:653
bit::Range< FieldType, StateField::end, 2 > ValidateField
Definition: ResStatus.h:69
bit::Range< FieldType, 0, 1 > StateField
Definition: ResStatus.h:68
bool setBroken()
Definition: ResStatus.h:622
uint16_t FieldType
Definition: ResStatus.h:65
bool isUserLocked() const
Definition: ResStatus.h:255
bool setLock(bool toLock_r, TransactByValue causer_r)
Apply a lock (prevent transaction).
Definition: ResStatus.h:376
bool setNonRelevant()
Definition: ResStatus.h:628
bool isByApplHigh() const
Definition: ResStatus.h:284
bool maySetToBeUninstalledSoft()
Definition: ResStatus.h:584
bool isLicenceConfirmed() const
Definition: ResStatus.h:175
~ResStatus()
Dtor.
Definition: ResStatus.cc:50
bool setToBeUninstalled(TransactByValue causer)
Definition: ResStatus.h:533
bool isBroken() const
Definition: ResStatus.h:219
bool setTransact(bool toTansact_r, TransactByValue causer_r)
Toggle between TRANSACT and KEEP_STATE.
Definition: ResStatus.h:421
bool isUndetermined() const
Definition: ResStatus.h:213
void setUserLockQueryMatch(bool match_r)
Definition: ResStatus.h:327
bool maySetSoftTransact(bool val_r, TransactByValue causer, TransactByValue causerLimit_r)
Definition: ResStatus.h:507
bit::Range< FieldType, TransactByField::end, 2 > TransactDetailField
Definition: ResStatus.h:72
void setRecommended(bool toVal_r=true)
Definition: ResStatus.h:197
bool fieldValueIs(FieldType val_r) const
Return whether the corresponding Field has value val_r.
Definition: ResStatus.h:667
bool isToBeInstalled() const
Definition: ResStatus.h:241
bool setStatus(ResStatus newStatus_r)
Definition: ResStatus.h:634
bool wasInstalled() const
Definition: ResStatus.h:239
bool maySetSoftTransact(bool val_r, TransactByValue causer)
Definition: ResStatus.h:516
bool setToBeUninstalledSoft()
Definition: ResStatus.h:574
bool maySetToBeUninstalled(TransactByValue causer)
Definition: ResStatus.h:539
bool isToBeUninstalledDueToObsolete() const
Definition: ResStatus.h:303
bool setToBeInstalled(TransactByValue causer)
Definition: ResStatus.h:519
bool isEqual(_IntT rhs) const
Test for equal value within a Range.
Definition: Bit.h:215
Status bitfield.
Definition: ResStatus.h:53
bool setSoftTransact(bool toTansact_r, TransactByValue causer_r)
Definition: ResStatus.h:504
bool isOrphaned() const
Definition: ResStatus.h:188
bool isSoftLocked() const
Definition: ResStatus.h:258
void fieldValueAssign(FieldType val_r)
Set the corresponding Field to value val_r.
Definition: ResStatus.h:673
void resetWeak()
Definition: ResStatus.h:194
bool setToBeInstalledSoft()
Definition: ResStatus.h:564
void setUnneeded(bool toVal_r=true)
Definition: ResStatus.h:206
bool isBySolver() const
Definition: ResStatus.h:278
ResStatus()
Default ctor.
Definition: ResStatus.cc:33
bool isToBeInstalledNotSoft() const
Definition: ResStatus.h:312
bool setSatisfied()
Definition: ResStatus.h:616
Range of bits starting at bit _begin with length _size.
Definition: Bit.h:81
static const ResStatus toBeUninstalled
Definition: ResStatus.h:651
bool setToBeUninstalledDueToObsolete()
Definition: ResStatus.h:550
bool offSystem() const
True if would be off system after commit.
Definition: ResStatus.h:275
bool isSoftInstall()
Definition: ResStatus.h:592
bool isUserLockQueryMatch() const
Definition: ResStatus.h:324
TransactByValue getTransactByValue() const
Definition: ResStatus.h:290
bool staysInstalled() const
Definition: ResStatus.h:236
bool isRecommended() const
Definition: ResStatus.h:182
bool test(_IntT rhs)
Test whether all bits of rhs are set.
Definition: Bit.h:253
void setSuggested(bool toVal_r=true)
Definition: ResStatus.h:200
bool operator!=(const ResStatus &lhs, const ResStatus &rhs)
Definition: ResStatus.h:706
A value with in a Range.
Definition: Bit.h:110