From ad0b79d54420c3dee2ada34e521f2aafcbb67d7a Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Sun, 12 Jan 2014 20:05:34 +0100 Subject: [PATCH] added hints to application --- src/core/application.cpp | 5 +++++ src/core/application.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/core/application.cpp b/src/core/application.cpp index ef57705..ea29cb9 100644 --- a/src/core/application.cpp +++ b/src/core/application.cpp @@ -68,6 +68,11 @@ bool Application::isValid() const return m_name.isNull(); } +Hint &Application::hints() +{ + return m_hint; +} + Alert::Alert (const QString &name, const QString &title, const Icon &icon, bool active): m_name(name), m_title(title), diff --git a/src/core/application.h b/src/core/application.h index e7cf6c7..8b71486 100644 --- a/src/core/application.h +++ b/src/core/application.h @@ -20,6 +20,7 @@ #ifndef APPLICATION_H #define APPLICATION_H #include "snore_exports.h" +#include "hint.h" #include "notification/icon.h" #include @@ -57,12 +58,14 @@ public: const Icon &icon() const; const QHash &alerts() const; bool isValid() const; + Hint &hints(); private: QString m_name; Icon m_icon; QHash m_alerts; + Hint m_hint; };