Loading...
Searching...
No Matches
NotificationInterface.h
/*
* Copyright 2013 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authors:
* Michał Sawicz <michal.sawicz@canonical.com>
*/
#ifndef UNITY_SHELL_NOTIFICATIONS_NOTIFICATIONINTERFACE_H
#define UNITY_SHELL_NOTIFICATIONS_NOTIFICATIONINTERFACE_H
#include <unity/SymbolExport.h>
#include <QtCore/QObject>
namespace unity
{
namespace shell
{
namespace notifications
{
class UNITY_API NotificationInterface : public QObject
{
Q_OBJECT
protected:
explicit NotificationInterface(QObject* parent = 0) : QObject(parent) { }
public:
virtual ~NotificationInterface() { }
Q_SIGNALS:
void hovered(bool hovered);
void displayed(bool displayed);
void dismissed();
void actionInvoked(const QString& id);
};
} // namespace notifications
} // namespace shell
} // namespace unity
#endif // UNITY_SHELL_NOTIFICATIONS_NOTIFICATIONINTERFACE_H
unity::shell::notifications::NotificationInterface
A Notification object.
Definition NotificationInterface.h:45
unity::shell::notifications::NotificationInterface::hovered
void hovered(bool hovered)
unity::shell::notifications::NotificationInterface::actionInvoked
void actionInvoked(const QString &id)
unity::shell::notifications::NotificationInterface::displayed
void displayed(bool displayed)
unity::shell::notifications::NotificationInterface::dismissed
void dismissed()
unity
Top-level namespace for all things Unity-related.
Definition Version.h:38