CShellWindow/COPKGManager: rework shell shell mode handling

Modes were handled with bool values inside manager and this is not really
enough. Now we use the real parameters for more flexibility.


Origin commit data
------------------
Branch: ni/coolstream
Commit: e1e8cb0142
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-05-28 (Thu, 28 May 2015)



------------------
This commit was generated by Migit
This commit is contained in:
2015-05-28 10:27:59 +02:00
parent 79d0efb75c
commit 269be6bd82
4 changed files with 172 additions and 162 deletions

View File

@@ -45,11 +45,14 @@ class CShellWindow : public sigc::trackable
void showResult();
public:
//shell window modes for handled shell output. //NOTE: mode 0 use only system calls, with unhandled return values and no handled shell output
enum shellwindow_modes
{
VERBOSE = 1,
ACKNOWLEDGE = 2,
ACKNOWLEDGE_EVENT = 4
/*SYSTEM = 0, */
QUIET = 1, // no window
VERBOSE = 2, // show window
ACKNOWLEDGE = 4, // show result button inside window after execution, no message box NOTE: only in VERBOSE mode
ACKNOWLEDGE_EVENT = 8 // same like ACKNOWLEDGE but shows a default error message box or a slot handled action instead default error message box
};
CShellWindow(const std::string &Command, const int Mode = 0, int* Res = NULL, bool auto_exec = true);
~CShellWindow();