2 * Copyright (C) 2013-2014 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU 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 General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20#include "SurfaceManager.h"
21#include "MirSurfaceItemModel.h"
29#include <unity/shell/application/ApplicationInfoInterface.h>
31using namespace unity::shell::application;
33class ApplicationInfo : public ApplicationInfoInterface {
36 Q_PROPERTY(bool fullscreen READ fullscreen WRITE setFullscreen NOTIFY fullscreenChanged)
37 Q_PROPERTY(Session* session READ session NOTIFY sessionChanged)
39 // Only exists in this fake implementation
41 // whether the test code will explicitly control the creation of the application surface
42 Q_PROPERTY(bool manualSurfaceCreation READ manualSurfaceCreation WRITE setManualSurfaceCreation NOTIFY manualSurfaceCreationChanged)
45 ApplicationInfo(QObject *parent = nullptr);
46 ApplicationInfo(const QString &appId, QObject *parent = nullptr);
49 void setIconId(const QString &iconId);
50 void setScreenshotId(const QString &screenshotId);
52 void setAppId(const QString &value) { m_appId = value; }
53 QString appId() const override { return m_appId; }
55 void setName(const QString &value);
56 QString name() const override { return m_name; }
58 QString comment() const override { return QString(); }
60 QUrl icon() const override { return m_icon; }
62 void setStage(Stage value);
63 Stage stage() const override { return m_stage; }
65 Q_INVOKABLE void setState(State value);
66 State state() const override { return m_state; }
68 void setFocused(bool value);
69 bool focused() const override { return m_focused; }
71 QString screenshot() const { return m_screenshotFileName; }
73 void setFullscreen(bool value);
74 bool fullscreen() const { return m_fullscreen; }
76 bool manualSurfaceCreation() const { return m_manualSurfaceCreation; }
77 void setManualSurfaceCreation(bool value);
80 void setSession(Session* session);
81 Session* session() const { return m_session; }
84 void sessionChanged(Session*);
85 void fullscreenChanged(bool value);
86 void manualSurfaceCreationChanged(bool value);
89 Q_INVOKABLE void createSession();
92 void setIcon(const QUrl &value);
94 QString m_screenshotFileName;
105 bool m_manualSurfaceCreation;
108Q_DECLARE_METATYPE(ApplicationInfo*)
110#endif // APPLICATION_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