@@ -31,6 +31,7 @@ class Session : public QObject
3131 Q_PROPERTY(MirSurfaceItem* surface READ surface NOTIFY surfaceChanged)
3232 Q_PROPERTY(Session* parentSession READ parentSession NOTIFY parentSessionChanged DESIGNABLE false)
3333 Q_PROPERTY(SessionModel* childSessions READ childSessions DESIGNABLE false CONSTANT)
34+ Q_PROPERTY(bool live READ live NOTIFY liveChanged)
3435
3536public:
3637 explicit Session(const QString &name,
@@ -42,6 +43,7 @@ public:
4243
4344 //getters
4445 QString name() const { return m_name; }
46+ bool live() const { return m_live; }
4547 ApplicationInfo* application() const { return m_application; }
4648 MirSurfaceItem* surface() const { return m_surface; }
4749 Session* parentSession() const { return m_parentSession; }
@@ -49,6 +51,7 @@ public:
4951 void setApplication(ApplicationInfo* item);
5052 void setSurface(MirSurfaceItem* surface);
5153 void setScreenshot(const QUrl& m_screenshot);
54+ void setLive(bool live);
5255
5356 Q_INVOKABLE void addChildSession(Session* session);
5457 void insertChildSession(uint index, Session* session);
@@ -57,7 +60,8 @@ public:
5760Q_SIGNALS:
5861 void surfaceChanged(MirSurfaceItem*);
5962 void parentSessionChanged(Session*);
60− void removed();
63+ void liveChanged(bool isLive);
64+
6165 // internal mock use
6266 void deregister();
6367
@@ -69,6 +73,7 @@ private:
6973 void setParentSession(Session* session);
7074
7175 QString m_name;
76+ bool m_live;
7277 QUrl m_screenshot;
7378 ApplicationInfo* m_application;
7479 MirSurfaceItem* m_surface;