Imported Upstream version 17.9.0
[platform/upstream/libzypp.git] / zypp / sat / Solvable.h
index 2702333..38db264 100644 (file)
@@ -121,12 +121,26 @@ namespace zypp
       bool isSystem() const;
 
       /** Whether this is known to be installed on behalf of a user request.
-       * \note This is a hint guessed by evaluating an available install history.
-       * Returns \c false for non-system (uninstalled) solvables, or if no history
-       * is available.
+       * \note Returns \c false for non-system (uninstalled) solvables.
        */
       bool onSystemByUser() const;
 
+      /** Whether this is known to be automatically installed (as dependency of a user request package).
+       * \note Returns \c false for non-system (uninstalled) solvables.
+       */
+      bool onSystemByAuto() const;
+
+      /** Whether an installed solvable with the same \ref ident is flagged as AutoInstalled. */
+      bool identIsAutoInstalled() const
+      { return identIsAutoInstalled( ident() ); }
+      /** \overload static version */
+      static bool identIsAutoInstalled( const IdString & ident_r );
+
+      /** Whether installing or upgrading a solvable with the same \ref ident will trigger the reboot needed hint. */
+      bool identTriggersRebootNeededHint() const
+      { return identTriggersRebootNeededHint( ident() ); }
+      static bool identTriggersRebootNeededHint ( const IdString &ident_r );
+
       /** Whether different versions of this package can be installed at the same time.
        * Per default \c false. \see also \ref ZConfig::multiversion.
        */