From 87ea0b2a2e605f77c0e3068da873abd5ef50090e Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 29 Mar 2007 09:01:32 +0000 Subject: [PATCH] Implement dir_cmd with QString argument git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4449 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/console/console.cpp | 5 +++++ bacula/src/qt-console/console/console.h | 1 + 2 files changed, 6 insertions(+) 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(); -- 2.39.5