added hints to application
This commit is contained in:
parent
ddc5abb1e6
commit
ad0b79d544
|
@ -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),
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#ifndef APPLICATION_H
|
||||
#define APPLICATION_H
|
||||
#include "snore_exports.h"
|
||||
#include "hint.h"
|
||||
#include "notification/icon.h"
|
||||
|
||||
#include <QHash>
|
||||
|
@ -57,12 +58,14 @@ public:
|
|||
const Icon &icon() const;
|
||||
const QHash<QString,Alert> &alerts() const;
|
||||
bool isValid() const;
|
||||
Hint &hints();
|
||||
|
||||
|
||||
private:
|
||||
QString m_name;
|
||||
Icon m_icon;
|
||||
QHash<QString,Alert> m_alerts;
|
||||
Hint m_hint;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue