libzypp  17.14.0
RpmPostTransCollector.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
11 #ifndef ZYPP_TARGET_RPMPOSTTRANSCOLLECTOR_H
12 #define ZYPP_TARGET_RPMPOSTTRANSCOLLECTOR_H
13 
14 #include <iosfwd>
15 
16 #include "zypp/base/PtrTypes.h"
17 #include "zypp/ManagedFile.h"
18 #include "zypp/Pathname.h"
19 
21 namespace zypp
22 {
24  namespace target
25  {
32  {
33  friend std::ostream & operator<<( std::ostream & str, const RpmPostTransCollector & obj );
34  friend std::ostream & dumpOn( std::ostream & str, const RpmPostTransCollector & obj );
35 
36  public:
38  RpmPostTransCollector( const Pathname & root_r );
39 
42 
43  public:
47  bool collectScriptFromPackage( ManagedFile rpmPackage_r );
48 
52  bool executeScripts();
53 
55  void discardScripts();
56 
57  public:
58  class Impl;
59  private:
61  };
62 
64  std::ostream & operator<<( std::ostream & str, const RpmPostTransCollector & obj );
65 
67  std::ostream & dumOn( std::ostream & str, const RpmPostTransCollector & obj );
68 
69  } // namespace target
71 } // namespace zypp
73 #endif // ZYPP_TARGET_RPMPOSTTRANSCOLLECTOR_H