ClienteTFG/controller_info.h

45 lines
1009 B
C
Raw Normal View History

#ifndef CONTROLLER_INFO_H
#define CONTROLLER_INFO_H
#include "session_manager.h"
#include "view_info.h"
class controller_info
{
public:
2020-06-01 23:24:24 +02:00
/**
* @brief controller_info
* View controler that expose package information
* @param view View to controle
* @param sesion Model to have the funcionality
*/
controller_info(view_info *view, session_manager *sesion);
private:
view_info *view;
session_manager *sesion;
2020-06-01 23:24:24 +02:00
/**
* @brief load_info
* Load the info in the table
*/
void load_info();
2020-06-01 23:24:24 +02:00
/**
* @brief get_first
* Get the firs string until the special character ":"
* @param info String to divide, the string have substract the string returned, and the first ":"
* @return The string substracted
*/
2020-05-20 00:09:18 +02:00
std::string get_first(std::string &info);
2020-06-01 23:24:24 +02:00
/**
* @brief on_button_clicked
* Button function
*/
2020-05-26 18:09:22 +02:00
void on_button_clicked();
2020-06-01 23:24:24 +02:00
/**
* @brief add_controlers
* Add controlers to the bottons
*/
2020-05-26 18:09:22 +02:00
void add_controlers();
};
#endif // CONTROLLER_INFO_H