ADTF Qt5
Loading...
Searching...
No Matches
qt_messagebox.h File Reference
#include <adtf_utils.h>
#include <QWidget>
#include <QString>
#include <utility>
#include <QMessageBox>
Include dependency graph for qt_messagebox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  adtf
 Namespace for all functionality provided by ADTF and its SDKs.
 
namespace  adtf::ui
 Namespace for the ADTF UI SDK.
 
namespace  adtf::ui::v0
 Namespace for all ui classes and interfaces provided since v1.0.0.
 

Functions

std::pair< QString, QString > adtf::ui::mega::split_result (tResult oResult)
 
QMessageBox::StandardButton adtf::ui::mega::result_message_box (QWidget *pParent, const QString &strTitle, tResult oResult, const QString &strInformativeText={}, QMessageBox::StandardButtons eButtons=QMessageBox::Ok, QMessageBox::StandardButton eDefaultButton=QMessageBox::NoButton)
 
std::pair< QString, QString > adtf::ui::v0::split_result (tResult oResult)
 
QMessageBox::StandardButton adtf::ui::v0::result_message_box (QWidget *pParent, const QString &strTitle, tResult oResult, const QString &strInformativeText={}, QMessageBox::StandardButtons eButtons=QMessageBox::Ok, QMessageBox::StandardButton eDefaultButton=QMessageBox::NoButton)
 
std::pair< QString, QString > adtf::ui::split_result (tResult oResult)
 
QMessageBox::StandardButton adtf::ui::result_message_box (QWidget *pParent, const QString &strTitle, tResult oResult, const QString &strInformativeText={}, QMessageBox::StandardButtons eButtons=QMessageBox::Ok, QMessageBox::StandardButton eDefaultButton=QMessageBox::NoButton)
 

Detailed Description

Copyright © Audi Electronics Venture GmbH. All rights reserved

Function Documentation

◆ result_message_box()

QMessageBox::StandardButton adtf::ui::mega::result_message_box ( QWidget * pParent,
const QString & strTitle,
tResult oResult,
const QString & strInformativeText = {},
QMessageBox::StandardButtons eButtons = QMessageBox::Ok,
QMessageBox::StandardButton eDefaultButton = QMessageBox::NoButton )

Display a message box showing the given tResult.

Parameters
[in]pParentThe parent of the messagebox.
[in]strTitleThe title of the messagebox.
[in]oResultThe result to show.
[in]strInformativeTextAn optional informative text, i.e. a question on how to continue.
[in]eButtonsThe buttons that should be shown.
[in]eDefaultButtonThe default button.
Returns
The button that was clicked.

◆ split_result()

std::pair< QString, QString > adtf::ui::mega::split_result ( tResult oResult)

Splits the result into the main error message and a detailed error description.

Parameters
[in]oResultThe Result that should be split up.
Returns
A pair containing the main error message and the details.