From: Eric Bollengier Date: Tue, 20 Oct 2009 18:56:39 +0000 (+0000) Subject: add StringList to handle locations, volstatus and mediatypes X-Git-Tag: Release-7.0.0~2599^2~11^2^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9f7a241475953115c082d4545406b4509ea1261b;p=bacula%2Fbacula add StringList to handle locations, volstatus and mediatypes --- diff --git a/bacula/src/qt-console/console/console.cpp b/bacula/src/qt-console/console/console.cpp index f107594864..7f56dd9aef 100644 --- a/bacula/src/qt-console/console/console.cpp +++ b/bacula/src/qt-console/console/console.cpp @@ -166,6 +166,8 @@ void Console::populateLists(int conn) storage_list.clear(); type_list.clear(); level_list.clear(); + volstatus_list.clear(); + mediatype_list.clear(); dir_cmd(conn, ".jobs", job_list); dir_cmd(conn, ".clients", client_list); dir_cmd(conn, ".filesets", fileset_list); @@ -174,6 +176,9 @@ void Console::populateLists(int conn) dir_cmd(conn, ".storage", storage_list); dir_cmd(conn, ".types", type_list); dir_cmd(conn, ".levels", level_list); + dir_cmd(conn, ".volstatus", volstatus_list); + dir_cmd(conn, ".mediatypes", mediatype_list); + dir_cmd(conn, ".locations", location_list); if (mainWin->m_connDebug) { QString dbgmsg = QString("jobs=%1 clients=%2 filesets=%3 msgs=%4 pools=%5 storage=%6 types=%7 levels=%8 conn=%9 %10\n") diff --git a/bacula/src/qt-console/console/console.h b/bacula/src/qt-console/console/console.h index d408bba0a8..3d4676b1db 100644 --- a/bacula/src/qt-console/console/console.h +++ b/bacula/src/qt-console/console/console.h @@ -134,6 +134,9 @@ public: QStringList storage_list; QStringList type_list; QStringList level_list; + QStringList volstatus_list; + QStringList mediatype_list; + QStringList location_list; public slots: void connect_dir();