libzypp 17.34.0
|
#include <zypp-media/ng/private/provide_p.h>
Classes | |
struct | FileCacheItem |
struct | QueueItem |
Public Types | |
enum | ScheduleReason { ProvideStart , QueueIdle , EnqueueItem , EnqueueReq , RestartAttach , FinishReq } |
Public Attributes | |
Signal< Provide::MediaChangeAction(const std::string &, const std::string &, const int32_t, const std::vector< std::string > &, const std::optional< std::string > &) | _sigMediaChange ) |
Signal< std::optional< zypp::media::AuthData >(const zypp::Url &reqUrl, const std::string &triedUsername, const std::map< std::string, std::string > &extraValues) | _sigAuthRequired ) |
![]() | |
Base::WeakPtr | parent |
std::unordered_set< Base::Ptr > | children |
Base * | z_ptr = nullptr |
std::thread::id | threadId = std::this_thread::get_id() |
Protected Member Functions | |
void | doSchedule (Timer &) |
Protected Attributes | |
std::unordered_map< std::string, std::string > | _workerAlias |
bool | _isRunning = false |
bool | _isScheduling = false |
Timer::Ptr | _pulseTimer = Timer::create() |
Timer::Ptr | _scheduleTrigger = Timer::create() |
zypp::Pathname | _workDir |
std::list< ProvideItemRef > | _items |
uint32_t | _nextRequestId = 0 |
std::deque< QueueItem > | _queues |
std::vector< AttachedMediaInfo_Ptr > | _attachedMediaInfos |
std::unordered_map< std::string, ProvideQueueRef > | _workerQueues |
std::unordered_map< std::string, ProvideQueue::Config > | _schemeConfigs |
std::unordered_map< std::string, FileCacheItem > | _fileCache |
zypp::Pathname | _workerPath |
zypp::media::CredManagerOptions | _credManagerOptions |
ProvideStatusRef | _log |
Signal< void()> | _sigIdle |
Private Member Functions | |
ZYPP_DECLARE_PUBLIC (Provide) | |
Definition at line 45 of file provide_p.h.
Enumerator | |
---|---|
ProvideStart | |
QueueIdle | |
EnqueueItem | |
EnqueueReq | |
RestartAttach | |
FinishReq |
Definition at line 51 of file provide_p.h.
zyppng::ProvidePrivate::ProvidePrivate | ( | zypp::Pathname && | workDir, |
Provide & | pub ) |
Definition at line 21 of file provide.cc.
|
private |
void zyppng::ProvidePrivate::schedule | ( | ScheduleReason | reason | ) |
Definition at line 38 of file provide.cc.
bool zyppng::ProvidePrivate::queueRequest | ( | ProvideRequestRef | req | ) |
Definition at line 791 of file provide.cc.
bool zyppng::ProvidePrivate::dequeueRequest | ( | ProvideRequestRef | req, |
std::exception_ptr | error ) |
Definition at line 807 of file provide.cc.
void zyppng::ProvidePrivate::queueItem | ( | ProvideItemRef | item | ) |
Definition at line 755 of file provide.cc.
void zyppng::ProvidePrivate::dequeueItem | ( | ProvideItem * | item | ) |
Definition at line 761 of file provide.cc.
std::string zyppng::ProvidePrivate::nextMediaId | ( | ) | const |
Definition at line 773 of file provide.cc.
AttachedMediaInfo_Ptr zyppng::ProvidePrivate::addMedium | ( | AttachedMediaInfo_Ptr && | medium | ) |
Definition at line 779 of file provide.cc.
std::string zyppng::ProvidePrivate::effectiveScheme | ( | const std::string & | scheme | ) | const |
Definition at line 848 of file provide.cc.
Definition at line 857 of file provide.cc.
void zyppng::ProvidePrivate::onQueueIdle | ( | ) |
Definition at line 885 of file provide.cc.
void zyppng::ProvidePrivate::onItemStateChanged | ( | ProvideItem & | item | ) |
Definition at line 898 of file provide.cc.
expected< ProvideQueue::Config > zyppng::ProvidePrivate::schemeConfig | ( | const std::string & | scheme | ) |
Definition at line 714 of file provide.cc.
std::optional< zypp::ManagedFile > zyppng::ProvidePrivate::addToFileCache | ( | const zypp::Pathname & | downloadedFile | ) |
Definition at line 729 of file provide.cc.
bool zyppng::ProvidePrivate::isInCache | ( | const zypp::Pathname & | downloadedFile | ) | const |
Definition at line 749 of file provide.cc.
bool zyppng::ProvidePrivate::isRunning | ( | ) | const |
Definition at line 843 of file provide.cc.
const zypp::Pathname & zyppng::ProvidePrivate::workerPath | ( | ) | const |
Definition at line 829 of file provide.cc.
const std::string zyppng::ProvidePrivate::queueName | ( | ProvideQueue & | q | ) | const |
Definition at line 834 of file provide.cc.
std::vector< AttachedMediaInfo_Ptr > & zyppng::ProvidePrivate::attachedMediaInfos | ( | ) |
Definition at line 709 of file provide.cc.
std::list< ProvideItemRef > & zyppng::ProvidePrivate::items | ( | ) |
Definition at line 699 of file provide.cc.
zypp::media::CredManagerOptions & zyppng::ProvidePrivate::credManagerOptions | ( | ) |
Definition at line 704 of file provide.cc.
|
inline |
Definition at line 92 of file provide_p.h.
uint32_t zyppng::ProvidePrivate::nextRequestId | ( | ) |
Definition at line 916 of file provide.cc.
|
protected |
Definition at line 70 of file provide.cc.
Signal< Provide::MediaChangeAction ( const std::string &, const std::string &, const int32_t, const std::vector<std::string> &, const std::optional<std::string> &) zyppng::ProvidePrivate::_sigMediaChange) |
Definition at line 98 of file provide_p.h.
Signal< std::optional<zypp::media::AuthData>( const zypp::Url &reqUrl, const std::string &triedUsername, const std::map<std::string, std::string> &extraValues ) zyppng::ProvidePrivate::_sigAuthRequired) |
Definition at line 99 of file provide_p.h.
|
protected |
Definition at line 105 of file provide_p.h.
Definition at line 117 of file provide_p.h.
Definition at line 118 of file provide_p.h.
|
protected |
Definition at line 119 of file provide_p.h.
|
protected |
Definition at line 120 of file provide_p.h.
|
protected |
Definition at line 121 of file provide_p.h.
|
protected |
Definition at line 123 of file provide_p.h.
|
protected |
Definition at line 124 of file provide_p.h.
|
protected |
Definition at line 130 of file provide_p.h.
|
protected |
Definition at line 133 of file provide_p.h.
|
protected |
Definition at line 135 of file provide_p.h.
|
protected |
Definition at line 136 of file provide_p.h.
|
protected |
Definition at line 142 of file provide_p.h.
|
protected |
Definition at line 144 of file provide_p.h.
|
protected |
Definition at line 145 of file provide_p.h.
|
protected |
Definition at line 147 of file provide_p.h.
Definition at line 148 of file provide_p.h.