libzypp 17.36.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>
6#include <memory>
7#include <optional>
8
9
10namespace zypp::media {
11
12 class MediaHandler;
13
15 {
16 public:
17
28
30 static std::unique_ptr<MediaHandler> createHandler (const Url& o_url, const Pathname & preferred_attach_point);
31 static std::optional<MediaHandlerType> handlerType( const Url &url );
32 };
33
34}
35
36
37#endif // MEDIAHANDLERFACTORY_H
Url manipulation class.
Definition Url.h:93
static std::unique_ptr< MediaHandler > createHandler(const Url &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