Add initial efforts
[minishell-2.git] / Headers / opsys.h
blobfcd3f901ef71a1f847ac43ecf6031db1d9416674
1 #ifndef OPSYS_H
2 #define OPSYS_H
4 #include "input.h"
6 /*!
7 * \class SignalHandler
8 * \brief Handles SIGHUP and SIGINT signals.
9 */
10 class SignalHandler
12 struct sigaction signal_action;
13 public:
14 /*!
15 * \brief Constructor for SignalHandler. Handles SIGHUP and SIGINT signals.
17 SignalHandler();
20 class OpSys
22 string get_cwd();
23 public:
24 string username; // Username
25 string hostname; // User's hostname
26 string cwd; // Current working directory
27 OpSys();
28 void change_dir(vector<string>);
31 extern OpSys OS;
33 #endif // OPSYS_H