libzypp 17.35.19
internal::SharedData Struct Reference

Classes

struct  MediaFileCacheEntry
 

Public Member Functions

 SharedData (const SharedData &)=delete
 
 SharedData (SharedData &&)=delete
 
SharedDataoperator= (const SharedData &)=delete
 
SharedDataoperator= (SharedData &&)=delete
 
 ~SharedData ()
 
auto findInCache (const std::string &mediaCacheKey)
 

Static Public Member Functions

static std::shared_ptr< SharedDatainstance ()
 
static const zypp::str::regexmediaRegex ()
 

Public Attributes

zyppng::EventDispatcherRef _dispatcher
 
zyppng::DownloaderRef _downloader
 
zypp::filesystem::TmpDir _mediaCacheDir {zypp::filesystem::TmpDir::defaultLocation(), "ZyppMediaCache."}
 
std::unordered_map< std::string, MediaFileCacheEntry_mediaCacheEntries
 

Private Member Functions

 SharedData ()
 

Detailed Description

Definition at line 99 of file MediaNetwork.cc.

Constructor & Destructor Documentation

◆ SharedData() [1/3]

internal::SharedData::SharedData ( const SharedData & )
delete

◆ SharedData() [2/3]

internal::SharedData::SharedData ( SharedData && )
delete

◆ ~SharedData()

internal::SharedData::~SharedData ( )
inline

Definition at line 106 of file MediaNetwork.cc.

◆ SharedData() [3/3]

internal::SharedData::SharedData ( )
inlineprivate

Definition at line 150 of file MediaNetwork.cc.

Member Function Documentation

◆ operator=() [1/2]

SharedData & internal::SharedData::operator= ( const SharedData & )
delete

◆ operator=() [2/2]

SharedData & internal::SharedData::operator= ( SharedData && )
delete

◆ instance()

static std::shared_ptr< SharedData > internal::SharedData::instance ( )
inlinestatic

Definition at line 110 of file MediaNetwork.cc.

◆ mediaRegex()

static const zypp::str::regex & internal::SharedData::mediaRegex ( )
inlinestatic

Definition at line 115 of file MediaNetwork.cc.

◆ findInCache()

auto internal::SharedData::findInCache ( const std::string & mediaCacheKey)
inline

Definition at line 132 of file MediaNetwork.cc.

Member Data Documentation

◆ _dispatcher

zyppng::EventDispatcherRef internal::SharedData::_dispatcher

Definition at line 121 of file MediaNetwork.cc.

◆ _downloader

zyppng::DownloaderRef internal::SharedData::_downloader

Definition at line 122 of file MediaNetwork.cc.

◆ _mediaCacheDir

zypp::filesystem::TmpDir internal::SharedData::_mediaCacheDir {zypp::filesystem::TmpDir::defaultLocation(), "ZyppMediaCache."}

Definition at line 146 of file MediaNetwork.cc.

◆ _mediaCacheEntries

std::unordered_map<std::string, MediaFileCacheEntry> internal::SharedData::_mediaCacheEntries

Definition at line 147 of file MediaNetwork.cc.


The documentation for this struct was generated from the following file: