libzypp  15.28.6
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 
50  void executeScripts();
51 
53  void discardScripts();
54 
55  public:
56  class Impl;
57  private:
59  };
60 
62  std::ostream & operator<<( std::ostream & str, const RpmPostTransCollector & obj );
63 
65  std::ostream & dumOn( std::ostream & str, const RpmPostTransCollector & obj );
66 
67  } // namespace target
69 } // namespace zypp
71 #endif // ZYPP_TARGET_RPMPOSTTRANSCOLLECTOR_H
void discardScripts()
Discard all remembered scrips.
friend std::ostream & dumpOn(std::ostream &str, const RpmPostTransCollector &obj)
RW_pointer< Impl > _pimpl
Implementation class.
RpmPostTransCollector(const Pathname &root_r)
Default ctor.
Extract and remember posttrans scripts for later execution.
friend std::ostream & operator<<(std::ostream &str, const RpmPostTransCollector &obj)
bool collectScriptFromPackage(ManagedFile rpmPackage_r)
Extract and remember a packages posttrans script for later execution.
RpmPostTransCollector implementation.
std::ostream & operator<<(std::ostream &str, const CommitPackageCache &obj)
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Definition: AutoDispose.h:92
void executeScripts()
Execute te remembered scripts.