libzypp 17.37.3
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>
7#include <memory>
8#include <optional>
9
10
11namespace zypp::media {
12
13 class MediaHandler;
14
16 {
17 public:
18
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
Url manipulation class.
Definition Url.h:93
static std::unique_ptr< MediaHandler > createHandler(const std::vector< MediaUrl > &o_url, const Pathname &preferred_attach_point)
static std::optional< MediaHandlerType > handlerType(const Url &url)
Abstract base class for 'physical' MediaHandler like MediaCD, etc.
Url details namespace.
Definition UrlBase.cc:58