From 9f7a241475953115c082d4545406b4509ea1261b Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 20 Oct 2009 18:56:39 +0000 Subject: [PATCH] add StringList to handle locations, volstatus and mediatypes --- bacula/src/qt-console/console/console.cpp | 5 +++++ bacula/src/qt-console/console/console.h | 3 +++ 2 files changed, 8 insertions(+) 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(); -- 2.39.5