~mterry/+junk/u8

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Application/Session.h

  • Committer: Daniel van Vugt
  • Date: 2016-03-29 03:47:39 UTC
  • mfrom: (2311 unity8)
  • mto: This revision was merged to the branch mainline in revision 2371.
  • Revision ID: daniel.van.vugt@canonical.com-20160329034739-747vgu4bv4dtt53v
Merge latest trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    //getters
48
48
    QString name() const { return m_name; }
49
49
    bool live() const { return m_live; }
 
50
    bool fullscreen() const { return m_fullscreen; }
50
51
    ApplicationInfo* application() const { return m_application; }
51
52
    MirSurface *lastSurface() const;
52
53
    ObjectListModel<MirSurface>* surfaces() const;
57
58
    void removeSurface(MirSurface* surface);
58
59
    void setScreenshot(const QUrl& m_screenshot);
59
60
    void setLive(bool live);
 
61
    void setFullscreen(bool fullscreen);
60
62
 
61
63
    Q_INVOKABLE void addChildSession(Session* session);
62
64
    void insertChildSession(uint index, Session* session);
68
70
    void liveChanged(bool live);
69
71
    void surfaceAdded(MirSurface *surface);
70
72
    void lastSurfaceChanged(MirSurface *surface);
 
73
    void fullscreenChanged(bool fullscreen);
71
74
 
72
75
    // internal mock use
73
76
    void deregister();
75
78
public Q_SLOTS:
76
79
    Q_INVOKABLE void createSurface();
77
80
 
 
81
private Q_SLOTS:
 
82
    void updateFullscreenProperty();
 
83
 
78
84
private:
79
85
    SessionModel* childSessions() const;
80
86
    void setParentSession(Session* session);
87
93
    Session* m_parentSession;
88
94
    SessionModel* m_children;
89
95
    ObjectListModel<MirSurface> m_surfaces;
 
96
    bool m_fullscreen;
90
97
 
91
98
    friend class ApplicationTestInterface;
92
99
};