COPKGManager: add member to handle line of shell lines

prepared for use as callback in shell window class, currently
it is not possible to get line output from shellwindow object, this
should help soon

also added ne locales
This commit is contained in:
2014-12-10 10:41:34 +01:00
parent b3afd24260
commit 4909844ad6
6 changed files with 90 additions and 43 deletions

View File

@@ -58,6 +58,9 @@ class COPKGManager : public CMenuTarget
bool expert_mode;
int menu_offset;
std::string *local_dir;
bool has_err;
std::string err_msg;
int execCmd(const char* cmdstr, bool verbose = false, bool acknowledge = false);
int execCmd(std::string cmdstr, bool verbose = false, bool acknowledge = false) {
@@ -73,6 +76,7 @@ class COPKGManager : public CMenuTarget
bool badpackage(std::string &s);
void showError(const char* local_msg, char* err_msg, const std::string& command);
int doUpdate();
void handleShellOutput(std::string& cur_line);
struct pkg {
std::string name;