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();
32 void read_dir(int fd);
33 void status_dir(void);
37 QTextEdit *m_textEdit;
41 QSocketNotifier *m_notifier;
42 QTextCursor *m_cursor;
43 QTreeWidgetItem *m_consoleItem;
46 #endif /* _CONSOLE_H_ */