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