libzypp  13.10.6
PluginServices.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 
10 #ifndef ZYPP_REPO_PLUGINSERVICES_H
11 #define ZYPP_REPO_PLUGINSERVICES_H
12 
13 #include <iosfwd>
14 
15 #include "zypp/base/PtrTypes.h"
16 #include "zypp/ProgressData.h"
17 #include "zypp/Pathname.h"
18 
20 namespace zypp
21 {
22 
23  class ServiceInfo;
25  namespace repo
26  {
27 
29  {
30  friend std::ostream & operator<<( std::ostream & str, const PluginServices& obj );
31  public:
32 
40  typedef function< bool( const ServiceInfo & )> ProcessService;
41 
43  class Impl;
44 
45  public:
46  PluginServices(const Pathname &path,
47  const ProcessService & callback);
48 
53  };
55 
57  std::ostream & operator<<( std::ostream & str, const PluginServices & obj );
58 
60  } // namespace repo
63 } // namespace zypp
65 #endif // ZYPP_REPO_LOCALSERVICES_H
PluginServices(const Pathname &path, const ProcessService &callback)
std::ostream & operator<<(std::ostream &str, const DeltaCandidates &obj)
function< bool(const ServiceInfo &)> ProcessService
Callback definition.
friend std::ostream & operator<<(std::ostream &str, const PluginServices &obj)