13
0

add StartupFSM::end() (empty for now) and remove unused states

This commit is contained in:
Paul Davis 2019-10-10 15:22:44 -06:00
parent 448e4de8d9
commit 85d81cb6b8
2 changed files with 10 additions and 9 deletions

View File

@ -103,6 +103,13 @@ StartupFSM::start ()
} }
} }
void
StartupFSM::end()
{
}
void void
StartupFSM::dialog_response_handler (int response, StartupFSM::DialogID dialog_id) StartupFSM::dialog_response_handler (int response, StartupFSM::DialogID dialog_id)
{ {
@ -241,12 +248,7 @@ StartupFSM::dialog_response_handler (int response, StartupFSM::DialogID dialog_i
} }
case NeedWizard: case NeedWizard:
break; /* ERROR */
case NeedSessionSR:
break;
case NeedEngine:
break; break;
} }
} }

View File

@ -48,6 +48,7 @@ class StartupFSM : public sigc::trackable
~StartupFSM (); ~StartupFSM ();
void start (); void start ();
void end ();
std::string session_path; std::string session_path;
std::string session_name; std::string session_name;
@ -63,14 +64,12 @@ class StartupFSM : public sigc::trackable
sigc::signal1<void,Result>& signal_response() { return _signal_response; } sigc::signal1<void,Result>& signal_response() { return _signal_response; }
bool brand_new_user() const { return new_user; } bool brand_new_user() const { return new_user; }
private: private:
enum MainState { enum MainState {
NeedWizard, NeedWizard,
NeedSessionPath, NeedSessionPath,
NeedSessionSR,
NeedEngineParams, NeedEngineParams,
NeedEngine
}; };
bool new_user; bool new_user;