*******************************************************************************/
-//! \file NotifyManager.h
-//! \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+/*! \file NotifyManager.h
+ \brief Manages notifications in applications
+
+ \author Mateusz Półrola <mateusz.polrola@comarch.pl>
+*/
#ifndef NOTIFYMANAGER_H
#define NOTIFYMANAGER_H
#include <QHash>
#include <QString>
#include <QDialog>
-#include "../../common/Notify.h"
+#include "../../include/Notify.h"
+#include "MenuWidget.h"
-//! Manages notifications in applications
/*!
- Shows notifications to user, assures that couple of the same notification
- will not be displayed at the same time. It automatically delete
- notifications after user accept or reject it.
+ Shows notifications to user, assures that a couple of the same notifications
+ will not be displayed at the same time. It automatically deletes
+ notifications after user accepts or rejects them.
*/
class NotifyManager : public QObject
//! Refresh all notifications when stacked widgets changes
void screenChanged();
+ void setMenu(QWidget*);
+
private slots:
//! Informs that notification was closed and can be deleted
void notificationClosed();
private:
QHash<QString, QDialog*> activeNotifies;
+ QWidget* menu;
};
#endif // NOTIFYMANAGER_H