ignore
[platform/upstream/libzypp.git] / zypp / ZYppCommitResult.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/ZYppCommitResult.h
10  *
11 */
12 #ifndef ZYPP_ZYPPCOMMITRESULT_H
13 #define ZYPP_ZYPPCOMMITRESULT_H
14
15 #include <iosfwd>
16 #include <list>
17
18 #include "zypp/PoolItem.h"
19
20 ///////////////////////////////////////////////////////////////////
21 namespace zypp
22 { /////////////////////////////////////////////////////////////////
23
24   ///////////////////////////////////////////////////////////////////
25   //
26   //    CLASS NAME : ZYppCommitResult
27   //
28   /** Result returned from ZYpp::commit.
29    * \see \ref ZYpp::commit
30    * \todo document fields.
31   */
32   struct ZYppCommitResult
33   {
34     ZYppCommitResult()
35     : _result(0)
36     {}
37
38     typedef std::list<PoolItem_Ref> PoolItemList;
39
40     /**
41      * number of committed resolvables
42      **/
43     int          _result;
44
45     /**
46      * list of resolvables with error
47      **/
48     PoolItemList _errors;
49     /**
50      * list of resolvables remaining (due to wrong media)
51      **/
52     PoolItemList _remaining;
53     /**
54      * list of kind:source resolvables remaining (due to wrong media)
55      **/
56     PoolItemList _srcremaining;
57   };
58   ///////////////////////////////////////////////////////////////////
59
60   /** \relates ZYppCommitResult Stream output. */
61   std::ostream & operator<<( std::ostream & str, const ZYppCommitResult & obj );
62
63   /////////////////////////////////////////////////////////////////
64 } // namespace zypp
65 ///////////////////////////////////////////////////////////////////
66 #endif // ZYPP_ZYPPCOMMITRESULT_H