Go to the documentation of this file.
12 #ifndef ZYPP_ZYPPCALLBACKS_H
13 #define ZYPP_ZYPPCALLBACKS_H
77 bool value =
_report->progress(progress);
79 value &=
_fnc(progress);
165 ,
const std::string &
189 ,
const std::string &
244 ,
const std::string & )
250 ,
const std::string & )
276 ,
const std::string & )
281 ,
const std::string &
283 ,
const std::string & )
332 ,
const std::string &
334 ,
const std::string &
335 ,
const std::vector<std::string> &
350 shared_ptr<callback::TempConnect<media::MediaChangeReport> >
_guard;
381 double dbps_avg = -1,
382 double dbps_current = -1)
388 ,
const std::string &
394 ,
const std::string &
416 const std::string & ,
463 const std::string & = std::string() )
549 ,
const std::string &
556 ,
const std::string &
595 ,
const std::string &
601 ,
const std::string &
632 ,
const std::string &
638 ,
const std::string &
658 virtual void start( Pathname )
661 virtual bool progress(
int, Pathname )
664 virtual Action problem( Pathname,
Error,
const std::string & )
667 virtual void finish( Pathname,
Error,
const std::string & )
819 {
return instance()->message( MsgType::debug, msg_r, userData_r ); }
823 {
return instance()->message( MsgType::info, msg_r, userData_r ); }
827 {
return instance()->message( MsgType::warning, msg_r, userData_r ); }
831 {
return instance()->message( MsgType::error, msg_r, userData_r ); }
835 {
return instance()->message( MsgType::important, msg_r, userData_r ); }
839 {
return instance()->message( MsgType::data, msg_r, userData_r ); }
848 #endif // ZYPP_ZYPPCALLBACKS_H
virtual void progressDeltaApply(int)
virtual bool progress(int)
virtual Action problem(Resolvable::constPtr, Error, const std::string &)
virtual void start(const ProgressData &)
virtual Action problem(const std::string &)
Report error.
virtual void start(Resolvable::constPtr, const Url &)
virtual void finish(Resolvable::constPtr, Error, const std::string &)
virtual Action problem(Resolvable::constPtr, Error, const std::string &, RpmLevel)
virtual void pkgGpgCheck(const UserData &userData_r=UserData())
Detail information about the result of a performed pkgGpgCheck.
What is known about a repository.
virtual void start(const Url &)
virtual void finish(const Url &, Error, const std::string &)
static bool important(const std::string &msg_r, const UserData &userData_r=UserData())
send important message text
virtual void start(const Package::constPtr &, const Pathname &)
Start executing the script provided by package.
virtual void finishDeltaDownload()
virtual bool progress()
merging still live
TraitsType::constPtrType constPtr
virtual bool progress(int, Pathname)
TraitsType::constPtrType constPtr
virtual void finish(Error)
cleaning is done
static callback::SendReport< JobReport > & instance()
Singleton sender instance.
static bool info(const std::string &msg_r, const UserData &userData_r=UserData())
send message text
virtual bool progress(int, Resolvable::constPtr)
virtual Action problem(const Url &, Error, const std::string &)
Action
action performed by cleaning api to specific lock
TraitsType::constPtrType constPtr
virtual void finish(const zypp::Url &, Error, const std::string &)
@ IGNORE
skip conflict lock
@ INTERSECT
locks lock some file and unlocking lock unlock only part of iti, so removing old lock can unlock more...
base::EnumClass< EMsgTypeDef > MsgType
'enum class MsgType'
virtual void finish()
Report success.
virtual void successProbe(const Url &, const std::string &)
Typesafe passing of user data via callbacks.
virtual void finish(const ProgressData &)
virtual void startDeltaDownload(const Pathname &, const ByteCount &)
Store and operate with byte count.
virtual bool progressDeltaDownload(int)
callback::UserData UserData
virtual void start(Pathname)
@ DELETE
delete conflicted lock
virtual bool progress(const ProgressData &progress_r, const sat::Queue &noFilelist_r)
Request to display the pre commit message of a patch.
static bool data(const std::string &msg_r, const UserData &userData_r=UserData())
send data message
@ ABORTED
cleaning aborted by user
Action
action for old lock which is in conflict
virtual bool progress(const ProgressData &)
Generic report for sending messages.
ProgressData::ReceiverFnc _fnc
virtual Action problem(Repository, Error, const std::string &)
virtual bool progress(int, Resolvable::constPtr)
@ SAME_RESULTS
locks lock same item in pool but his parameters is different
zypp::ContentType ContentType
virtual Action problem(Resolvable::constPtr, Error, const std::string &)
virtual bool progress(const Url &, int)
Callback for cleaning locks which doesn't lock anything in pool.
virtual Action problem(Pathname, Error, const std::string &)
Mime type like 'type/subtype' classification of content.
virtual Action conflict(const PoolQuery &, ConflictState)
When user unlock something which is locked by non-identical query.
ConflictState
type of conflict of old and new lock
Easy-to use interface to the ZYPP dependency resolver.
Indicate execution of a patch script.
virtual bool progress(Notify, const std::string &=std::string())
Progress provides the script output.
static bool debug(const std::string &msg_r, const UserData &userData_r=UserData())
send debug message text
virtual bool start(const ProgressData &progress_r)
Libsolv Id queue wrapper.
message type (use like 'enum class MsgType')
bool operator()(const ProgressData &progress)
@ ABORTED
cleaning aborted by user
virtual void start(const ProgressData &, const RepoInfo)
virtual void start(const zypp::Url &)
virtual void finish(Repository, const std::string &, Error, const std::string &)
virtual void problemDeltaApply(const std::string &)
@ ABORT
abort and return error
virtual void start()
cleaning is started
ProgressReportAdaptor(const ProgressData::ReceiverFnc &fnc, callback::SendReport< ProgressReport > &report)
@ DELETE
delete empty lock
this callback handles merging old locks with newly added or removed
virtual bool progress(int)
progress of cleaning specifies in percents
virtual void finish(Resolvable::constPtr, Error, const std::string &, RpmLevel)
virtual bool show(Patch::constPtr &)
Display patch->message().
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
virtual void problemDeltaDownload(const std::string &)
Libsolv queue representing file conflicts.
virtual bool result(const ProgressData &progress_r, const sat::Queue &noFilelist_r, const sat::FileConflicts &conflicts_r)
Check for package file conflicts in commit (after download)
virtual void failedProbe(const Url &, const std::string &)
virtual void finish(Error)
virtual bool message(MsgType type_r, const std::string &msg_r, const UserData &userData_r) const
Send a ready to show message text.
static const UserData::ContentType contentRpmout
"rpmout/removepkg": Additional rpm output (sent immediately).
static bool warning(const std::string &msg_r, const UserData &userData_r=UserData())
send warning text
virtual Action problem(const zypp::Url &, Error, const std::string &)
static const UserData::ContentType contentRpmout
"rpmout/installpkg": Additional rpm output (sent immediately).
@ RPM_NODEPS_FORCE
only this one used
virtual void startDeltaApply(const Pathname &)
virtual bool progress(const ProgressData &)
virtual void start(Resolvable::constPtr)
virtual bool progress(int, Resolvable::constPtr)
virtual Action execute(const PoolQuery &)
When find empty lock ask what to do with it.
virtual void infoInCache(Resolvable::constPtr res_r, const Pathname &localfile_r)
Hint that package is available in the local cache (no download needed).
callback::SendReport< ProgressReport > & _report
callback::UserData UserData
typsafe map of userdata
virtual void finishDeltaApply()
@ ABORT
abort and return error
virtual void start(Resolvable::constPtr)
Maintain [min,max] and counter (value) for progress counting.
virtual void finish(Pathname, Error, const std::string &)
static bool error(const std::string &msg_r, const UserData &userData_r=UserData())
send error text
virtual void finish(Resolvable::constPtr, Error, const std::string &)