4 * Read the file COPYING
8 * Full author contact details are available in file CREDITS
14 #include "support/lstrings.h"
20 /// show an alert message
21 void alert(string const & title, string const & s1 = string(),
22 string const & s2 = string());
24 /// show an alert message and strerror(errno)
25 void err_alert(string const & s1, string const & s2 = string());
28 bool askQuestion(string const & s1, string const & s2 = string(),
29 string const & s3 = string(), bool default_value = true);
31 /// Returns 1 for yes, 2 for no, 3 for cancel.
32 int askConfirmation(string const & s1, string const & s2 = string(),
33 string const & s3 = string(), int default_value = 1);
36 std::pair<bool, string> const
37 askForText(string const & msg,
38 string const & dflt = string());