Disk ARchive  2.4.17
shell_interaction.hpp
Go to the documentation of this file.
1 /*********************************************************************/
2 // dar - disk archive - a backup/restoration program
3 // Copyright (C) 2002-2052 Denis Corbin
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 //
19 // to contact the author : http://dar.linux.free.fr/email.html
20 /*********************************************************************/
21 
25 
26 
27 #ifndef SHELL_INTERACTION_HPP
28 #define SHELL_INTERACTION_HPP
29 
30 #include "../my_config.h"
31 #include <iostream>
32 
33 #include "user_interaction.hpp"
34 
35 using namespace std;
36 using namespace libdar;
37 
40 
41 user_interaction *shell_interaction_init(ostream *out, ostream *interact, bool silent);
42  // arg are output ostream object (on which are sent non interactive messages)
43  // and interact ostream object (on which are sent message that require a user interaction)
44 
45  // the argument returned must be freed with a call to "delete"
46 
47 void shell_interaction_change_non_interactive_output(ostream *out);
48 void shell_interaction_read_char(char & a);
49 void shell_interaction_close();
50 void shell_interaction_set_beep(bool mode);
51 
53 
54 #endif
STL namespace.
This is a pure virtual class that is used by libdar when interaction with the user is required...
defines the interaction between libdar and the user.Three classes are defined
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:43