16 : _userData(
std::
move(userData) )
35 , _message(
std::
move(message) )
56 , _answers(
std::
move(answers) )
57 , _answer(
std::
move(defaultAnswer) )
58 , _default(
std::
move(defaultAnswer) )
74 ZYPP_THROW( std::logic_error(
"Selection index is out of range") );
96 , _answer( defaultAnswer )
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Typesafe passing of user data via callbacks.
UserRequestType type() const override
void setChoice(const bool sel)
const std::string & label() const
std::vector< Choice >::size_type index_type
index_type choice() const
void setChoice(const index_type sel)
std::vector< Choice > _answers
const std::string & label() const
UserRequestType type() const override
index_type defaultAnswer() const
const std::vector< Choice > & answers() const
const std::string & message() const
UserRequestType type() const override
const UserData & userData() const
UserRequest(UserData userData={})
#define ZYPP_THROW(EXCPT)
Drops a logline and throws the Exception.
#define ZYPP_IMPL_PRIVATE_CONSTR_ARGS(Class,...)