libzypp 17.32.5
|
#include <zypp-media/ng/private/providemessage_p.h>
Public Types | |
using | Code = MessageCodes |
using | FieldVal = HeaderValue |
Public Member Functions | |
ProvideMessage (const ProvideMessage &)=default | |
ProvideMessage (ProvideMessage &&)=default | |
ProvideMessage & | operator= (const ProvideMessage &)=default |
ProvideMessage & | operator= (ProvideMessage &&)=default |
uint | requestId () const |
void | setRequestId (const uint id) |
uint32_t | code () const |
void | setCode (const uint32_t newCode) |
std::vector< FieldVal > | values (const std::string_view &str) const |
std::vector< FieldVal > | values (const std::string &str) const |
HeaderValueMap | headers () const |
FieldVal | value (const std::string_view &str, const FieldVal &defaultVal=FieldVal()) const |
FieldVal | value (const std::string &str, const FieldVal &defaultVal=FieldVal()) const |
void | setValue (const std::string &name, const FieldVal &value) |
void | setValue (const std::string_view &name, const FieldVal &value) |
void | addValue (const std::string &name, const FieldVal &value) |
void | addValue (const std::string_view &name, const FieldVal &value) |
void | forEachVal (const std::function< bool(const std::string &name, const FieldVal &val)> &cb) const |
![]() | |
RpcBaseType ()=default | |
virtual | ~RpcBaseType ()=default |
RpcBaseType (const RpcBaseType &)=default | |
RpcBaseType (RpcBaseType &&)=default | |
RpcBaseType & | operator= (const RpcBaseType &)=default |
RpcBaseType & | operator= (RpcBaseType &&)=default |
virtual const std::string & | typeName () const =0 |
virtual bool | deserialize (const std::string &data)=0 |
virtual void | serializeInto (std::string &str) const =0 |
virtual std::string | serialize () const |
Static Public Member Functions | |
static expected< ProvideMessage > | create (const zyppng::RpcMessage &message) |
static expected< ProvideMessage > | create (const zypp::proto::ProvideMessage &message) |
static ProvideMessage | createProvideStarted (const uint32_t reqId, const zypp::Url &url, const std::optional< std::string > &localFilename={}, const std::optional< std::string > &stagingFilename={}) |
static ProvideMessage | createProvideFinished (const uint32_t reqId, const std::string &localFilename, bool cacheHit) |
static ProvideMessage | createAttachFinished (const uint32_t reqId, const std::optional< std::string > &localMountPoint={}) |
static ProvideMessage | createDetachFinished (const uint32_t reqId) |
static ProvideMessage | createAuthInfo (const uint32_t reqId, const std::string &user, const std::string &pw, int64_t timestamp, const std::map< std::string, std::string > &extraValues={}) |
static ProvideMessage | createMediaChanged (const uint32_t reqId) |
static ProvideMessage | createRedirect (const uint32_t reqId, const zypp::Url &newUrl) |
static ProvideMessage | createMetalinkRedir (const uint32_t reqId, const std::vector< zypp::Url > &newUrls) |
static ProvideMessage | createErrorResponse (const uint32_t reqId, const uint code, const std::string &reason, bool transient=false) |
static ProvideMessage | createProvide (const uint32_t reqId, const zypp::Url &url, const std::optional< std::string > &filename={}, const std::optional< std::string > &deltaFile={}, const std::optional< int64_t > &expFilesize={}, bool checkExistOnly=false) |
static ProvideMessage | createCancel (const uint32_t reqId) |
static ProvideMessage | createAttach (const uint32_t reqId, const zypp::Url &url, const std::string attachId, const std::string &label, const std::optional< std::string > &verifyType={}, const std::optional< std::string > &verifyData={}, const std::optional< int32_t > &mediaNr={}) |
static ProvideMessage | createDetach (const uint32_t reqId, const zypp::Url &attachUrl) |
static ProvideMessage | createAuthDataRequest (const uint32_t reqId, const zypp::Url &effectiveUrl, const std::string &lastTriedUser="", const std::optional< int64_t > &lastAuthTimestamp={}, const std::map< std::string, std::string > &extraValues={}) |
static ProvideMessage | createMediaChangeRequest (const uint32_t reqId, const std::string &label, int32_t mediaNr, const std::vector< std::string > &devices, const std::optional< std::string > &desc) |
Private Member Functions | |
ProvideMessage () | |
Private Attributes | |
zypp::RWCOW_pointer< zypp::proto::ProvideMessage > | _impl |
Definition at line 515 of file providemessage_p.h.
Definition at line 519 of file providemessage_p.h.
Definition at line 525 of file providemessage_p.h.
|
default |
|
default |
|
private |
Definition at line 420 of file providemessage.cc.
|
default |
|
default |
|
static |
Definition at line 426 of file providemessage.cc.
|
static |
Definition at line 443 of file providemessage.cc.
|
static |
Definition at line 456 of file providemessage.cc.
|
static |
Definition at line 470 of file providemessage.cc.
|
static |
Definition at line 481 of file providemessage.cc.
|
static |
Definition at line 493 of file providemessage.cc.
|
static |
Definition at line 502 of file providemessage.cc.
|
static |
Definition at line 516 of file providemessage.cc.
|
static |
Definition at line 525 of file providemessage.cc.
|
static |
Definition at line 535 of file providemessage.cc.
|
static |
Definition at line 546 of file providemessage.cc.
|
static |
Definition at line 558 of file providemessage.cc.
|
static |
Definition at line 576 of file providemessage.cc.
|
static |
Definition at line 585 of file providemessage.cc.
|
static |
Definition at line 606 of file providemessage.cc.
|
static |
Definition at line 616 of file providemessage.cc.
|
static |
Definition at line 630 of file providemessage.cc.
uint zyppng::ProvideMessage::requestId | ( | ) | const |
Definition at line 645 of file providemessage.cc.
void zyppng::ProvideMessage::setRequestId | ( | const uint | id | ) |
Definition at line 650 of file providemessage.cc.
uint32_t zyppng::ProvideMessage::code | ( | ) | const |
Definition at line 655 of file providemessage.cc.
void zyppng::ProvideMessage::setCode | ( | const uint32_t | newCode | ) |
Definition at line 660 of file providemessage.cc.
std::vector< ProvideMessage::FieldVal > zyppng::ProvideMessage::values | ( | const std::string_view & | str | ) | const |
Definition at line 665 of file providemessage.cc.
std::vector< ProvideMessage::FieldVal > zyppng::ProvideMessage::values | ( | const std::string & | str | ) | const |
Definition at line 677 of file providemessage.cc.
HeaderValueMap zyppng::ProvideMessage::headers | ( | ) | const |
Definition at line 692 of file providemessage.cc.
ProvideMessage::FieldVal zyppng::ProvideMessage::value | ( | const std::string_view & | str, |
const FieldVal & | defaultVal = FieldVal() ) const |
Returns the last entry with key str in the list of values or the default value specified in defaultVal
Definition at line 682 of file providemessage.cc.
ProvideMessage::FieldVal zyppng::ProvideMessage::value | ( | const std::string & | str, |
const FieldVal & | defaultVal = FieldVal() ) const |
Definition at line 702 of file providemessage.cc.
Definition at line 707 of file providemessage.cc.
Definition at line 712 of file providemessage.cc.
Definition at line 724 of file providemessage.cc.
Definition at line 729 of file providemessage.cc.
void zyppng::ProvideMessage::forEachVal | ( | const std::function< bool(const std::string &name, const FieldVal &val)> & | cb | ) | const |
Definition at line 736 of file providemessage.cc.
|
private |
Definition at line 583 of file providemessage_p.h.