2 Bacula® - The Network Backup Solution
4 Copyright (C) 2007-2010 Free Software Foundation Europe e.V.
6 The main author of Bacula is Kern Sibbald, with contributions from many
7 others, a complete list can be found in the file AUTHORS.
9 You may use this file and others of this release according to the
10 license defined in the LICENSE file, which includes the Affero General
11 Public License, v3.0 ("AGPLv3") and some additional permissions and
12 terms pursuant to its AGPLv3 Section 7.
14 Bacula® is a registered trademark of Kern Sibbald.
20 * Kern Sibbald, March MMVII
25 #include "textinput.h"
30 textInputDialog::textInputDialog(Console *console, int conn)
36 m_console->notify(m_conn, false);
38 setAttribute(Qt::WA_DeleteOnClose);
39 m_console->read(m_conn); /* get title */
40 labelWidget->setText(m_console->msg(m_conn));
44 void textInputDialog::accept()
47 m_console->write_dir(m_conn, lineEdit->text().toUtf8().data());
48 /* Do not displayToPrompt because there may be another Text Input required */
50 mainWin->resetFocus();
51 m_console->notify(m_conn, true);
55 void textInputDialog::reject()
58 mainWin->set_status(tr(" Canceled"));
59 m_console->write_dir(m_conn, ".");
61 mainWin->resetFocus();
62 m_console->beginNewCommand(m_conn);
63 m_console->notify(m_conn, true);