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
6#include <QMessageBox>
8#include "ui_OracleWidget.h"
9#include "dbe/messenger.hpp"
10
12
14 : QWidget ( parent ),
15 ui ( new Ui::OracleWidget )
16{
17 ui->setupUi ( this );
19}
20
22{
23 connect ( ui->RunButton, SIGNAL ( clicked() ), this, SLOT ( ProcessOracleCommand() ),
24 Qt::UniqueConnection );
25}
26
32{
33 QString connect_str = ui->connection_string_input->text();
34
35 if ( connect_str.isEmpty() )
36 {
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 {
45 ERROR ( "Database information invalid", "Oracle working schema has not been set" );
46 return;
47 }
48
49 QString version_str = ui->OracleLine->text();
50
51 if ( version_str.isEmpty() )
52 {
53 ERROR ( "Database information invalid", "Oracle schema version has not been set" );
54 return;
55 }
56
57 QString oracleCommand (
58 ui->PluginLabel->text() + connect_str + ":" + schema_str + ":" + version_str );
59
60 emit OpenOracleConfig ( oracleCommand );
61}
std::unique_ptr< dbe::Ui::OracleWidget > ui
OracleWidget(QWidget *parent=0)
void OpenOracleConfig(const QString &ConfigStream)
#define ERROR(...)
Definition messenger.hpp:93