20#ifndef ORES_QT_PARTY_PROVISIONING_WIZARD_HPP
21#define ORES_QT_PARTY_PROVISIONING_WIZARD_HPP
27#include <QProgressBar>
34#include "ores.logging/make_logger.hpp"
35#include "ores.qt/ClientManager.hpp"
57 inline static std::string_view logger_name =
58 "ores.qt.party_provisioning_wizard";
60 [[nodiscard]]
static auto& lg() {
62 static auto instance = make_logger(logger_name);
69 Page_CounterpartySetup,
70 Page_OrganisationSetup,
81 std::string description;
82 std::string schedule_expression;
83 std::string report_type;
84 std::string concurrency_policy;
89 QWidget* parent =
nullptr);
93 ClientManager* clientManager()
const {
return clientManager_; }
95 QString selectedBundleCode()
const {
return selectedBundleCode_; }
96 void setSelectedBundleCode(
const QString& code) { selectedBundleCode_ = code; }
98 QString leiDatasetSize()
const {
return leiDatasetSize_; }
99 void setLeiDatasetSize(
const QString& size) { leiDatasetSize_ = size; }
101 bool organisationPublished()
const {
return organisationPublished_; }
102 void setOrganisationPublished(
bool v) { organisationPublished_ = v; }
104 std::vector<ReportSpec> selectedReports()
const {
return selectedReports_; }
105 void setSelectedReports(std::vector<ReportSpec> r) { selectedReports_ = std::move(r); }
116 void provisioningCompleted();
121 ClientManager* clientManager_;
122 QString selectedBundleCode_ =
"base";
123 QString leiDatasetSize_ =
"small";
124 bool organisationPublished_ =
false;
125 std::vector<ReportSpec> selectedReports_;
129class PartyWelcomePage;
130class PartyCounterpartySetupPage;
131class PartyOrganisationSetupPage;
132class PartyReportSetupPage;
133class PartyReportInstallPage;
134class PartyApplyAndSummaryPage;
161 bool validatePage()
override;
166 QComboBox* datasetSizeCombo_;
176 inline static std::string_view logger_name =
177 "ores.qt.party_organisation_setup_page";
179 [[nodiscard]]
static auto& lg() {
181 static auto instance = make_logger(logger_name);
187 void initializePage()
override;
188 bool isComplete()
const override;
192 void appendLog(
const QString& message);
195 QLabel* statusLabel_;
196 QProgressBar* progressBar_;
197 QTextEdit* logOutput_;
198 bool publishComplete_ =
false;
199 bool publishSuccess_ =
false;
210 bool validatePage()
override;
211 int nextId()
const override;
217 QListWidget* reportList_;
227 inline static std::string_view logger_name =
228 "ores.qt.party_report_install_page";
230 [[nodiscard]]
static auto& lg() {
232 static auto instance = make_logger(logger_name);
238 void initializePage()
override;
239 bool isComplete()
const override;
243 void appendLog(
const QString& message);
246 QLabel* statusLabel_;
247 QProgressBar* progressBar_;
248 QTextEdit* logOutput_;
249 bool installComplete_ =
false;
250 bool installSuccess_ =
false;
260 inline static std::string_view logger_name =
261 "ores.qt.party_apply_and_summary_page";
263 [[nodiscard]]
static auto& lg() {
265 static auto instance = make_logger(logger_name);
271 void initializePage()
override;
277 QLabel* summaryLabel_;
Implements logging infrastructure for ORE Studio.
Definition boost_severity.hpp:28
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:112
Wizard for setting up a party after it has been created by tenant provisioning.
Definition PartyProvisioningWizard.hpp:53
bool markPartyActive()
Sets the current party's status to 'Active' via save_party_request.
Definition PartyProvisioningWizard.cpp:84
Specification for an initial report definition to create during provisioning.
Definition PartyProvisioningWizard.hpp:79
Welcome page for the party provisioning wizard.
Definition PartyProvisioningWizard.hpp:139
Page for selecting the GLEIF counterparty dataset size.
Definition PartyProvisioningWizard.hpp:156
Page for async publication of counterparties and organisation structure.
Definition PartyProvisioningWizard.hpp:172
Page for selecting which initial report definitions to create.
Definition PartyProvisioningWizard.hpp:205
Page that asynchronously creates the selected report definitions.
Definition PartyProvisioningWizard.hpp:223
Final summary page that clears the party setup flag.
Definition PartyProvisioningWizard.hpp:256