summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 68ccd2ff..27ab9713 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -46,6 +46,7 @@
#include <QMessageBox>
#include <QNetworkInterface>
#include <QProcess>
+#include <QSystemTrayIcon>
#include <QTimer>
#include <QUrl>
#include <QWidget>
@@ -541,6 +542,14 @@ std::wstring OrganizerCore::getGlobalCoreDumpPath()
return {};
}
+void OrganizerCore::showNotification(const QString& message, const QString& title,
+ QSystemTrayIcon::MessageIcon icon)
+{
+ if (m_UserInterface) {
+ m_UserInterface->showNotification(message, title, icon);
+ }
+}
+
void OrganizerCore::setCurrentProfile(const QString& profileName)
{
if ((m_CurrentProfile != nullptr) && (profileName == m_CurrentProfile->name())) {