mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user