Imported Upstream version 14.42.0
[platform/upstream/libzypp.git] / zypp / ZYppCommitResult.h
index 2ff53d0..c6e86cf 100644 (file)
@@ -66,7 +66,9 @@ namespace zypp
 
     public:
       ZYppCommitResult();
+      ZYppCommitResult( const ZYppCommitResult & lhs_r );
       ZYppCommitResult( const Pathname & root_r );
+      ~ZYppCommitResult();
 
     public:
       /** Remembered root directory of the target.
@@ -75,6 +77,16 @@ namespace zypp
       */
       const Pathname & root() const;
 
+      /** \c True if at least one attempt to actually install/remove packages was made.
+       * While this is false there should have been no serious modifications to the system.
+       * Mainly used to detect whether commit failed while preloading the caches or within
+       * the real action.
+       */
+      bool attemptToModify() const;
+
+      /** Set \ref attemptToModify */
+      void attemptToModify( bool yesno_r );
+
       /** The full transaction list.
        * The complete list including transaction steps that do not require
        * any action (like obsoletes or non-package actions). Depending on
@@ -162,32 +174,6 @@ namespace zypp
       //@}
 
     public:
-      /** \name Oldstlye interface to be removed asap.
-       * \deprecated PoolItem is not suitable for reporting errors about
-       * packages to be deteled, as reloading the rpm database after commit
-       * invalidates them.
-       */
-      //@{
-      typedef std::list<PoolItem> PoolItemList;
-      /**
-       * number of committed resolvables
-       **/
-      int          _result ZYPP_DEPRECATED;
-      /**
-       * list of resolvables with error
-       **/
-      PoolItemList _errors ZYPP_DEPRECATED;
-      /**
-       * list of resolvables remaining (due to wrong media)
-       **/
-      PoolItemList _remaining ZYPP_DEPRECATED;
-      /**
-       * list of kind:source resolvables remaining (due to wrong media)
-       **/
-      PoolItemList _srcremaining ZYPP_DEPRECATED;
-      //@}
-
-    public:
       /** Implementation  */
       class Impl;
     private: