2020-05-16 20:52:10 +02:00
|
|
|
#ifndef CONTROLADOR_H
|
|
|
|
#define CONTROLADOR_H
|
|
|
|
#include "view_install.h"
|
|
|
|
#include "conexion.h"
|
|
|
|
#include "session_manager.h"
|
|
|
|
class controller_install
|
|
|
|
{
|
|
|
|
public:
|
2020-06-01 23:24:24 +02:00
|
|
|
/**
|
|
|
|
* @brief controller_install
|
|
|
|
* View controler that send a name package to build
|
|
|
|
* @param view View to controle
|
|
|
|
* @param sesion Model to have the funcionality
|
|
|
|
*/
|
|
|
|
controller_install(view_install* view, session_manager* sesion);
|
2020-05-16 20:52:10 +02:00
|
|
|
private:
|
|
|
|
view_install *vis;
|
|
|
|
session_manager *sesi;
|
2020-06-01 23:24:24 +02:00
|
|
|
/**
|
|
|
|
* @brief add_controlers
|
|
|
|
* Add controlers to the bottons
|
|
|
|
*/
|
2020-05-16 20:52:10 +02:00
|
|
|
void add_controlers();
|
2020-06-01 23:24:24 +02:00
|
|
|
/**
|
|
|
|
* @brief on_button_clicked
|
|
|
|
* Button function
|
|
|
|
*/
|
2020-05-16 20:52:10 +02:00
|
|
|
void on_button_clicked();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLADOR_H
|