43 #ifndef USER_INTERACTION_HPP
44 #define USER_INTERACTION_HPP
46 #include "../my_config.h"
110 virtual void pause(
const std::string & message)
124 virtual bool pause2(
const std::string & message)
125 {
throw Elibcall(
"user_interaction::pause2",
"user_interaction::pause() or pause2() must be overwritten !"); };
133 void warning(
const std::string & message);
140 virtual std::string
get_string(
const std::string & message,
bool echo) = 0;
168 virtual void listing(
const std::string & flag,
169 const std::string & perm,
170 const std::string & uid,
171 const std::string & gid,
172 const std::string & size,
173 const std::string & date,
174 const std::string & filename,
208 const std::string & chemin,
209 const std::string & archive_name);
244 const std::string & data_date,
245 const std::string & data_presence,
246 const std::string & ea_date,
247 const std::string & ea_presence);
258 void printf(
const char *format, ...);
323 bool use_dar_manager_show_files;
324 bool use_dar_manager_contents;
325 bool use_dar_manager_statistics;
326 bool use_dar_manager_show_version;
354 bool (*x_answer_callback)(
const std::string &x,
void *context),
355 std::string (*x_string_callback)(
const std::string &x,
bool echo,
void *context),
356 secu_string (*x_secu_string_callback)(
const std::string &x,
bool echo,
void *context),
357 void *context_value);
360 void pause(
const std::string & message);
362 std::string
get_string(
const std::string & message,
bool echo);
366 void listing(
const std::string & flag,
367 const std::string & perm,
368 const std::string & uid,
369 const std::string & gid,
370 const std::string & size,
371 const std::string & date,
372 const std::string & filename,
383 const std::string & chemin,
384 const std::string & archive_name);
395 const std::string & data_date,
396 const std::string & data_presence,
397 const std::string & ea_date,
398 const std::string & ea_presence);
406 const std::string & perm,
407 const std::string & uid,
408 const std::string & gid,
409 const std::string & size,
410 const std::string & date,
411 const std::string & filename,
416 tar_listing_callback = callback;
422 void set_dar_manager_show_files_callback(
void (*callback)(
const std::string & filename,
427 dar_manager_show_files_callback = callback;
431 void set_dar_manager_contents_callback(
void (*callback)(U_I number,
432 const std::string & chemin,
433 const std::string & archive_name,
436 dar_manager_contents_callback = callback;
440 void set_dar_manager_statistics_callback(
void (*callback)(U_I number,
441 const infinint & data_count,
442 const infinint & total_data,
443 const infinint & ea_count,
444 const infinint & total_ea,
447 dar_manager_statistics_callback = callback;
451 void set_dar_manager_show_version_callback(
void (*callback)(U_I number,
452 const std::string & data_date,
453 const std::string & data_presence,
454 const std::string & ea_date,
455 const std::string & ea_presence,
458 dar_manager_show_version_callback = callback;
471 void (*warning_callback)(
const std::string & x,
void *context);
472 bool (*answer_callback)(
const std::string & x,
void *context);
473 std::string (*string_callback)(
const std::string & x,
bool echo,
void *context);
474 secu_string (*secu_string_callback)(
const std::string & x,
bool echo,
void *context);
475 void (*tar_listing_callback)(
const std::string & flags,
476 const std::string & perm,
477 const std::string & uid,
478 const std::string & gid,
479 const std::string & size,
480 const std::string & date,
481 const std::string & filename,
485 void (*dar_manager_show_files_callback)(
const std::string & filename,
489 void (*dar_manager_contents_callback)(U_I number,
490 const std::string & chemin,
491 const std::string & archive_name,
493 void (*dar_manager_statistics_callback)(U_I number,
494 const infinint & data_count,
495 const infinint & total_data,
496 const infinint & ea_count,
497 const infinint & total_ea,
499 void (*dar_manager_show_version_callback)(U_I number,
500 const std::string & data_date,
501 const std::string & data_presence,
502 const std::string & ea_date,
503 const std::string & ea_presence,
515 bool pause2(
const std::string & message) {
return false; };
517 std::string
get_string(
const std::string & message,
bool echo) {
return "user_interaction_blind, is blindly answering no"; };