2
* Copyright 2013 Canonical Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
* Nicholas Dedekind <nick.dedekind@canonical.com
20
#ifndef UNITYMENUACTIONEVENTS_H
21
#define UNITYMENUACTIONEVENTS_H
26
/* Event for a unitymenuaction add */
27
class UnityMenuActionAddEvent : public QEvent
30
static const QEvent::Type eventType;
31
UnityMenuActionAddEvent(bool enabled, const QVariant& state);
37
/* Event for a unitymenuaction remove */
38
class UnityMenuActionRemoveEvent : public QEvent
41
static const QEvent::Type eventType;
42
UnityMenuActionRemoveEvent();
45
/* Event for change in enabled value of a unitymenuaction */
46
class UnityMenuActionEnabledChangedEvent : public QEvent
49
static const QEvent::Type eventType;
50
UnityMenuActionEnabledChangedEvent(bool enabled);
55
/* Event for change in state value of a unitymenuaction */
56
class UnityMenuActionStateChangeEvent : public QEvent
59
static const QEvent::Type eventType;
60
UnityMenuActionStateChangeEvent(const QVariant& state);
65
#endif //UNITYMENUACTIONEVENTS_H