DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
src
widgets
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>
7
#include "
dbe/OracleWidget.hpp
"
8
#include "ui_OracleWidget.h"
9
#include "
dbe/messenger.hpp
"
10
11
dbe::OracleWidget::~OracleWidget
() =
default
;
12
13
dbe::OracleWidget::OracleWidget
( QWidget * parent )
14
: QWidget ( parent ),
15
ui
( new
Ui
::
OracleWidget
)
16
{
17
ui
->setupUi (
this
);
18
SetController
();
19
}
20
21
void
dbe::OracleWidget::SetController
()
22
{
23
connect (
ui
->RunButton, SIGNAL ( clicked() ),
this
, SLOT (
ProcessOracleCommand
() ),
24
Qt::UniqueConnection );
25
}
26
31
void
dbe::OracleWidget::ProcessOracleCommand
()
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
}
OracleWidget.hpp
dbe::OracleWidget::~OracleWidget
~OracleWidget()
dbe::OracleWidget::ui
std::unique_ptr< dbe::Ui::OracleWidget > ui
Definition
OracleWidget.hpp:29
dbe::OracleWidget::SetController
void SetController()
Definition
OracleWidget.cpp:21
dbe::OracleWidget::OracleWidget
OracleWidget(QWidget *parent=0)
Definition
OracleWidget.cpp:13
dbe::OracleWidget::ProcessOracleCommand
void ProcessOracleCommand()
Definition
OracleWidget.cpp:31
dbe::OracleWidget::OpenOracleConfig
void OpenOracleConfig(const QString &ConfigStream)
messenger.hpp
ERROR
#define ERROR(...)
Definition
messenger.hpp:93
Ui
Definition
SchemaSettings.hpp:10
Generated on
for DUNE-DAQ by
1.17.0