/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2008 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2009 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it and/or
- modify it under the terms of version two of the GNU General Public
+ modify it under the terms of version three of the GNU Affero General Public
License as published by the Free Software Foundation and included
in the file LICENSE.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
- You should have received a copy of the GNU General Public License
+ You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
friend class DirComm;
public:
- Console(QStackedWidget *parent);
+ Console(QTabWidget *parent);
~Console();
int read(int conn);
char *msg(int conn);
int notifyOff(); // enables/disables socket notification - returns the previous state
bool notify(int conn, bool enable); // enables/disables socket notification - returns the previous state
bool is_notify_enabled(int conn) const;
- bool availableDirComm(int &conn);
+ bool getDirComm(int &conn);
+ bool findDirComm(int &conn);
void displayToPrompt(int conn);
+ QString returnFromPrompt(int conn);
bool dir_cmd(int conn, const char *cmd, QStringList &results);
bool dir_cmd(const char *cmd, QStringList &results);
bool dir_cmd(QString &cmd, QStringList &results);
bool sql_cmd(const char *cmd, QStringList &results);
bool sql_cmd(QString &cmd, QStringList &results);
+ bool sql_cmd(int &conn, QString &cmd, QStringList &results);
+ bool sql_cmd(int &conn, const char *cmd, QStringList &results, bool donotify);
int write_dir(const char *buf);
+ int write_dir(const char *buf, bool dowait);
void write_dir(int conn, const char *buf);
+ void write_dir(int conn, const char *buf, bool dowait);
void getDirResName(QString &);
void setDirRes(DIRRES *dir);
void writeSettings();
void display_textf(const char *fmt, ...);
void display_html(const QString buf);
bool get_job_defaults(struct job_defaults &);
+ bool get_job_defaults(int &conn, struct job_defaults &);
const QFont get_font();
void beginNewCommand(int conn);
- void getVolumeList(QStringList &);
- void getStatusList(QStringList &);
+ void populateLists(bool forcenew);
private:
+ bool get_job_defaults(int &conn, struct job_defaults &, bool donotify);
void update_cursor(void);
void stopTimer();
bool is_connectedGui();
bool newDirComm(int &conn);
+ void populateLists(int conn);
public:
QStringList job_list;
+ QStringList restore_list;
QStringList client_list;
QStringList fileset_list;
QStringList messages_list;
QStringList storage_list;
QStringList type_list;
QStringList level_list;
+ QStringList volstatus_list;
+ QStringList mediatype_list;
+ QStringList location_list;
public slots:
void connect_dir();
public:
DIRRES *m_dir; /* so various pages can reference it */
+ bool m_warningPrevent;
private:
QTextEdit *m_textEdit;