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


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4909844ad6
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-12-10 (Wed, 10 Dec 2014)



------------------
This commit was generated by Migit
This commit is contained in:
2014-12-10 10:41:34 +01:00
parent 1abcf08154
commit caaf826cf3
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;