2 * Copyright 2014 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/>.
18#ifndef SHAREDUNITYMENUMODEL_H
19#define SHAREDUNITYMENUMODEL_H
21#include "unityindicatorsglobal.h"
24#include <QSharedPointer>
29class UNITYINDICATORS_EXPORT SharedUnityMenuModel : public QObject
32 Q_PROPERTY(QByteArray busName READ busName WRITE setBusName NOTIFY busNameChanged)
33 Q_PROPERTY(QByteArray menuObjectPath READ menuObjectPath WRITE setMenuObjectPath NOTIFY menuObjectPathChanged)
34 Q_PROPERTY(QVariantMap actions READ actions WRITE setActions NOTIFY actionsChanged)
35 Q_PROPERTY(UnityMenuModel* model READ model NOTIFY modelChanged)
38 SharedUnityMenuModel(QObject* parent = nullptr);
40 QByteArray busName() const;
41 void setBusName(const QByteArray&);
43 QByteArray menuObjectPath() const;
44 void setMenuObjectPath(const QByteArray&);
46 QVariantMap actions() const;
47 void setActions(const QVariantMap&);
49 UnityMenuModel* model() const;
52 void busNameChanged();
53 void menuObjectPathChanged();
54 void actionsChanged();
61 QByteArray m_menuObjectPath;
62 QVariantMap m_actions;
63 QSharedPointer<UnityMenuModel> m_model;
66#endif // SHAREDUNITYMENUMODEL_H
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list