libzypp: zypp/media/MediaHandlerFactory.h Source File

libzypp 17.36.6

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
14 class MediaHandlerFactory
15 {
16 public:
17
18 enum MediaHandlerType {
19 MediaCDType,
20 MediaNFSType,
21 MediaISOType,
22 MediaFileType,
23 MediaDISKType,
24 MediaCIFSType,
25 MediaCURLType,
26 MediaPluginType
27 };
28
29 MediaHandlerFactory();
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
zypp::Url
Url manipulation class.
Definition Url.h:93
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:47
zypp::media::MediaHandlerFactory::createHandler
static std::unique_ptr< MediaHandler > createHandler(const Url &o_url, const Pathname &preferred_attach_point)
Definition MediaHandlerFactory.cc:50
zypp::media::MediaHandlerFactory::MediaHandlerFactory
MediaHandlerFactory()
Definition MediaHandlerFactory.cc:23
zypp::media::MediaHandlerFactory::MediaHandlerType
MediaHandlerType
Definition MediaHandlerFactory.h:18
zypp::media::MediaHandlerFactory::MediaDISKType
@ MediaDISKType
Definition MediaHandlerFactory.h:23
zypp::media::MediaHandlerFactory::MediaPluginType
@ MediaPluginType
Definition MediaHandlerFactory.h:26
zypp::media::MediaHandlerFactory::MediaCIFSType
@ MediaCIFSType
Definition MediaHandlerFactory.h:24
zypp::media::MediaHandlerFactory::MediaNFSType
@ MediaNFSType
Definition MediaHandlerFactory.h:20
zypp::media::MediaHandlerFactory::MediaFileType
@ MediaFileType
Definition MediaHandlerFactory.h:22
zypp::media::MediaHandlerFactory::MediaISOType
@ MediaISOType
Definition MediaHandlerFactory.h:21
zypp::media::MediaHandlerFactory::MediaCURLType
@ MediaCURLType
Definition MediaHandlerFactory.h:25
zypp::media::MediaHandlerFactory::MediaCDType
@ MediaCDType
Definition MediaHandlerFactory.h:19
zypp::media::MediaHandlerFactory::handlerType
static std::optional< MediaHandlerType > handlerType(const Url &url)
Definition MediaHandlerFactory.cc:28
zypp::media::MediaHandler
Abstract base class for 'physical' MediaHandler like MediaCD, etc.
Definition MediaHandler.h:51
zypp::media
Definition MediaCD.cc:47
zypp::url
Url details namespace.
Definition UrlBase.cc:58
Pathname.h
Url.h