libzypp  17.37.5
MediaHandlerFactory.h
Go to the documentation of this file.
1 #ifndef MEDIAHANDLERFACTORY_H
2 #define MEDIAHANDLERFACTORY_H
3 
4 #include <zypp/Pathname.h>
5 #include <zypp/Url.h>
6 #include <zypp/media/MediaUrl.h>
7 #include <memory>
8 #include <optional>
9 
10 
11 namespace zypp::media {
12 
13  class MediaHandler;
14 
16  {
17  public:
18 
28  };
29 
31  static std::unique_ptr<MediaHandler> createHandler (const std::vector<MediaUrl>& o_url, const Pathname & preferred_attach_point);
32  static std::optional<MediaHandlerType> handlerType( const Url &url );
33  };
34 
35 }
36 
37 
38 #endif // MEDIAHANDLERFACTORY_H
static std::optional< MediaHandlerType > handlerType(const Url &url)
static std::unique_ptr< MediaHandler > createHandler(const std::vector< MediaUrl > &o_url, const Pathname &preferred_attach_point)
Url manipulation class.
Definition: Url.h:92