+
+void Engine::passwordEntered( PasswordDialog::PasswordStatus aPasswordStatus )
+{
+ qDebug() << "Engine::passwordEntered( PasswordDialog::PasswordStatus )";
+ iWindowManager->closePasswordDialog();
+
+ switch ( aPasswordStatus )
+ {
+ case PasswordDialog::Correct :
+ {
+ iWindowManager->showProgressBar( "Changing current operation mode." );
+ break;
+ }
+ case PasswordDialog::Incorrect :
+ {
+ iWindowManager->error( tr( "Incorrect password." ) );
+ iDevice->handleKeyPresses( true );
+ break;
+ }
+ default : //case PasswordDialog::Canceled
+ {
+ iDevice->handleKeyPresses( true );
+ }
+ }
+}
+
+void Engine::progressBarCancelled()
+{
+ //TODO: cancel the on-going event
+ iWindowManager->closeProgressBar();
+ iDevice->handleKeyPresses( true );
+}