2020-05-08 12:43:46 +02:00
|
|
|
#ifndef LAUNCHER_H
|
|
|
|
#define LAUNCHER_H
|
|
|
|
#include <iostream>
|
|
|
|
#include <data_acces.h>
|
|
|
|
class session_manager
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
session_manager(int fd);
|
|
|
|
void start_dialog();
|
|
|
|
int execute();
|
2020-05-15 21:39:23 +02:00
|
|
|
int remove();
|
2020-05-08 12:43:46 +02:00
|
|
|
void send_information();
|
2020-05-20 00:10:05 +02:00
|
|
|
void send_user_info();
|
2020-05-08 12:43:46 +02:00
|
|
|
bool validate_pass();
|
2020-05-21 20:57:18 +02:00
|
|
|
void create_user();
|
2020-05-26 01:37:34 +02:00
|
|
|
void remove_user();
|
2020-05-08 12:43:46 +02:00
|
|
|
private:
|
2020-05-15 21:39:23 +02:00
|
|
|
std::string appli_command(char comand[], char* n_package);
|
2020-05-08 12:43:46 +02:00
|
|
|
virtual int read_data(char* input, int size);
|
|
|
|
virtual int write_data(std::string output);
|
|
|
|
int fd;
|
|
|
|
data_acces* data;
|
|
|
|
char** args;
|
2020-05-15 21:39:23 +02:00
|
|
|
std::string user;
|
2020-05-08 12:43:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LAUNCHER_H
|