12 #ifndef ZYPP_NG_REPORTHELPER_INCLUDED 13 #define ZYPP_NG_REPORTHELPER_INCLUDED 15 #include <zypp-core/ng/async/task.h> 32 template <
typename Report,
bool syncAsync >
35 template <
typename Report>
39 template <
typename Report>
54 std::shared_ptr<zypp::callback::SendReport<Report>>
_d;
69 static constexpr
bool async () {
165 #endif //ZYPP_NG_REPORTHELPER_INCLUDED bool askUserToAcceptWrongDigest(const zypp::Pathname &file, const std::string &requested, const std::string &found)
bool error(std::string msg_r, UserData userData_r=UserData())
send error text
JobReportHelper(ContextRef r)
bool askUserToAcceptUnknownKey(const std::string &file, const std::string &id, const zypp::KeyContext &keycontext={})
bool askUserToAcceptUnsignedFile(const std::string &file, const zypp::KeyContext &keycontext={})
KeyRingReportHelper & operator=(const KeyRingReportHelper &)=default
bool askUserToAcceptVerificationFailed(const std::string &file, const zypp::PublicKey &key, const zypp::KeyContext &keycontext={})
Class representing one GPG Public Keys data.
KeyRingReportHelper(ContextRef r)
void reportAutoImportKey(const std::list< zypp::PublicKeyData > &keyDataList_r, const zypp::PublicKeyData &keySigning_r, const zypp::KeyContext &keyContext_r)
ZYPP_FWD_DECL_REFS(Context)
detail::ReportHolder< zypp::DigestReport, Context::isAsync > _report
bool important(std::string msg_r, UserData userData_r=UserData())
send important message text
bool askUserToAccepUnknownDigest(const zypp::Pathname &file, const std::string &name)
detail::ReportHolder< zypp::KeyRingReport, Context::isAsync > _report
BasicReportHelper(const BasicReportHelper &)=default
BasicReportHelper & operator=(const BasicReportHelper &)=default
void infoVerify(const std::string &file_r, const zypp::PublicKeyData &keyData_r, const zypp::KeyContext &keycontext={})
KeyTrust
User reply options for the askUserToTrustKey callback.
zypp::callback::UserData UserData
zypp::KeyRingReport::KeyTrust askUserToAcceptKey(const zypp::PublicKey &key, const zypp::KeyContext &keycontext={})
bool data(std::string msg_r, UserData userData_r=UserData())
send data message
bool askUserToAcceptPackageKey(const zypp::PublicKey &key_r, const zypp::KeyContext &keycontext_r={})
std::shared_ptr< zypp::callback::SendReport< Report > > _d
DigestReportHelper(ContextRef r)
bool info(std::string msg_r, UserData userData_r=UserData())
send message text
Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).
bool debug(std::string msg_r, UserData userData_r=UserData())
send debug message text
JobReportHelper & operator=(const JobReportHelper &)=default
Typesafe passing of user data via callbacks.
const ContextRef & zyppContext()
static constexpr bool async()
bool askUserToAcceptNoDigest(const zypp::Pathname &file)
Easy-to use interface to the ZYPP dependency resolver.
DigestReportHelper & operator=(const DigestReportHelper &)=default
bool warning(std::string msg_r, UserData userData_r=UserData())
send warning text