Disk ARchive  2.4.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions | Protected Member Functions
libdar::user_interaction_blind Class Reference

full implementation class for user_interaction, which shows nothing and assumes answer "no" to any question More...

#include <user_interaction.hpp>

Inherits libdar::user_interaction.

List of all members.

Public Member Functions

bool pause2 (const std::string &message)
 alternative method to the pause() method
std::string get_string (const std::string &message, bool echo)
 method used to ask a question that needs an arbitrary answer.
secu_string get_secu_string (const std::string &message, bool echo)
 same a get_string() but uses secu_string instead
user_interactionclone () const
 make a newly allocated object which has the same properties as "this".

Protected Member Functions

void inherited_warning (const std::string &message)
 need to be overwritten in place of the warning() method since API 3.1.x

Detailed Description

full implementation class for user_interaction, which shows nothing and assumes answer "no" to any question

Definition at line 515 of file src/libdar/user_interaction.hpp.


Member Function Documentation

make a newly allocated object which has the same properties as "this".

This *is* a virtual method, it *must* be overwritten in any inherited class copy constructor and = operator may have to be overwrittent too if necessary Warning ! clone() must throw exception if necessary (Ememory), but never return a NULL pointer !

Implements libdar::user_interaction.

Definition at line 523 of file src/libdar/user_interaction.hpp.

secu_string libdar::user_interaction_blind::get_secu_string ( const std::string &  message,
bool  echo 
) [inline, virtual]

same a get_string() but uses secu_string instead

Parameters:
[in]messageis the question to display to the user.
[in]echois set to false is the answer must not be shown while the user answers.
Returns:
the user's answer.

Implements libdar::user_interaction.

Definition at line 521 of file src/libdar/user_interaction.hpp.

std::string libdar::user_interaction_blind::get_string ( const std::string &  message,
bool  echo 
) [inline, virtual]

method used to ask a question that needs an arbitrary answer.

Parameters:
[in]messageis the question to display to the user.
[in]echois set to false is the answer must not be shown while the user answers.
Returns:
the user's answer.

Implements libdar::user_interaction.

Definition at line 520 of file src/libdar/user_interaction.hpp.

void libdar::user_interaction_blind::inherited_warning ( const std::string &  message) [inline, protected, virtual]

need to be overwritten in place of the warning() method since API 3.1.x

Parameters:
[in]messagemessage to display

Implements libdar::user_interaction.

Definition at line 526 of file src/libdar/user_interaction.hpp.

bool libdar::user_interaction_blind::pause2 ( const std::string &  message) [inline, virtual]

alternative method to the pause() method

Parameters:
[in]messageThe boolean question to ask to the user
Returns:
the answer of the user (true/yes or no/false)
Note:
either pause2() or pause() *must* be overwritten, but not both. libdar always calls pause() which default implementation relies on pause2() where it converts negative return from pause2() by throwing the appropriated exception. As soon as you overwrite pause(), pause2() is no more used.

Reimplemented from libdar::user_interaction.

Definition at line 518 of file src/libdar/user_interaction.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines