Debugger: Fix team restart request.

UserInterface:
- Add Clone() function to set of required virtuals. This asks the subclass
  to create a new instance of its respective type.

{CommandLine,Graphical,Report}UserInterface:
- Implement the above function.

TeamDebugger:
- Add accessor for the currently active UI.

TargetHostInterface:
- Set correct request type when setting up the options for a team restart.
- Ask the TeamDebugger for its user interface and clone it in order to fill
  in that aspect of the debug options. This fixes a regression introduced in
  commit 880a64, which inadvertently resulted in team restarts no longer
  working.
This commit is contained in:
Rene Gollent
2016-07-03 13:53:51 -04:00
parent 4221d035d8
commit 05fc1277c4
9 changed files with 54 additions and 6 deletions
@@ -66,6 +66,8 @@ public:
{ return fCommandLineArgv; }
SettingsManager* GetSettingsManager() const
{ return fSettingsManager; }
UserInterface* GetUserInterface() const
{ return fUserInterface; }
virtual void MessageReceived(BMessage* message);
@@ -56,6 +56,13 @@ public:
// shut down the UI *now* -- no more user
// feedback
virtual UserInterface* Clone() const = 0;
// returns a new instance of the
// appropriate user interface subclass.
// primarily needed in order to
// reconstruct the necessary information
// for initiating a team restart.
virtual bool IsInteractive() const = 0;
virtual status_t LoadSettings(const TeamUiSettings* settings)