add user list

This commit is contained in:
2020-05-20 00:09:18 +02:00
parent 4fc3d964ce
commit 021139d669
12 changed files with 115 additions and 15 deletions

View File

@@ -1,13 +1,5 @@
#include "controller_info.h"
#include <iostream>
std::string get_first(std::string &info){
int pos = info.find(":");
std::string ret = info.substr(0, pos);
info=info.substr(pos+1, info.size()+1);
return ret;
}
controller_info::controller_info(view_info *view, session_manager *sesion)
{
@@ -25,9 +17,11 @@ void controller_info::load_info(){
row[this->view->m_Columns.r_config]=(get_first(data)=="t");
row[this->view->m_Columns.r_user]=get_first(data);
}
/*row[this->view->m_Columns.r_name] = "firefox";
row[this->view->m_Columns.r_date] = "2020-10-2";
row[this->view->m_Columns.r_config] = true;
row[this->view->m_Columns.r_user] = "pepe";*/
}
std::string controller_info::get_first(std::string &info){
int pos = info.find(":");
std::string ret = info.substr(0, pos);
info=info.substr(pos+1, info.size()+1);
return ret;
}