5 Bacula® - The Network Backup Solution
7 Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
9 The main author of Bacula is Kern Sibbald, with contributions from
10 many others, a complete list can be found in the file AUTHORS.
11 This program is Free Software; you can redistribute it and/or
12 modify it under the terms of version two of the GNU General Public
13 License as published by the Free Software Foundation plus additions
14 that are listed in the file LICENSE.
16 This program is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26 Bacula® is a registered trademark of John Walker.
27 The licensor of Bacula is the Free Software Foundation Europe
28 (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
29 Switzerland, email:ftf@fsfeurope.org.
34 * Kern Sibbald, January 2007
38 #include "ui_console.h"
41 #ifndef MAX_NAME_LENGTH
42 #define MAX_NAME_LENGTH 128
46 * Structure for obtaining the defaults for a job
51 QString messages_name;
67 class Console : public QWidget, public Ui::ConsoleForm
72 Console(QStackedWidget *parent);
73 void display_text(const char *buf);
74 void display_text(const QString buf);
75 void display_textf(const char *fmt, ...);
76 void update_cursor(void);
77 void write_dir(const char *buf);
78 bool authenticate_director(JCR *jcr, DIRRES *director, CONRES *cons);
79 bool is_connected() { return m_sock != NULL; };
80 const QFont get_font();
84 void setEnabled(bool enable) { m_notifier->setEnabled(enable); };
85 QStringList get_list(char *cmd);
86 bool get_job_defaults(struct job_defaults &);
88 void beginNewCommand();
89 void displayToPrompt();
92 QStringList client_list;
93 QStringList fileset_list;
94 QStringList messages_list;
95 QStringList pool_list;
96 QStringList storage_list;
97 QStringList type_list;
98 QStringList level_list;
102 void read_dir(int fd);
104 int write(const char *msg);
105 int write(QString msg);
106 void status_dir(void);
110 QTextEdit *m_textEdit;
114 QSocketNotifier *m_notifier;
115 QTextCursor *m_cursor;
116 QTreeWidgetItem *m_consoleItem;
119 #endif /* _CONSOLE_H_ */