Example #1
0
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    model(std::make_shared<wpm_model>(this)),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    displayLogin();
    classes = new ClassSelect(model, this);
    classes->show();
    connect(model.get(), &wpm_model::login_success, this, &MainWindow::login_succeeded);
    //TODO: connect others
}
Example #2
0
void TKeyhoteeApplication::startup()
{
  ilog( "." );
  _exit_status = TExitStatus::LOAD_CONFIG_FAILURE;

  if(_backend_app->has_profile() )
    displayLogin();
  else
    displayProfileWizard();

  /*
  try 
  {
    auto app_config = loadConfig();
    _exit_status = TExitStatus::BACKEND_CONFIGURATION_FAILURE;
    _backend_app->configure(app_config);
    _exit_status = TExitStatus::SUCCESS;
  }
  catch (fc::exception& e)
  {
    switch(_exit_status)
    {
      case TExitStatus::LOAD_CONFIG_FAILURE:
        elog("Failed to load Keyhotee configuration: ${e}", ("e",e.to_detail_string()));
        break;
      case TExitStatus::BACKEND_CONFIGURATION_FAILURE:
        elog("Failed to configure Keyhotee: ${e}", ("e",e.to_detail_string()));
        break;
      default:
        elog("Failed to startup Keyhotee: ${e}", ("e",e.to_detail_string()));
        break;
    }

    return;
  }
  */

}