6 #include "ui_console.h"
13 class Console : public QWidget, public Ui::ConsoleForm
18 Console(QStackedWidget *parent);
19 void set_text(const char *buf);
20 void set_text(const QString buf);
21 void set_textf(const char *fmt, ...);
22 void update_cursor(void);
23 void write_dir(const char *buf);
24 bool authenticate_director(JCR *jcr, DIRRES *director, CONRES *cons);
25 bool is_connected() { return m_sock != NULL; };
26 const QFont get_font();
30 void setEnabled(bool enable) { m_notifier->setEnabled(enable); };
31 QStringList get_list(char *cmd);
34 QStringList client_list;
35 QStringList fileset_list;
36 QStringList messages_list;
37 QStringList pool_list;
38 QStringList storage_list;
39 QStringList type_list;
40 QStringList level_list;
44 void read_dir(int fd);
46 int write(const char *msg);
47 void status_dir(void);
51 QTextEdit *m_textEdit;
55 QSocketNotifier *m_notifier;
56 QTextCursor *m_cursor;
57 QTreeWidgetItem *m_consoleItem;
60 #endif /* _CONSOLE_H_ */