libzypp 17.37.17
MediaHandlerFactory.h
Go to the documentation of this file.
1#ifndef MEDIAHANDLERFACTORY_H
2#define MEDIAHANDLERFACTORY_H
3
5#include <zypp-core/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 MirroredOrigin &origin, const Pathname & preferred_attach_point);
32 static std::optional<MediaHandlerType> handlerType( const Url &url );
33 };
34
35}
36
37
38#endif // MEDIAHANDLERFACTORY_H
Manages a data source characterized by an authoritative URL and a list of mirror URLs.
Url manipulation class.
Definition Url.h:93
static std::optional< MediaHandlerType > handlerType(const Url &url)
static std::unique_ptr< MediaHandler > createHandler(const MirroredOrigin &origin, const Pathname &preferred_attach_point)
Abstract base class for 'physical' MediaHandler like MediaCD, etc.
Url details namespace.
Definition UrlBase.cc:58