added hints to application

This commit is contained in:
Patrick von Reth 2014-01-12 20:05:34 +01:00
parent ddc5abb1e6
commit ad0b79d544
2 changed files with 8 additions and 0 deletions

View File

@ -68,6 +68,11 @@ bool Application::isValid() const
return m_name.isNull(); return m_name.isNull();
} }
Hint &Application::hints()
{
return m_hint;
}
Alert::Alert (const QString &name, const QString &title, const Icon &icon, bool active): Alert::Alert (const QString &name, const QString &title, const Icon &icon, bool active):
m_name(name), m_name(name),
m_title(title), m_title(title),

View File

@ -20,6 +20,7 @@
#ifndef APPLICATION_H #ifndef APPLICATION_H
#define APPLICATION_H #define APPLICATION_H
#include "snore_exports.h" #include "snore_exports.h"
#include "hint.h"
#include "notification/icon.h" #include "notification/icon.h"
#include <QHash> #include <QHash>
@ -57,12 +58,14 @@ public:
const Icon &icon() const; const Icon &icon() const;
const QHash<QString,Alert> &alerts() const; const QHash<QString,Alert> &alerts() const;
bool isValid() const; bool isValid() const;
Hint &hints();
private: private:
QString m_name; QString m_name;
Icon m_icon; Icon m_icon;
QHash<QString,Alert> m_alerts; QHash<QString,Alert> m_alerts;
Hint m_hint;
}; };