libzypp: zypp/ZYppCallbacks.h Source File

libzypp 17.38.15

ZYppCallbacks.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_ZYPPCALLBACKS_H
13#define ZYPP_ZYPPCALLBACKS_H
14
15#include <zypp-core/base/EnumClass.h>
16#include <zypp/Callback.h>
17#include <zypp-core/UserData.h>
18#include <zypp/Resolvable.h>
19#include <zypp/RepoInfo.h>
20#include <zypp-core/Pathname.h>
21#include <zypp/Package.h>
22#include <zypp/Patch.h>
23#include <zypp-core/Url.h>
24#include <zypp-core/ui/ProgressData>
25#include <zypp-media/auth/AuthData>
26#include <zypp-curl/auth/CurlAuthData> // bsc#1194597: CurlAuthData must be exposed for zypper
27
29namespace zypp
30{
31
33 namespace sat
34 {
35 class Queue;
36 class FileConflicts;
37 } // namespace sat
39
40 struct ZYPP_API ProgressReport : public callback::ReportBase
41 {
42 virtual void start( const ProgressData &/*task*/ )
43 {}
44
45 virtual bool progress( const ProgressData &/*task*/ )
46 { return true; }
47
48// virtual Action problem(
49// Repo /*source*/
50// , Error /*error*/
51// , const std::string &/*description*/ )
52// { return ABORT; }
53
54 virtual void finish( const ProgressData &/*task*/ )
55 {}
56
57 };
58
59 struct ProgressReportAdaptor
60 {
61
62 ProgressReportAdaptor( callback::SendReport<ProgressReport> &report )
63 : _report(report)
64 , _first(true)
65 {}
66
67 ProgressReportAdaptor( const ProgressData::ReceiverFnc &fnc,
68 callback::SendReport<ProgressReport> &report )
69 : _fnc(fnc)
70 , _report(report)
71 , _first(true)
72 {}
73
74 bool operator()( const ProgressData &progress )
75 {
76 if ( _first )
77 {
78 _report->start(progress);
79 _first = false;
80 }
81
82 bool value = _report->progress(progress);
83 if ( _fnc )
84 value &= _fnc(progress);
85
86 if ( progress.finalReport() )
87 {
88 _report->finish(progress);
89 }
90 return value;
91 }
92
93 ProgressData::ReceiverFnc _fnc;
94 callback::SendReport<ProgressReport> &_report;
95 bool _first;
96 };
97
99
100 namespace repo
101 {
102 // progress for downloading a resolvable
103 struct ZYPP_API DownloadResolvableReport : public callback::ReportBase
104 {
105 enum Action {
106 ABORT, // abort and return error
107 RETRY, // retry
108 IGNORE, // ignore this resolvable but continue
109 };
110
111 enum Error {
112 NO_ERROR,
113 NOT_FOUND, // the requested Url was not found
114 IO, // IO error
115 INVALID // the downloaded file is invalid
116 };
117
121 virtual void infoInCache( Resolvable::constPtr res_r, const Pathname & localfile_r )
122 {}
123
124 virtual void start(
125 Resolvable::constPtr /*resolvable_ptr*/
126 , const Url &/*url*/
127 ) {}
128
129
130 // Dowmload delta rpm:
131 // - path below url reported on start()
132 // - expected download size (0 if unknown)
133 // - download is interruptable
134 // - problems are just informal
135 virtual void startDeltaDownload( const Pathname & /*filename*/, const ByteCount & /*downloadsize*/ )
136 {}
137
138 virtual bool progressDeltaDownload( int /*value*/ )
139 { return true; }
140
141 virtual void problemDeltaDownload( const std::string &/*description*/ )
142 {}
143
144 virtual void finishDeltaDownload()
145 {}
146
147 // Apply delta rpm:
148 // - local path of downloaded delta
149 // - aplpy is not interruptable
150 // - problems are just informal
151 virtual void startDeltaApply( const Pathname & /*filename*/ )
152 {}
153
154 virtual void progressDeltaApply( int /*value*/ )
155 {}
156
157 virtual void problemDeltaApply( const std::string &/*description*/ )
158 {}
159
160 virtual void finishDeltaApply()
161 {}
162
163 // return false if the download should be aborted right now
164 virtual bool progress(int /*value*/, Resolvable::constPtr /*resolvable_ptr*/)
165 { return true; }
166
167 virtual Action problem(
168 Resolvable::constPtr /*resolvable_ptr*/
169 , Error /*error*/
170 , const std::string &/*description*/
171 ) { return ABORT; }
172
173
189 virtual void pkgGpgCheck( const UserData & userData_r = UserData() )
190 {}
191
192 virtual void finish(Resolvable::constPtr /*resolvable_ptr*/
193 , Error /*error*/
194 , const std::string &/*reason*/
195 ) {}
196 };
197
198 // progress for probing a source
200 struct ZYPP_API ZYPP_DEPRECATED ProbeRepoReport : public callback::ReportBase
201 {
202 enum Action {
203 ABORT, // abort and return error
204 RETRY // retry
205 };
206
207 enum Error {
208 NO_ERROR,
209 NOT_FOUND, // the requested Url was not found
210 IO, // IO error
211 INVALID, // th source is invalid
212 UNKNOWN
213 };
214
215 virtual void start(const Url &/*url*/) {}
216 virtual void failedProbe( const Url &/*url*/, const std::string &/*type*/ ) {}
217 virtual void successProbe( const Url &/*url*/, const std::string &/*type*/ ) {}
218 virtual void finish(const Url &/*url*/, Error /*error*/, const std::string &/*reason*/ ) {}
219
220 virtual bool progress(const Url &/*url*/, int /*value*/)
221 { return true; }
222
223 virtual Action problem( const Url &/*url*/, Error /*error*/, const std::string &/*description*/ ) { return ABORT; }
224 };
225
227 struct ZYPP_API ZYPP_DEPRECATED RepoCreateReport : public callback::ReportBase
228 {
229 enum Action {
230 ABORT, // abort and return error
231 RETRY, // retry
232 IGNORE // skip refresh, ignore failed refresh
233 };
234
235 enum Error {
236 NO_ERROR,
237 NOT_FOUND, // the requested Url was not found
238 IO, // IO error
239 REJECTED,
240 INVALID, // th source is invali
241 UNKNOWN
242 };
243
244 virtual void start( const zypp::Url &/*url*/ ) {}
245 virtual bool progress( int /*value*/ )
246 { return true; }
247
248 virtual Action problem(
249 const zypp::Url &/*url*/
250 , Error /*error*/
251 , const std::string &/*description*/ )
252 { return ABORT; }
253
254 virtual void finish(
255 const zypp::Url &/*url*/
256 , Error /*error*/
257 , const std::string &/*reason*/ )
258 {}
259 };
260
262 struct ZYPP_API ZYPP_DEPRECATED RepoReport : public callback::ReportBase
263 {
264 enum Action {
265 ABORT, // abort and return error
266 RETRY, // retry
267 IGNORE // skip refresh, ignore failed refresh
268 };
269
270 enum Error {
271 NO_ERROR,
272 NOT_FOUND, // the requested Url was not found
273 IO, // IO error
274 INVALID // th source is invalid
275 };
276
277 virtual void start( const ProgressData &/*task*/, const RepoInfo /*repo*/ ) {}
278 virtual bool progress( const ProgressData &/*task*/ )
279 { return true; }
280
281 virtual Action problem(
282 Repository /*source*/
283 , Error /*error*/
284 , const std::string &/*description*/ )
285 { return ABORT; }
286
287 virtual void finish(
288 Repository /*source*/
289 , const std::string &/*task*/
290 , Error /*error*/
291 , const std::string &/*reason*/ )
292 {}
293 };
294
295
297 } // namespace source
299
301 namespace media
302 {
303 // media change request callback
304 struct ZYPP_API MediaChangeReport : public callback::ReportBase
305 {
306 enum Action {
307 ABORT, // abort and return error
308 RETRY, // retry
309 IGNORE, // ignore this media in future, not available anymore
310 IGNORE_ID, // ignore wrong medium id
311 CHANGE_URL, // change media URL
312 EJECT // eject the medium
313 };
314
315 enum Error {
316 NO_ERROR,
317 NOT_FOUND, // the medie not found at all
318 IO, // error accessing the media
319 INVALID, // media is broken
320 WRONG, // wrong media, need a different one
321 IO_SOFT
322 };
323
337 virtual Action requestMedia(
338 Url & /* url (I/O parameter) */
339 , unsigned /*mediumNr*/
340 , const std::string & /* label */
341 , Error /*error*/
342 , const std::string & /*description*/
343 , const std::vector<std::string> & /* devices */
344 , unsigned int & /* dev_current (I/O param) */
345 ) { return ABORT; }
346 };
347
353 struct ZYPP_API ScopedDisableMediaChangeReport
354 {
356 ScopedDisableMediaChangeReport( bool condition_r = true );
357 private:
358 shared_ptr<callback::TempConnect<media::MediaChangeReport> > _guard;
359 };
360
361 // progress for downloading a file
362 struct ZYPP_API DownloadProgressReport : public callback::ReportBase
363 {
364 enum Action {
365 ABORT, // abort and return error
366 RETRY, // retry
367 IGNORE // ignore the failure
368 };
369
370 enum Error {
371 NO_ERROR,
372 NOT_FOUND, // the requested Url was not found
373 IO, // IO error
374 ACCESS_DENIED, // user authent. failed while accessing restricted file
375 ERROR // other error
376 };
377
378 virtual void start( const Url &/*file*/, Pathname /*localfile*/ ) {}
379
388 virtual bool progress(int /*value*/, const Url &/*file*/,
389 double dbps_avg = -1,
390 double dbps_current = -1)
391 { return true; }
392
393 virtual Action problem(
394 const Url &/*file*/
395 , Error /*error*/
396 , const std::string &/*description*/
397 ) { return ABORT; }
398
399 virtual void finish(
400 const Url &/*file*/
401 , Error /*error*/
402 , const std::string &/*reason*/
403 ) {}
404 };
405
406 // progress for concurrently preloading a entire commit
407 struct ZYPP_API CommitPreloadReport : public callback::ReportBase
408 {
409 enum Error {
410 NO_ERROR,
411 NOT_FOUND, // the requested Url was not found
412 IO, // IO error
413 ACCESS_DENIED, // user authent. failed while accessing restricted file
414 ERROR // other error
415 };
416
420 virtual void start( const UserData &userData = UserData() ) {}
421
433 virtual bool progress( int value, const UserData &userData = UserData() )
434 { return true; }
435
442
443 virtual void fileStart(
444 const Pathname &localfile,
445 const UserData &userData = UserData()
446 ) {}
447
456 virtual void fileDone(
457 const Pathname &localfile,
458 Error error,
459 const UserData &userData = UserData()
460 ) {}
461
462 enum Result {
463 SUCCESS, //< everything was fetched as expected
464 MISS //< some files are missing
465 };
466
470 virtual void finish( Result res, const UserData &userData = UserData() ) {}
471 };
472
473 // authentication issues report
474 struct ZYPP_API AuthenticationReport : public callback::ReportBase
475 {
490 virtual bool prompt(const Url & /* url */,
491 const std::string & /* msg */,
492 AuthData & /* auth_data */)
493 {
494 return false;
495 }
496 };
497
499 } // namespace media
501
503 namespace target
504 {
506 struct ZYPP_API PatchMessageReport : public callback::ReportBase
507 {
511 virtual bool show( Patch::constPtr & /*patch*/ )
512 { return true; }
513 };
514
519 struct ZYPP_API PatchScriptReport : public callback::ReportBase
520 {
521 enum Notify { OUTPUT, PING };
522 enum Action {
523 ABORT, // abort commit and return error
524 RETRY, // (re)try to execute this script
525 IGNORE // ignore any failue and continue
526 };
527
530 virtual void start( const Package::constPtr & /*package*/,
531 const Pathname & /*script path*/ )
532 {}
533
537 virtual bool progress( Notify /*OUTPUT or PING*/,
538 const std::string & /*output*/ = std::string() )
539 { return true; }
540
541 virtual Action problem( const std::string & /*description*/ )
542 { return ABORT; }
543
544 virtual void finish()
545 {}
546 };
547
558 struct ZYPP_API FindFileConflictstReport : public callback::ReportBase
559 {
564 virtual bool start( const ProgressData & progress_r )
565 { return true; }
566
572 virtual bool progress( const ProgressData & progress_r, const sat::Queue & noFilelist_r )
573 { return true; }
574
581 virtual bool result( const ProgressData & progress_r, const sat::Queue & noFilelist_r, const sat::FileConflicts & conflicts_r )
582 { return true; }
583 };
584
585
603 struct ZYPP_API CommitActiveReport : public callback::ReportBase
604 {
608 virtual bool start( const UserData & = UserData() /*userdata*/ ) { return true; }
609
613 virtual void end ( const UserData & = UserData() /*userdata*/ ) { }
614
615 // added for future use to avoid breaking compatibility
616 virtual void step ( const UserData & = UserData() /*userdata*/ ) { }
617 };
618
620 namespace rpm
621 {
622
623 // progress for installing a resolvable
624 struct ZYPP_API InstallResolvableReport : public callback::ReportBase
625 {
626 enum Action {
627 ABORT, // abort and return error
628 RETRY, // retry
629 IGNORE // ignore the failure
630 };
631
632 enum Error {
633 NO_ERROR,
634 NOT_FOUND, // the requested Url was not found
635 IO, // IO error
636 INVALID // th resolvable is invalid
637 };
638
639 // the level of RPM pushing
641 enum RpmLevel {
642 RPM,
643 RPM_NODEPS,
644 RPM_NODEPS_FORCE
645 };
646
647 virtual void start(
648 Resolvable::constPtr /*resolvable*/
649 ) {}
650
651 virtual bool progress(int /*value*/, Resolvable::constPtr /*resolvable*/)
652 { return true; }
653
654 virtual Action problem(
655 Resolvable::constPtr /*resolvable*/
656 , Error /*error*/
657 , const std::string &/*description*/
658 , RpmLevel /*level*/
659 ) { return ABORT; }
660
661 virtual void finish(
662 Resolvable::constPtr /*resolvable*/
663 , Error /*error*/
664 , const std::string &/*reason*/
665 , RpmLevel /*level*/
666 ) {}
667
674 static const UserData::ContentType contentRpmout ZYPP_API;
675 };
676
677 // progress for removing a resolvable
678 struct ZYPP_API RemoveResolvableReport : public callback::ReportBase
679 {
680 enum Action {
681 ABORT, // abort and return error
682 RETRY, // retry
683 IGNORE // ignore the failure
684 };
685
686 enum Error {
687 NO_ERROR,
688 NOT_FOUND, // the requested Url was not found
689 IO, // IO error
690 INVALID // th resolvable is invalid
691 };
692
693 virtual void start(
694 Resolvable::constPtr /*resolvable*/
695 ) {}
696
697 virtual bool progress(int /*value*/, Resolvable::constPtr /*resolvable*/)
698 { return true; }
699
700 virtual Action problem(
701 Resolvable::constPtr /*resolvable*/
702 , Error /*error*/
703 , const std::string &/*description*/
704 ) { return ABORT; }
705
706 virtual void finish(
707 Resolvable::constPtr /*resolvable*/
708 , Error /*error*/
709 , const std::string &/*reason*/
710 ) {}
711
715 static const UserData::ContentType contentRpmout ZYPP_API;
716 };
717
718 // progress for rebuilding the database
719 struct ZYPP_API RebuildDBReport : public callback::ReportBase
720 {
721 enum Action {
722 ABORT, // abort and return error
723 RETRY, // retry
724 IGNORE // ignore the failure
725 };
726
727 enum Error {
728 NO_ERROR,
729 FAILED // failed to rebuild
730 };
731
732 virtual void start(Pathname /*path*/) {}
733
734 virtual bool progress(int /*value*/, Pathname /*path*/)
735 { return true; }
736
737 virtual Action problem(
738 Pathname /*path*/
739 , Error /*error*/
740 , const std::string &/*description*/
741 ) { return ABORT; }
742
743 virtual void finish(
744 Pathname /*path*/
745 , Error /*error*/
746 , const std::string &/*reason*/
747 ) {}
748 };
749
750#if LEGACY(17)
751 // progress for converting the database
753 struct ZYPP_DEPRECATED ConvertDBReport : public callback::ReportBase
754 {
755 enum Action {
756 ABORT, // abort and return error
757 RETRY, // retry
758 IGNORE // ignore the failure
759 };
760
761 enum Error {
762 NO_ERROR,
763 FAILED // conversion failed
764 };
765
766 virtual void start( Pathname /*path*/ )
767 {}
768
769 virtual bool progress( int/*value*/, Pathname/*path*/ )
770 { return true; }
771
772 virtual Action problem( Pathname/*path*/, Error/*error*/, const std::string &/*description*/ )
773 { return ABORT; }
774
775 virtual void finish( Pathname/*path*/, Error/*error*/, const std::string &/*reason*/ )
776 {}
777 };
778#endif
779
788 struct ZYPP_API SingleTransReport : public callback::ReportBase
789 {
795 static const UserData::ContentType contentLogline ZYPP_API;
797 enum class loglevel { dbg, msg, war, err, crt };
799 static const char *const loglevelPrefix( loglevel level_r )
800 {
801 switch ( level_r ) {
802 case loglevel::crt: return "fatal error: ";
803 case loglevel::err: return "error: ";
804 case loglevel::war: return "warning: ";
805 case loglevel::msg: return "";
806 case loglevel::dbg: return "D: ";
807 }
808 return "";
809 }
810 };
811
812 // Generic transaction reports, this is used for verifying and preparing tasks, the name param
813 // for the start function defines which report we are looking at
814 struct ZYPP_API TransactionReportSA : public callback::ReportBase
815 {
816 enum Error {
817 NO_ERROR, // everything went perfectly fine
818 FINISHED_WITH_ERRORS, // the transaction was finished, but some errors happened
819 FAILED // the transaction failed completely
820 };
821
822 virtual void start(
823 const std::string &/*name*/,
824 const UserData & = UserData() /*userdata*/
825 ) {}
826
827 virtual void progress(
828 int /*value*/,
829 const UserData & = UserData() /*userdata*/
830 ) { }
831
832 virtual void finish(
833 Error /*error*/,
834 const UserData & = UserData() /*userdata*/
835 ) {}
836
841 static const UserData::ContentType contentRpmout ZYPP_API;
842 };
843
844
845 // progress for installing a resolvable in single transaction mode
846 struct ZYPP_API InstallResolvableReportSA : public callback::ReportBase
847 {
848 enum Error {
849 NO_ERROR,
850 NOT_FOUND, // the requested Url was not found
851 IO, // IO error
852 INVALID // th resolvable is invalid
853 };
854
855 virtual void start(
856 Resolvable::constPtr /*resolvable*/,
857 const UserData & = UserData() /*userdata*/
858 ) {}
859
860 virtual void progress(
861 int /*value*/,
862 Resolvable::constPtr /*resolvable*/,
863 const UserData & = UserData() /*userdata*/
864 ) { return; }
865
866 virtual void finish(
867 Resolvable::constPtr /*resolvable*/
868 , Error /*error*/,
869 const UserData & = UserData() /*userdata*/
870 ) {}
871
877 static const UserData::ContentType contentRpmout ZYPP_API;
878 };
879
880 // progress for removing a resolvable in single transaction mode
881 struct ZYPP_API RemoveResolvableReportSA : public callback::ReportBase
882 {
883 enum Error {
884 NO_ERROR,
885 NOT_FOUND, // the requested Url was not found
886 IO, // IO error
887 INVALID // th resolvable is invalid
888 };
889
890 virtual void start(
891 Resolvable::constPtr /*resolvable*/,
892 const UserData & = UserData() /*userdata*/
893 ) {}
894
895 virtual void progress(
896 int /*value*/,
897 Resolvable::constPtr /*resolvable*/,
898 const UserData & = UserData() /*userdata*/
899 ) { return; }
900
901 virtual void finish(
902 Resolvable::constPtr /*resolvable*/
903 , Error /*error*/
904 , const UserData & = UserData() /*userdata*/
905 ) {}
906
910 static const UserData::ContentType contentRpmout ZYPP_API;
911 };
912
913 // progress for cleaning up the old version of a package after it was upgraded to a new version
914 struct ZYPP_API CleanupPackageReportSA : public callback::ReportBase
915 {
916 enum Error {
917 NO_ERROR
918 };
919
920 virtual void start(
921 const std::string & /*nvra*/,
922 const UserData & = UserData() /*userdata*/
923 ) {}
924
925 virtual void progress(
926 int /*value*/,
927 const UserData & = UserData() /*userdata*/
928 ) { return; }
929
930 virtual void finish(
931 Error /*error*/,
932 const UserData & = UserData() /*userdata*/
933 ) {}
934
938 static const UserData::ContentType contentRpmout ZYPP_API;
939 };
940
941
942 // progress for script thats executed during a commit transaction
943 // the resolvable can be null, for things like posttrans scripts
944 struct ZYPP_API CommitScriptReportSA : public callback::ReportBase
945 {
946 enum Error {
947 NO_ERROR,
948 WARN,
949 CRITICAL // the script failure prevented solvable installation
950 };
951
952 virtual void start(
953 const std::string & /*scriptType*/,
954 const std::string & /*packageName ( can be empty )*/,
955 Resolvable::constPtr /*resolvable ( can be null )*/,
956 const UserData & = UserData() /*userdata*/
957 ) {}
958
959 virtual void progress(
960 int /*value*/,
961 Resolvable::constPtr /*resolvable*/,
962 const UserData & = UserData() /*userdata*/
963 ) { return; }
964
965 virtual void finish(
966 Resolvable::constPtr /*resolvable*/
967 , Error /*error*/,
968 const UserData & = UserData() /*userdata*/
969 ) {}
970
976 static const UserData::ContentType contentRpmout ZYPP_API;
977 };
978
980 } // namespace rpm
982
984 } // namespace target
986
987 class PoolQuery;
988
991
994
995 struct ZYPP_API CleanEmptyLocksReport : public callback::ReportBase
996 {
1000 enum Action {
1001 ABORT,
1002 DELETE,
1003 IGNORE
1004 };
1005
1009 enum Error {
1010 NO_ERROR,
1011 ABORTED
1012 };
1013
1017 virtual void start(
1018 ) {}
1019
1024 virtual bool progress(int /*value*/)
1025 { return true; }
1026
1031 virtual Action execute(
1032 const PoolQuery& /*error*/
1033 ) { return DELETE; }
1034
1038 virtual void finish(
1039 Error /*error*/
1040 ) {}
1041
1042 };
1043
1047 struct ZYPP_API SavingLocksReport : public callback::ReportBase
1048 {
1053 enum Action {
1054 ABORT,
1055 DELETE,
1056 IGNORE
1057 };
1058
1062 enum Error {
1063 NO_ERROR,
1064 ABORTED
1065 };
1066
1070 enum ConflictState{
1071 SAME_RESULTS,
1072 INTERSECT
1074 };
1075
1076 virtual void start() {}
1077
1082 virtual bool progress()
1083 { return true; }
1084
1088 virtual Action conflict(
1089 const PoolQuery&,
1090 ConflictState
1091 ) { return DELETE; }
1092
1093 virtual void finish(
1094 Error /*error*/
1095 ) {}
1096 };
1097
1102 struct ZYPP_API JobReport : public callback::ReportBase
1103 {
1104 public:
1106 struct EMsgTypeDef {
1107 enum Enum { debug, info, warning, error, important, data };
1108 };
1109 typedef base::EnumClass<EMsgTypeDef> MsgType;
1110
1112 typedef callback::UserData UserData;
1113
1114 static const ContentType repoRefreshMirrorlist;
1115
1116 public:
1118 virtual bool message( MsgType type_r, const std::string & msg_r, const UserData & userData_r ) const
1119 { return true; }
1120
1121
1124
1125 static callback::SendReport<JobReport> & instance(); // impl in ZYppImpl.cc
1126
1128 static bool debug( const std::string & msg_r, const UserData & userData_r = UserData() )
1129 { return instance()->message( MsgType::debug, msg_r, userData_r ); }
1130
1132 static bool info( const std::string & msg_r, const UserData & userData_r = UserData() )
1133 { return instance()->message( MsgType::info, msg_r, userData_r ); }
1134
1136 static bool warning( const std::string & msg_r, const UserData & userData_r = UserData() )
1137 { return instance()->message( MsgType::warning, msg_r, userData_r ); }
1138
1140 static bool error( const std::string & msg_r, const UserData & userData_r = UserData() )
1141 { return instance()->message( MsgType::error, msg_r, userData_r ); }
1142
1144 static bool important( const std::string & msg_r, const UserData & userData_r = UserData() )
1145 { return instance()->message( MsgType::important, msg_r, userData_r ); }
1146
1148 static bool data( const std::string & msg_r, const UserData & userData_r = UserData() )
1149 { return instance()->message( MsgType::data, msg_r, userData_r ); }
1150
1151 };
1152
1157 struct ZYPP_API UserDataJobReport : public JobReport::UserData
1158 {
1159 using JobReport::UserData::UserData;
1160
1161 bool debug( const std::string & msg_r ) { return JobReport::debug( msg_r, *this ); }
1162 bool info( const std::string & msg_r ) { return JobReport::info( msg_r, *this ); }
1163 bool warning( const std::string & msg_r ) { return JobReport::warning( msg_r, *this ); }
1164 bool error( const std::string & msg_r ) { return JobReport::error( msg_r, *this ); }
1165 bool important( const std::string & msg_r ) { return JobReport::important( msg_r, *this ); }
1166 bool data( const std::string & msg_r ) { return JobReport::data( msg_r, *this ); }
1167 };
1168
1170} // namespace zypp
1172
1173#endif // ZYPP_ZYPPCALLBACKS_H
Callback.h
EnumClass.h
ZYPP_DEPRECATED
#define ZYPP_DEPRECATED
The ZYPP_DEPRECATED macro can be used to trigger compile-time warnings with gcc >= 3....
Definition Globals.h:117
Package.h
Patch.h
Pathname.h
RepoInfo.h
Resolvable.h
Url.h
UserData.h
shared_ptr
zypp::ByteCount
Store and operate with byte count.
Definition ByteCount.h:32
zypp::Package::constPtr
TraitsType::constPtrType constPtr
Definition Package.h:39
zypp::Patch::constPtr
TraitsType::constPtrType constPtr
Definition Patch.h:43
zypp::PoolQuery
Meta-data query API.
Definition PoolQuery.h:91
zypp::ProgressData
Maintain [min,max] and counter (value) for progress counting.
Definition progressdata.h:132
zypp::ProgressData::ReceiverFnc
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
Definition progressdata.h:140
zypp::ProgressData::finalReport
bool finalReport() const
Definition progressdata.h:336
zypp::RepoInfo
What is known about a repository.
Definition RepoInfo.h:72
zypp::Repository
Definition Repository.h:40
zypp::Resolvable::constPtr
TraitsType::constPtrType constPtr
Definition Resolvable.h:59
zypp::Url
Url manipulation class.
Definition Url.h:93
zypp::callback::UserData
Typesafe passing of user data via callbacks.
Definition UserData.h:40
zypp::callback::UserData::UserData
UserData()
Default ctor.
Definition UserData.h:55
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:48
zypp::media::AuthData
Class for handling media authentication data.
Definition authdata.h:31
zypp::sat::FileConflicts
Libsolv queue representing file conflicts.
Definition FileConflicts.h:31
zypp::sat::Queue
Libsolv Id queue wrapper.
Definition Queue.h:36
zypp::repo
Definition DeltaCandidates.cc:30
zypp::sat
Libsolv interface
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::ZYPP_API
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173
zypp::CleanEmptyLocksReport
Callback for cleaning locks which doesn't lock anything in pool.
Definition ZYppCallbacks.h:996
zypp::CleanEmptyLocksReport::Error
Error
result of cleaning
Definition ZYppCallbacks.h:1009
zypp::CleanEmptyLocksReport::NO_ERROR
@ NO_ERROR
no problem
Definition ZYppCallbacks.h:1010
zypp::CleanEmptyLocksReport::ABORTED
@ ABORTED
cleaning aborted by user
Definition ZYppCallbacks.h:1011
zypp::CleanEmptyLocksReport::Action
Action
action performed by cleaning api to specific lock
Definition ZYppCallbacks.h:1000
zypp::CleanEmptyLocksReport::IGNORE
@ IGNORE
skip empty lock
Definition ZYppCallbacks.h:1003
zypp::CleanEmptyLocksReport::ABORT
@ ABORT
abort and return error
Definition ZYppCallbacks.h:1001
zypp::CleanEmptyLocksReport::DELETE
@ DELETE
delete empty lock
Definition ZYppCallbacks.h:1002
zypp::CleanEmptyLocksReport::start
virtual void start()
cleaning is started
Definition ZYppCallbacks.h:1017
zypp::CleanEmptyLocksReport::execute
virtual Action execute(const PoolQuery &)
When find empty lock ask what to do with it.
Definition ZYppCallbacks.h:1031
zypp::CleanEmptyLocksReport::progress
virtual bool progress(int)
progress of cleaning specifies in percents
Definition ZYppCallbacks.h:1024
zypp::CleanEmptyLocksReport::finish
virtual void finish(Error)
cleaning is done
Definition ZYppCallbacks.h:1038
zypp::JobReport::EMsgTypeDef
message type (use like 'enum class MsgType')
Definition ZYppCallbacks.h:1106
zypp::JobReport::EMsgTypeDef::Enum
Enum
Definition ZYppCallbacks.h:1107
zypp::JobReport::EMsgTypeDef::data
@ data
Definition ZYppCallbacks.h:1107
zypp::JobReport::EMsgTypeDef::error
@ error
Definition ZYppCallbacks.h:1107
zypp::JobReport::EMsgTypeDef::important
@ important
Definition ZYppCallbacks.h:1107
zypp::JobReport::EMsgTypeDef::warning
@ warning
Definition ZYppCallbacks.h:1107
zypp::JobReport::EMsgTypeDef::debug
@ debug
Definition ZYppCallbacks.h:1107
zypp::JobReport::EMsgTypeDef::info
@ info
Definition ZYppCallbacks.h:1107
zypp::JobReport
Generic report for sending messages.
Definition ZYppCallbacks.h:1103
zypp::JobReport::debug
static bool debug(const std::string &msg_r, const UserData &userData_r=UserData())
send debug message text
Definition ZYppCallbacks.h:1128
zypp::JobReport::MsgType
base::EnumClass< EMsgTypeDef > MsgType
'enum class MsgType'
Definition ZYppCallbacks.h:1109
zypp::JobReport::warning
static bool warning(const std::string &msg_r, const UserData &userData_r=UserData())
send warning text
Definition ZYppCallbacks.h:1136
zypp::JobReport::error
static bool error(const std::string &msg_r, const UserData &userData_r=UserData())
send error text
Definition ZYppCallbacks.h:1140
zypp::JobReport::message
virtual bool message(MsgType type_r, const std::string &msg_r, const UserData &userData_r) const
Send a ready to show message text.
Definition ZYppCallbacks.h:1118
zypp::JobReport::data
static bool data(const std::string &msg_r, const UserData &userData_r=UserData())
send data message
Definition ZYppCallbacks.h:1148
zypp::JobReport::UserData
callback::UserData UserData
typsafe map of userdata
Definition ZYppCallbacks.h:1112
zypp::JobReport::important
static bool important(const std::string &msg_r, const UserData &userData_r=UserData())
send important message text
Definition ZYppCallbacks.h:1144
zypp::JobReport::repoRefreshMirrorlist
static const ContentType repoRefreshMirrorlist
Definition ZYppCallbacks.h:1114
zypp::JobReport::instance
static callback::SendReport< JobReport > & instance()
Singleton sender instance.
Definition ZYppImpl.cc:100
zypp::JobReport::info
static bool info(const std::string &msg_r, const UserData &userData_r=UserData())
send message text
Definition ZYppCallbacks.h:1132
zypp::ProgressReportAdaptor::_first
bool _first
Definition ZYppCallbacks.h:95
zypp::ProgressReportAdaptor::ProgressReportAdaptor
ProgressReportAdaptor(callback::SendReport< ProgressReport > &report)
Definition ZYppCallbacks.h:62
zypp::ProgressReportAdaptor::_fnc
ProgressData::ReceiverFnc _fnc
Definition ZYppCallbacks.h:93
zypp::ProgressReportAdaptor::_report
callback::SendReport< ProgressReport > & _report
Definition ZYppCallbacks.h:94
zypp::ProgressReportAdaptor::ProgressReportAdaptor
ProgressReportAdaptor(const ProgressData::ReceiverFnc &fnc, callback::SendReport< ProgressReport > &report)
Definition ZYppCallbacks.h:67
zypp::ProgressReportAdaptor::operator()
bool operator()(const ProgressData &progress)
Definition ZYppCallbacks.h:74
zypp::ProgressReport
Definition ZYppCallbacks.h:41
zypp::ProgressReport::start
virtual void start(const ProgressData &)
Definition ZYppCallbacks.h:42
zypp::ProgressReport::finish
virtual void finish(const ProgressData &)
Definition ZYppCallbacks.h:54
zypp::ProgressReport::progress
virtual bool progress(const ProgressData &)
Definition ZYppCallbacks.h:45
zypp::SavingLocksReport
this callback handles merging old locks with newly added or removed
Definition ZYppCallbacks.h:1048
zypp::SavingLocksReport::Action
Action
action for old lock which is in conflict
Definition ZYppCallbacks.h:1053
zypp::SavingLocksReport::DELETE
@ DELETE
delete conflicted lock
Definition ZYppCallbacks.h:1055
zypp::SavingLocksReport::IGNORE
@ IGNORE
skip conflict lock
Definition ZYppCallbacks.h:1056
zypp::SavingLocksReport::ABORT
@ ABORT
abort and return error
Definition ZYppCallbacks.h:1054
zypp::SavingLocksReport::progress
virtual bool progress()
merging still live
Definition ZYppCallbacks.h:1082
zypp::SavingLocksReport::finish
virtual void finish(Error)
Definition ZYppCallbacks.h:1093
zypp::SavingLocksReport::start
virtual void start()
Definition ZYppCallbacks.h:1076
zypp::SavingLocksReport::ConflictState
ConflictState
type of conflict of old and new lock
Definition ZYppCallbacks.h:1070
zypp::SavingLocksReport::INTERSECT
@ INTERSECT
locks lock some file and unlocking lock unlock only part of iti, so removing old lock can unlock more...
Definition ZYppCallbacks.h:1072
zypp::SavingLocksReport::SAME_RESULTS
@ SAME_RESULTS
locks lock same item in pool but its parameters are different
Definition ZYppCallbacks.h:1071
zypp::SavingLocksReport::Error
Error
result of merging
Definition ZYppCallbacks.h:1062
zypp::SavingLocksReport::ABORTED
@ ABORTED
cleaning aborted by user
Definition ZYppCallbacks.h:1064
zypp::SavingLocksReport::NO_ERROR
@ NO_ERROR
no problem
Definition ZYppCallbacks.h:1063
zypp::SavingLocksReport::conflict
virtual Action conflict(const PoolQuery &, ConflictState)
When user unlock something which is locked by non-identical query.
Definition ZYppCallbacks.h:1088
zypp::UserDataJobReport
JobReport convenience sending this instance of UserData with each message.
Definition ZYppCallbacks.h:1158
zypp::UserDataJobReport::error
bool error(const std::string &msg_r)
Definition ZYppCallbacks.h:1164
zypp::UserDataJobReport::data
bool data(const std::string &msg_r)
Definition ZYppCallbacks.h:1166
zypp::UserDataJobReport::info
bool info(const std::string &msg_r)
Definition ZYppCallbacks.h:1162
zypp::UserDataJobReport::debug
bool debug(const std::string &msg_r)
Definition ZYppCallbacks.h:1161
zypp::UserDataJobReport::important
bool important(const std::string &msg_r)
Definition ZYppCallbacks.h:1165
zypp::UserDataJobReport::warning
bool warning(const std::string &msg_r)
Definition ZYppCallbacks.h:1163
zypp::callback::ReportBase
Definition Callback.h:150
zypp::callback::ReportBase::ContentType
UserData::ContentType ContentType
Definition Callback.h:152
zypp::callback::ReportBase::UserData
callback::UserData UserData
Definition Callback.h:151
zypp::callback::SendReport
Definition Callback.h:237
zypp::media::AuthenticationReport
Definition ZYppCallbacks.h:475
zypp::media::AuthenticationReport::prompt
virtual bool prompt(const Url &, const std::string &, AuthData &)
Prompt for authentication data.
Definition ZYppCallbacks.h:490
zypp::media::CommitPreloadReport
Definition ZYppCallbacks.h:408
zypp::media::CommitPreloadReport::fileDone
virtual void fileDone(const Pathname &localfile, Error error, const UserData &userData=UserData())
File finished to download, Error indicated if it was successful for not.
Definition ZYppCallbacks.h:456
zypp::media::CommitPreloadReport::Error
Error
Definition ZYppCallbacks.h:409
zypp::media::CommitPreloadReport::ERROR
@ ERROR
Definition ZYppCallbacks.h:414
zypp::media::CommitPreloadReport::NOT_FOUND
@ NOT_FOUND
Definition ZYppCallbacks.h:411
zypp::media::CommitPreloadReport::IO
@ IO
Definition ZYppCallbacks.h:412
zypp::media::CommitPreloadReport::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:410
zypp::media::CommitPreloadReport::ACCESS_DENIED
@ ACCESS_DENIED
Definition ZYppCallbacks.h:413
zypp::media::CommitPreloadReport::progress
virtual bool progress(int value, const UserData &userData=UserData())
Overall Download progress.
Definition ZYppCallbacks.h:433
zypp::media::CommitPreloadReport::start
virtual void start(const UserData &userData=UserData())
Definition ZYppCallbacks.h:420
zypp::media::CommitPreloadReport::finish
virtual void finish(Result res, const UserData &userData=UserData())
Definition ZYppCallbacks.h:470
zypp::media::CommitPreloadReport::fileStart
virtual void fileStart(const Pathname &localfile, const UserData &userData=UserData())
File just started to download.
Definition ZYppCallbacks.h:443
zypp::media::CommitPreloadReport::Result
Result
Definition ZYppCallbacks.h:462
zypp::media::CommitPreloadReport::SUCCESS
@ SUCCESS
Definition ZYppCallbacks.h:463
zypp::media::CommitPreloadReport::MISS
@ MISS
Definition ZYppCallbacks.h:464
zypp::media::DownloadProgressReport
Definition ZYppCallbacks.h:363
zypp::media::DownloadProgressReport::Action
Action
Definition ZYppCallbacks.h:364
zypp::media::DownloadProgressReport::IGNORE
@ IGNORE
Definition ZYppCallbacks.h:367
zypp::media::DownloadProgressReport::RETRY
@ RETRY
Definition ZYppCallbacks.h:366
zypp::media::DownloadProgressReport::ABORT
@ ABORT
Definition ZYppCallbacks.h:365
zypp::media::DownloadProgressReport::finish
virtual void finish(const Url &, Error, const std::string &)
Definition ZYppCallbacks.h:399
zypp::media::DownloadProgressReport::progress
virtual bool progress(int, const Url &, double dbps_avg=-1, double dbps_current=-1)
Download progress.
Definition ZYppCallbacks.h:388
zypp::media::DownloadProgressReport::start
virtual void start(const Url &, Pathname)
Definition ZYppCallbacks.h:378
zypp::media::DownloadProgressReport::Error
Error
Definition ZYppCallbacks.h:370
zypp::media::DownloadProgressReport::IO
@ IO
Definition ZYppCallbacks.h:373
zypp::media::DownloadProgressReport::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:371
zypp::media::DownloadProgressReport::ACCESS_DENIED
@ ACCESS_DENIED
Definition ZYppCallbacks.h:374
zypp::media::DownloadProgressReport::ERROR
@ ERROR
Definition ZYppCallbacks.h:375
zypp::media::DownloadProgressReport::NOT_FOUND
@ NOT_FOUND
Definition ZYppCallbacks.h:372
zypp::media::DownloadProgressReport::problem
virtual Action problem(const Url &, Error, const std::string &)
Definition ZYppCallbacks.h:393
zypp::media::MediaChangeReport
Definition ZYppCallbacks.h:305
zypp::media::MediaChangeReport::Error
Error
Definition ZYppCallbacks.h:315
zypp::media::MediaChangeReport::IO_SOFT
@ IO_SOFT
IO error which can happen on worse connection like timeout exceed.
Definition ZYppCallbacks.h:321
zypp::media::MediaChangeReport::WRONG
@ WRONG
Definition ZYppCallbacks.h:320
zypp::media::MediaChangeReport::IO
@ IO
Definition ZYppCallbacks.h:318
zypp::media::MediaChangeReport::INVALID
@ INVALID
Definition ZYppCallbacks.h:319
zypp::media::MediaChangeReport::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:316
zypp::media::MediaChangeReport::NOT_FOUND
@ NOT_FOUND
Definition ZYppCallbacks.h:317
zypp::media::MediaChangeReport::Action
Action
Definition ZYppCallbacks.h:306
zypp::media::MediaChangeReport::CHANGE_URL
@ CHANGE_URL
Definition ZYppCallbacks.h:311
zypp::media::MediaChangeReport::IGNORE
@ IGNORE
Definition ZYppCallbacks.h:309
zypp::media::MediaChangeReport::ABORT
@ ABORT
Definition ZYppCallbacks.h:307
zypp::media::MediaChangeReport::IGNORE_ID
@ IGNORE_ID
Definition ZYppCallbacks.h:310
zypp::media::MediaChangeReport::EJECT
@ EJECT
Definition ZYppCallbacks.h:312
zypp::media::MediaChangeReport::RETRY
@ RETRY
Definition ZYppCallbacks.h:308
zypp::media::MediaChangeReport::requestMedia
virtual Action requestMedia(Url &, unsigned, const std::string &, Error, const std::string &, const std::vector< std::string > &, unsigned int &)
Definition ZYppCallbacks.h:337
zypp::media::ScopedDisableMediaChangeReport::ScopedDisableMediaChangeReport
ScopedDisableMediaChangeReport(bool condition_r=true)
Disbale MediaChangeReport if condition_r is true.
Definition ZYppImpl.cc:87
zypp::media::ScopedDisableMediaChangeReport::_guard
shared_ptr< callback::TempConnect< media::MediaChangeReport > > _guard
Definition ZYppCallbacks.h:358
zypp::repo::DownloadResolvableReport
Definition ZYppCallbacks.h:104
zypp::repo::DownloadResolvableReport::pkgGpgCheck
virtual void pkgGpgCheck(const UserData &userData_r=UserData())
Detail information about the result of a performed pkgGpgCheck.
Definition ZYppCallbacks.h:189
zypp::repo::DownloadResolvableReport::problemDeltaApply
virtual void problemDeltaApply(const std::string &)
Definition ZYppCallbacks.h:157
zypp::repo::DownloadResolvableReport::finish
virtual void finish(Resolvable::constPtr, Error, const std::string &)
Definition ZYppCallbacks.h:192
zypp::repo::DownloadResolvableReport::startDeltaApply
virtual void startDeltaApply(const Pathname &)
Definition ZYppCallbacks.h:151
zypp::repo::DownloadResolvableReport::infoInCache
virtual void infoInCache(Resolvable::constPtr res_r, const Pathname &localfile_r)
Hint that package is available in the local cache (no download needed).
Definition ZYppCallbacks.h:121
zypp::repo::DownloadResolvableReport::problem
virtual Action problem(Resolvable::constPtr, Error, const std::string &)
Definition ZYppCallbacks.h:167
zypp::repo::DownloadResolvableReport::problemDeltaDownload
virtual void problemDeltaDownload(const std::string &)
Definition ZYppCallbacks.h:141
zypp::repo::DownloadResolvableReport::startDeltaDownload
virtual void startDeltaDownload(const Pathname &, const ByteCount &)
Definition ZYppCallbacks.h:135
zypp::repo::DownloadResolvableReport::progressDeltaDownload
virtual bool progressDeltaDownload(int)
Definition ZYppCallbacks.h:138
zypp::repo::DownloadResolvableReport::Action
Action
Definition ZYppCallbacks.h:105
zypp::repo::DownloadResolvableReport::RETRY
@ RETRY
Definition ZYppCallbacks.h:107
zypp::repo::DownloadResolvableReport::ABORT
@ ABORT
Definition ZYppCallbacks.h:106
zypp::repo::DownloadResolvableReport::IGNORE
@ IGNORE
Definition ZYppCallbacks.h:108
zypp::repo::DownloadResolvableReport::progress
virtual bool progress(int, Resolvable::constPtr)
Definition ZYppCallbacks.h:164
zypp::repo::DownloadResolvableReport::finishDeltaDownload
virtual void finishDeltaDownload()
Definition ZYppCallbacks.h:144
zypp::repo::DownloadResolvableReport::finishDeltaApply
virtual void finishDeltaApply()
Definition ZYppCallbacks.h:160
zypp::repo::DownloadResolvableReport::progressDeltaApply
virtual void progressDeltaApply(int)
Definition ZYppCallbacks.h:154
zypp::repo::DownloadResolvableReport::Error
Error
Definition ZYppCallbacks.h:111
zypp::repo::DownloadResolvableReport::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:112
zypp::repo::DownloadResolvableReport::IO
@ IO
Definition ZYppCallbacks.h:114
zypp::repo::DownloadResolvableReport::NOT_FOUND
@ NOT_FOUND
Definition ZYppCallbacks.h:113
zypp::repo::DownloadResolvableReport::INVALID
@ INVALID
Definition ZYppCallbacks.h:115
zypp::repo::DownloadResolvableReport::start
virtual void start(Resolvable::constPtr, const Url &)
Definition ZYppCallbacks.h:124
zypp::repo::ProbeRepoReport
Definition ZYppCallbacks.h:201
zypp::repo::ProbeRepoReport::problem
virtual Action problem(const Url &, Error, const std::string &)
Definition ZYppCallbacks.h:223
zypp::repo::ProbeRepoReport::start
virtual void start(const Url &)
Definition ZYppCallbacks.h:215
zypp::repo::ProbeRepoReport::failedProbe
virtual void failedProbe(const Url &, const std::string &)
Definition ZYppCallbacks.h:216
zypp::repo::ProbeRepoReport::finish
virtual void finish(const Url &, Error, const std::string &)
Definition ZYppCallbacks.h:218
zypp::repo::ProbeRepoReport::progress
virtual bool progress(const Url &, int)
Definition ZYppCallbacks.h:220
zypp::repo::ProbeRepoReport::successProbe
virtual void successProbe(const Url &, const std::string &)
Definition ZYppCallbacks.h:217
zypp::repo::ProbeRepoReport::Action
Action
Definition ZYppCallbacks.h:202
zypp::repo::ProbeRepoReport::RETRY
@ RETRY
Definition ZYppCallbacks.h:204
zypp::repo::ProbeRepoReport::ABORT
@ ABORT
Definition ZYppCallbacks.h:203
zypp::repo::ProbeRepoReport::Error
Error
Definition ZYppCallbacks.h:207
zypp::repo::ProbeRepoReport::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:208
zypp::repo::ProbeRepoReport::NOT_FOUND
@ NOT_FOUND
Definition ZYppCallbacks.h:209
zypp::repo::ProbeRepoReport::IO
@ IO
Definition ZYppCallbacks.h:210
zypp::repo::ProbeRepoReport::INVALID
@ INVALID
Definition ZYppCallbacks.h:211
zypp::repo::ProbeRepoReport::UNKNOWN
@ UNKNOWN
Definition ZYppCallbacks.h:212
zypp::repo::RepoCreateReport
Definition ZYppCallbacks.h:228
zypp::repo::RepoCreateReport::finish
virtual void finish(const zypp::Url &, Error, const std::string &)
Definition ZYppCallbacks.h:254
zypp::repo::RepoCreateReport::Action
Action
Definition ZYppCallbacks.h:229
zypp::repo::RepoCreateReport::RETRY
@ RETRY
Definition ZYppCallbacks.h:231
zypp::repo::RepoCreateReport::IGNORE
@ IGNORE
Definition ZYppCallbacks.h:232
zypp::repo::RepoCreateReport::ABORT
@ ABORT
Definition ZYppCallbacks.h:230
zypp::repo::RepoCreateReport::progress
virtual bool progress(int)
Definition ZYppCallbacks.h:245
zypp::repo::RepoCreateReport::start
virtual void start(const zypp::Url &)
Definition ZYppCallbacks.h:244
zypp::repo::RepoCreateReport::problem
virtual Action problem(const zypp::Url &, Error, const std::string &)
Definition ZYppCallbacks.h:248
zypp::repo::RepoCreateReport::Error
Error
Definition ZYppCallbacks.h:235
zypp::repo::RepoCreateReport::REJECTED
@ REJECTED
Definition ZYppCallbacks.h:239
zypp::repo::RepoCreateReport::IO
@ IO
Definition ZYppCallbacks.h:238
zypp::repo::RepoCreateReport::UNKNOWN
@ UNKNOWN
Definition ZYppCallbacks.h:241
zypp::repo::RepoCreateReport::NOT_FOUND
@ NOT_FOUND
Definition ZYppCallbacks.h:237
zypp::repo::RepoCreateReport::INVALID
@ INVALID
Definition ZYppCallbacks.h:240
zypp::repo::RepoCreateReport::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:236
zypp::repo::RepoReport
Definition ZYppCallbacks.h:263
zypp::repo::RepoReport::Action
Action
Definition ZYppCallbacks.h:264
zypp::repo::RepoReport::ABORT
@ ABORT
Definition ZYppCallbacks.h:265
zypp::repo::RepoReport::RETRY
@ RETRY
Definition ZYppCallbacks.h:266
zypp::repo::RepoReport::IGNORE
@ IGNORE
Definition ZYppCallbacks.h:267
zypp::repo::RepoReport::start
virtual void start(const ProgressData &, const RepoInfo)
Definition ZYppCallbacks.h:277
zypp::repo::RepoReport::finish
virtual void finish(Repository, const std::string &, Error, const std::string &)
Definition ZYppCallbacks.h:287
zypp::repo::RepoReport::progress
virtual bool progress(const ProgressData &)
Definition ZYppCallbacks.h:278
zypp::repo::RepoReport::Error
Error
Definition ZYppCallbacks.h:270
zypp::repo::RepoReport::NOT_FOUND
@ NOT_FOUND
Definition ZYppCallbacks.h:272
zypp::repo::RepoReport::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:271
zypp::repo::RepoReport::IO
@ IO
Definition ZYppCallbacks.h:273
zypp::repo::RepoReport::INVALID
@ INVALID
Definition ZYppCallbacks.h:274
zypp::repo::RepoReport::problem
virtual Action problem(Repository, Error, const std::string &)
Definition ZYppCallbacks.h:281
zypp::target::CommitActiveReport
Fired exactly once per TargetImpl::commit call, marking the point at which the actual RPM transaction...
Definition ZYppCallbacks.h:604
zypp::target::CommitActiveReport::step
virtual void step(const UserData &=UserData())
Definition ZYppCallbacks.h:616
zypp::target::CommitActiveReport::start
virtual bool start(const UserData &=UserData())
Called once, synchronously, before the irreversible transaction begins.
Definition ZYppCallbacks.h:608
zypp::target::CommitActiveReport::end
virtual void end(const UserData &=UserData())
Called when all target state has been written.
Definition ZYppCallbacks.h:613
zypp::target::FindFileConflictstReport
Check for package file conflicts in commit (after download).
Definition ZYppCallbacks.h:559
zypp::target::FindFileConflictstReport::start
virtual bool start(const ProgressData &progress_r)
Definition ZYppCallbacks.h:564
zypp::target::FindFileConflictstReport::result
virtual bool result(const ProgressData &progress_r, const sat::Queue &noFilelist_r, const sat::FileConflicts &conflicts_r)
Definition ZYppCallbacks.h:581
zypp::target::FindFileConflictstReport::progress
virtual bool progress(const ProgressData &progress_r, const sat::Queue &noFilelist_r)
Definition ZYppCallbacks.h:572
zypp::target::PatchMessageReport
Request to display the pre commit message of a patch.
Definition ZYppCallbacks.h:507
zypp::target::PatchMessageReport::show
virtual bool show(Patch::constPtr &)
Display patch->message().
Definition ZYppCallbacks.h:511
zypp::target::PatchScriptReport
Indicate execution of a patch script.
Definition ZYppCallbacks.h:520
zypp::target::PatchScriptReport::Action
Action
Definition ZYppCallbacks.h:522
zypp::target::PatchScriptReport::ABORT
@ ABORT
Definition ZYppCallbacks.h:523
zypp::target::PatchScriptReport::RETRY
@ RETRY
Definition ZYppCallbacks.h:524
zypp::target::PatchScriptReport::IGNORE
@ IGNORE
Definition ZYppCallbacks.h:525
zypp::target::PatchScriptReport::progress
virtual bool progress(Notify, const std::string &=std::string())
Progress provides the script output.
Definition ZYppCallbacks.h:537
zypp::target::PatchScriptReport::problem
virtual Action problem(const std::string &)
Report error.
Definition ZYppCallbacks.h:541
zypp::target::PatchScriptReport::finish
virtual void finish()
Report success.
Definition ZYppCallbacks.h:544
zypp::target::PatchScriptReport::start
virtual void start(const Package::constPtr &, const Pathname &)
Start executing the script provided by package.
Definition ZYppCallbacks.h:530
zypp::target::PatchScriptReport::Notify
Notify
Definition ZYppCallbacks.h:521
zypp::target::PatchScriptReport::OUTPUT
@ OUTPUT
Definition ZYppCallbacks.h:521
zypp::target::PatchScriptReport::PING
@ PING
Definition ZYppCallbacks.h:521
zypp::target::rpm::CleanupPackageReportSA
Definition ZYppCallbacks.h:915
zypp::target::rpm::CleanupPackageReportSA::start
virtual void start(const std::string &, const UserData &=UserData())
Definition ZYppCallbacks.h:920
zypp::target::rpm::CleanupPackageReportSA::progress
virtual void progress(int, const UserData &=UserData())
Definition ZYppCallbacks.h:925
zypp::target::rpm::CleanupPackageReportSA::finish
virtual void finish(Error, const UserData &=UserData())
Definition ZYppCallbacks.h:930
zypp::target::rpm::CleanupPackageReportSA::ZYPP_API
static const UserData::ContentType contentRpmout ZYPP_API
"zypp-rpm/cleanupkgsa": Additional rpm output (sent immediately).
Definition ZYppCallbacks.h:938
zypp::target::rpm::CleanupPackageReportSA::Error
Error
Definition ZYppCallbacks.h:916
zypp::target::rpm::CleanupPackageReportSA::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:917
zypp::target::rpm::CommitScriptReportSA
Definition ZYppCallbacks.h:945
zypp::target::rpm::CommitScriptReportSA::Error
Error
Definition ZYppCallbacks.h:946
zypp::target::rpm::CommitScriptReportSA::CRITICAL
@ CRITICAL
Definition ZYppCallbacks.h:949
zypp::target::rpm::CommitScriptReportSA::WARN
@ WARN
Definition ZYppCallbacks.h:948
zypp::target::rpm::CommitScriptReportSA::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:947
zypp::target::rpm::CommitScriptReportSA::finish
virtual void finish(Resolvable::constPtr, Error, const UserData &=UserData())
Definition ZYppCallbacks.h:965
zypp::target::rpm::CommitScriptReportSA::progress
virtual void progress(int, Resolvable::constPtr, const UserData &=UserData())
Definition ZYppCallbacks.h:959
zypp::target::rpm::CommitScriptReportSA::ZYPP_API
static const UserData::ContentType contentRpmout ZYPP_API
"zypp-rpm/scriptsa": Additional rpm output (sent immediately).
Definition ZYppCallbacks.h:976
zypp::target::rpm::CommitScriptReportSA::start
virtual void start(const std::string &, const std::string &, Resolvable::constPtr, const UserData &=UserData())
Definition ZYppCallbacks.h:952
zypp::target::rpm::InstallResolvableReportSA
Definition ZYppCallbacks.h:847
zypp::target::rpm::InstallResolvableReportSA::finish
virtual void finish(Resolvable::constPtr, Error, const UserData &=UserData())
Definition ZYppCallbacks.h:866
zypp::target::rpm::InstallResolvableReportSA::Error
Error
Definition ZYppCallbacks.h:848
zypp::target::rpm::InstallResolvableReportSA::NOT_FOUND
@ NOT_FOUND
Definition ZYppCallbacks.h:850
zypp::target::rpm::InstallResolvableReportSA::INVALID
@ INVALID
Definition ZYppCallbacks.h:852
zypp::target::rpm::InstallResolvableReportSA::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:849
zypp::target::rpm::InstallResolvableReportSA::IO
@ IO
Definition ZYppCallbacks.h:851
zypp::target::rpm::InstallResolvableReportSA::ZYPP_API
static const UserData::ContentType contentRpmout ZYPP_API
"zypp-rpm/installpkgsa": Additional rpm output (sent immediately).
Definition ZYppCallbacks.h:877
zypp::target::rpm::InstallResolvableReportSA::start
virtual void start(Resolvable::constPtr, const UserData &=UserData())
Definition ZYppCallbacks.h:855
zypp::target::rpm::InstallResolvableReportSA::progress
virtual void progress(int, Resolvable::constPtr, const UserData &=UserData())
Definition ZYppCallbacks.h:860
zypp::target::rpm::InstallResolvableReport
Definition ZYppCallbacks.h:625
zypp::target::rpm::InstallResolvableReport::ZYPP_API
static const UserData::ContentType contentRpmout ZYPP_API
"rpmout/installpkg": Additional rpm output (sent immediately).
Definition ZYppCallbacks.h:674
zypp::target::rpm::InstallResolvableReport::progress
virtual bool progress(int, Resolvable::constPtr)
Definition ZYppCallbacks.h:651
zypp::target::rpm::InstallResolvableReport::problem
virtual Action problem(Resolvable::constPtr, Error, const std::string &, RpmLevel)
Definition ZYppCallbacks.h:654
zypp::target::rpm::InstallResolvableReport::start
virtual void start(Resolvable::constPtr)
Definition ZYppCallbacks.h:647
zypp::target::rpm::InstallResolvableReport::Action
Action
Definition ZYppCallbacks.h:626
zypp::target::rpm::InstallResolvableReport::IGNORE
@ IGNORE
Definition ZYppCallbacks.h:629
zypp::target::rpm::InstallResolvableReport::RETRY
@ RETRY
Definition ZYppCallbacks.h:628
zypp::target::rpm::InstallResolvableReport::ABORT
@ ABORT
Definition ZYppCallbacks.h:627
zypp::target::rpm::InstallResolvableReport::finish
virtual void finish(Resolvable::constPtr, Error, const std::string &, RpmLevel)
Definition ZYppCallbacks.h:661
zypp::target::rpm::InstallResolvableReport::Error
Error
Definition ZYppCallbacks.h:632
zypp::target::rpm::InstallResolvableReport::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:633
zypp::target::rpm::InstallResolvableReport::INVALID
@ INVALID
Definition ZYppCallbacks.h:636
zypp::target::rpm::InstallResolvableReport::NOT_FOUND
@ NOT_FOUND
Definition ZYppCallbacks.h:634
zypp::target::rpm::InstallResolvableReport::IO
@ IO
Definition ZYppCallbacks.h:635
zypp::target::rpm::InstallResolvableReport::RpmLevel
RpmLevel
Definition ZYppCallbacks.h:641
zypp::target::rpm::InstallResolvableReport::RPM_NODEPS_FORCE
@ RPM_NODEPS_FORCE
only this one used
Definition ZYppCallbacks.h:644
zypp::target::rpm::InstallResolvableReport::RPM
@ RPM
Definition ZYppCallbacks.h:642
zypp::target::rpm::InstallResolvableReport::RPM_NODEPS
@ RPM_NODEPS
Definition ZYppCallbacks.h:643
zypp::target::rpm::RebuildDBReport
Definition ZYppCallbacks.h:720
zypp::target::rpm::RebuildDBReport::progress
virtual bool progress(int, Pathname)
Definition ZYppCallbacks.h:734
zypp::target::rpm::RebuildDBReport::finish
virtual void finish(Pathname, Error, const std::string &)
Definition ZYppCallbacks.h:743
zypp::target::rpm::RebuildDBReport::start
virtual void start(Pathname)
Definition ZYppCallbacks.h:732
zypp::target::rpm::RebuildDBReport::Action
Action
Definition ZYppCallbacks.h:721
zypp::target::rpm::RebuildDBReport::RETRY
@ RETRY
Definition ZYppCallbacks.h:723
zypp::target::rpm::RebuildDBReport::ABORT
@ ABORT
Definition ZYppCallbacks.h:722
zypp::target::rpm::RebuildDBReport::IGNORE
@ IGNORE
Definition ZYppCallbacks.h:724
zypp::target::rpm::RebuildDBReport::problem
virtual Action problem(Pathname, Error, const std::string &)
Definition ZYppCallbacks.h:737
zypp::target::rpm::RebuildDBReport::Error
Error
Definition ZYppCallbacks.h:727
zypp::target::rpm::RebuildDBReport::FAILED
@ FAILED
Definition ZYppCallbacks.h:729
zypp::target::rpm::RebuildDBReport::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:728
zypp::target::rpm::RemoveResolvableReportSA
Definition ZYppCallbacks.h:882
zypp::target::rpm::RemoveResolvableReportSA::Error
Error
Definition ZYppCallbacks.h:883
zypp::target::rpm::RemoveResolvableReportSA::IO
@ IO
Definition ZYppCallbacks.h:886
zypp::target::rpm::RemoveResolvableReportSA::INVALID
@ INVALID
Definition ZYppCallbacks.h:887
zypp::target::rpm::RemoveResolvableReportSA::NOT_FOUND
@ NOT_FOUND
Definition ZYppCallbacks.h:885
zypp::target::rpm::RemoveResolvableReportSA::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:884
zypp::target::rpm::RemoveResolvableReportSA::finish
virtual void finish(Resolvable::constPtr, Error, const UserData &=UserData())
Definition ZYppCallbacks.h:901
zypp::target::rpm::RemoveResolvableReportSA::start
virtual void start(Resolvable::constPtr, const UserData &=UserData())
Definition ZYppCallbacks.h:890
zypp::target::rpm::RemoveResolvableReportSA::ZYPP_API
static const UserData::ContentType contentRpmout ZYPP_API
"zypp-rpm/removepkgsa": Additional rpm output (sent immediately).
Definition ZYppCallbacks.h:910
zypp::target::rpm::RemoveResolvableReportSA::progress
virtual void progress(int, Resolvable::constPtr, const UserData &=UserData())
Definition ZYppCallbacks.h:895
zypp::target::rpm::RemoveResolvableReport
Definition ZYppCallbacks.h:679
zypp::target::rpm::RemoveResolvableReport::start
virtual void start(Resolvable::constPtr)
Definition ZYppCallbacks.h:693
zypp::target::rpm::RemoveResolvableReport::problem
virtual Action problem(Resolvable::constPtr, Error, const std::string &)
Definition ZYppCallbacks.h:700
zypp::target::rpm::RemoveResolvableReport::ZYPP_API
static const UserData::ContentType contentRpmout ZYPP_API
"rpmout/removepkg": Additional rpm output (sent immediately).
Definition ZYppCallbacks.h:715
zypp::target::rpm::RemoveResolvableReport::Error
Error
Definition ZYppCallbacks.h:686
zypp::target::rpm::RemoveResolvableReport::IO
@ IO
Definition ZYppCallbacks.h:689
zypp::target::rpm::RemoveResolvableReport::INVALID
@ INVALID
Definition ZYppCallbacks.h:690
zypp::target::rpm::RemoveResolvableReport::NOT_FOUND
@ NOT_FOUND
Definition ZYppCallbacks.h:688
zypp::target::rpm::RemoveResolvableReport::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:687
zypp::target::rpm::RemoveResolvableReport::Action
Action
Definition ZYppCallbacks.h:680
zypp::target::rpm::RemoveResolvableReport::RETRY
@ RETRY
Definition ZYppCallbacks.h:682
zypp::target::rpm::RemoveResolvableReport::IGNORE
@ IGNORE
Definition ZYppCallbacks.h:683
zypp::target::rpm::RemoveResolvableReport::ABORT
@ ABORT
Definition ZYppCallbacks.h:681
zypp::target::rpm::RemoveResolvableReport::finish
virtual void finish(Resolvable::constPtr, Error, const std::string &)
Definition ZYppCallbacks.h:706
zypp::target::rpm::RemoveResolvableReport::progress
virtual bool progress(int, Resolvable::constPtr)
Definition ZYppCallbacks.h:697
zypp::target::rpm::SingleTransReport
Report active throughout the whole rpm transaction.
Definition ZYppCallbacks.h:789
zypp::target::rpm::SingleTransReport::loglevelPrefix
static const char *const loglevelPrefix(loglevel level_r)
Suggested prefix for log-lines to show.
Definition ZYppCallbacks.h:799
zypp::target::rpm::SingleTransReport::loglevel
loglevel
Rendering hint for log-lines to show.
Definition ZYppCallbacks.h:797
zypp::target::rpm::SingleTransReport::loglevel::war
@ war
Definition ZYppCallbacks.h:797
zypp::target::rpm::SingleTransReport::loglevel::err
@ err
Definition ZYppCallbacks.h:797
zypp::target::rpm::SingleTransReport::loglevel::msg
@ msg
Definition ZYppCallbacks.h:797
zypp::target::rpm::SingleTransReport::loglevel::dbg
@ dbg
Definition ZYppCallbacks.h:797
zypp::target::rpm::SingleTransReport::loglevel::crt
@ crt
Definition ZYppCallbacks.h:797
zypp::target::rpm::SingleTransReport::ZYPP_API
static const UserData::ContentType contentLogline ZYPP_API
"zypp-rpm/logline" report a line suitable to be written to the screen.
Definition ZYppCallbacks.h:795
zypp::target::rpm::TransactionReportSA
Definition ZYppCallbacks.h:815
zypp::target::rpm::TransactionReportSA::progress
virtual void progress(int, const UserData &=UserData())
Definition ZYppCallbacks.h:827
zypp::target::rpm::TransactionReportSA::finish
virtual void finish(Error, const UserData &=UserData())
Definition ZYppCallbacks.h:832
zypp::target::rpm::TransactionReportSA::Error
Error
Definition ZYppCallbacks.h:816
zypp::target::rpm::TransactionReportSA::FINISHED_WITH_ERRORS
@ FINISHED_WITH_ERRORS
Definition ZYppCallbacks.h:818
zypp::target::rpm::TransactionReportSA::NO_ERROR
@ NO_ERROR
Definition ZYppCallbacks.h:817
zypp::target::rpm::TransactionReportSA::FAILED
@ FAILED
Definition ZYppCallbacks.h:819
zypp::target::rpm::TransactionReportSA::start
virtual void start(const std::string &, const UserData &=UserData())
Definition ZYppCallbacks.h:822
zypp::target::rpm::TransactionReportSA::ZYPP_API
static const UserData::ContentType contentRpmout ZYPP_API
"zypp-rpm/transactionsa": Additional rpm output (sent immediately).
Definition ZYppCallbacks.h:841