DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
OracleWidget.cpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4// Renamed since fork: no.
5
7#include "dbe/messenger.hpp"
8#include "ui_OracleWidget.h"
9#include <QMessageBox>
10
12
14 : QWidget(parent)
15 , ui(new Ui::OracleWidget)
16{
17 ui->setupUi(this);
19}
20
21void
23{
24 connect(ui->RunButton, SIGNAL(clicked()), this, SLOT(ProcessOracleCommand()), Qt::UniqueConnection);
25}
26
31void
33{
34 QString connect_str = ui->connection_string_input->text();
35
36 if (connect_str.isEmpty()) {
37 ERROR("Database information invalid", "Oracle connection string has not been set");
38 return;
39 }
40
41 QString schema_str = ui->schema_string_input->text();
42
43 if (schema_str.isEmpty()) {
44 ERROR("Database information invalid", "Oracle working schema has not been set");
45 return;
46 }
47
48 QString version_str = ui->OracleLine->text();
49
50 if (version_str.isEmpty()) {
51 ERROR("Database information invalid", "Oracle schema version has not been set");
52 return;
53 }
54
55 QString oracleCommand(ui->PluginLabel->text() + connect_str + ":" + schema_str + ":" + version_str);
56
57 emit OpenOracleConfig(oracleCommand);
58}
std::unique_ptr< dbe::Ui::OracleWidget > ui
OracleWidget(QWidget *parent=0)
void OpenOracleConfig(const QString &ConfigStream)
#define ERROR(...)
Definition messenger.hpp:90