many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it and/or
modify it under the terms of version two of the GNU General Public
- License as published by the Free Software Foundation plus additions
- that are listed in the file LICENSE.
+ License as published by the Free Software Foundation and included
+ in the file LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
*
* Kern Sibbald, March MMVII
*
- * $Id: $
+ * $Id$
*/
#include "bat.h"
{
m_index = index;
}
+
+/*
+ * Handle yesno PopUp when Bacula asks a yes/no question.
+ */
+/*
+ * Read the items for the selection
+ */
+yesnoPopUp::yesnoPopUp(Console *console)
+{
+ QMessageBox msgBox;
+
+ setAttribute(Qt::WA_DeleteOnClose);
+ console->read(); /* get yesno question */
+ msgBox.setWindowTitle("Bat Question");
+ msgBox.setText(console->msg());
+ msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
+ console->displayToPrompt();
+ switch (msgBox.exec()) {
+ case QMessageBox::Yes:
+ console->write_dir("yes");
+ break;
+ case QMessageBox::No:
+ console->write_dir("no");
+ break;
+ }
+ console->displayToPrompt();
+ mainWin->resetFocus();
+}