libzypp: zypp/media/MediaHandlerFactory.h Source File

libzypp 17.38.14

MediaHandlerFactory.h
Go to the documentation of this file.
1#ifndef MEDIAHANDLERFACTORY_H
2#define MEDIAHANDLERFACTORY_H
3
4#include <zypp-core/Pathname.h>
5#include <zypp-core/Url.h>
6#include <zypp-core/MirroredOrigin.h>
7#include <memory>
8#include <optional>
9
10
11namespace zypp::media {
12
13 class MediaHandler;
14
15 class MediaHandlerFactory
16 {
17 public:
18
19 enum MediaHandlerType {
20 MediaCDType,
21 MediaNFSType,
22 MediaISOType,
23 MediaFileType,
24 MediaDISKType,
25 MediaCIFSType,
26 MediaCURLType,
27 MediaPluginType
28 };
29
30 MediaHandlerFactory();
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
MirroredOrigin.h
Pathname.h
Url.h
zypp::MirroredOrigin
Manages a data source characterized by an authoritative URL and a list of mirror URLs.
Definition MirroredOrigin.h:170
zypp::Url
Url manipulation class.
Definition Url.h:93
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:48
zypp::media::MediaHandlerFactory::MediaHandlerFactory
MediaHandlerFactory()
Definition MediaHandlerFactory.cc:27
zypp::media::MediaHandlerFactory::MediaHandlerType
MediaHandlerType
Definition MediaHandlerFactory.h:19
zypp::media::MediaHandlerFactory::MediaDISKType
@ MediaDISKType
Definition MediaHandlerFactory.h:24
zypp::media::MediaHandlerFactory::MediaPluginType
@ MediaPluginType
Definition MediaHandlerFactory.h:27
zypp::media::MediaHandlerFactory::MediaCIFSType
@ MediaCIFSType
Definition MediaHandlerFactory.h:25
zypp::media::MediaHandlerFactory::MediaNFSType
@ MediaNFSType
Definition MediaHandlerFactory.h:21
zypp::media::MediaHandlerFactory::MediaFileType
@ MediaFileType
Definition MediaHandlerFactory.h:23
zypp::media::MediaHandlerFactory::MediaISOType
@ MediaISOType
Definition MediaHandlerFactory.h:22
zypp::media::MediaHandlerFactory::MediaCURLType
@ MediaCURLType
Definition MediaHandlerFactory.h:26
zypp::media::MediaHandlerFactory::MediaCDType
@ MediaCDType
Definition MediaHandlerFactory.h:20
zypp::media::MediaHandlerFactory::handlerType
static std::optional< MediaHandlerType > handlerType(const Url &url)
Definition MediaHandlerFactory.cc:32
zypp::media::MediaHandlerFactory::createHandler
static std::unique_ptr< MediaHandler > createHandler(const MirroredOrigin &origin, const Pathname &preferred_attach_point)
Definition MediaHandlerFactory.cc:54
zypp::media::MediaHandler
Abstract base class for 'physical' MediaHandler like MediaCD, etc.
Definition MediaHandler.h:50
zypp::media
Definition MediaNetworkRequestExecutor.h:22
zypp::url
Url details namespace.
Definition UrlBase.cc:58