From: Kern Sibbald Date: Thu, 29 Mar 2007 09:01:32 +0000 (+0000) Subject: Implement dir_cmd with QString argument X-Git-Tag: Release-7.0.0~6676 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=87ea0b2a2e605f77c0e3068da873abd5ef50090e;p=bacula%2Fbacula Implement dir_cmd with QString argument git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4449 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/qt-console/console/console.cpp b/bacula/src/qt-console/console/console.cpp index 78fcd643ee..31480c6528 100644 --- a/bacula/src/qt-console/console/console.cpp +++ b/bacula/src/qt-console/console/console.cpp @@ -154,6 +154,11 @@ void Console::connect() return; } +bool Console::dir_cmd(QString &cmd, QStringList &results) +{ + return dir_cmd(cmd.toUtf8().data(), results); +} + bool Console::dir_cmd(const char *cmd, QStringList &results) { int stat; diff --git a/bacula/src/qt-console/console/console.h b/bacula/src/qt-console/console/console.h index 721ed38538..8d215ef21c 100644 --- a/bacula/src/qt-console/console/console.h +++ b/bacula/src/qt-console/console/console.h @@ -78,6 +78,7 @@ public: void update_cursor(void); void write_dir(const char *buf); bool dir_cmd(const char *cmd, QStringList &results); + bool dir_cmd(QString &cmd, QStringList &results); bool authenticate_director(JCR *jcr, DIRRES *director, CONRES *cons); bool is_connected() { return m_sock != NULL; }; const QFont get_font();