Mantid
Loading...
Searching...
No Matches
IMessageHandler.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2021 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include <string>
10
12
14public:
15 virtual ~IMessageHandler() = default;
16 virtual void giveUserCritical(const std::string &prompt, const std::string &title) = 0;
17 virtual void giveUserWarning(const std::string &prompt, const std::string &title) = 0;
18 virtual void giveUserInfo(const std::string &prompt, const std::string &title) = 0;
19 virtual bool askUserOkCancel(const std::string &prompt, const std::string &title) = 0;
20};
21} // namespace MantidQt::MantidWidgets
virtual void giveUserInfo(const std::string &prompt, const std::string &title)=0
virtual void giveUserWarning(const std::string &prompt, const std::string &title)=0
virtual void giveUserCritical(const std::string &prompt, const std::string &title)=0
virtual bool askUserOkCancel(const std::string &prompt, const std::string &title)=0