~alan-griffiths/qtmir/introducing-QtmirWindowManagementPolicy

« back to all changes in this revision

Viewing changes to src/modules/Unity/Application/application.h

  • Committer: Alan Griffiths
  • Date: 2016-03-07 17:44:54 UTC
  • mfrom: (417.1.35 qtmir)
  • Revision ID: alan@octopull.co.uk-20160307174454-12bqkjn1b2v7ixsx
Rather brutal merge\ lp:qtmir

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
class DesktopFileReader;
44
44
class Session;
45
45
class SharedWakelock;
 
46
class AbstractTimer;
46
47
 
47
48
class Application : public unity::shell::application::ApplicationInfoInterface
48
49
{
107
108
    bool isTouchApp() const override;
108
109
    bool exemptFromLifecycle() const override;
109
110
    void setExemptFromLifecycle(bool) override;
 
111
    QSize initialSurfaceSize() const override;
 
112
    void setInitialSurfaceSize(const QSize &size) override;
110
113
 
111
114
    void setStage(Stage stage);
112
115
 
133
136
 
134
137
    // for tests
135
138
    InternalState internalState() const { return m_state; }
 
139
    void setCloseTimer(AbstractTimer *timer);
136
140
 
137
141
Q_SIGNALS:
138
142
    void fullscreenChanged(bool fullscreen);
150
154
 
151
155
    void respawn();
152
156
 
153
 
protected:
154
 
    void timerEvent(QTimerEvent *event);
155
 
 
156
157
private:
157
158
 
158
159
    QString longAppId() const;
187
188
    SessionInterface *m_session;
188
189
    RequestedState m_requestedState;
189
190
    ProcessState m_processState;
190
 
    int m_closeTimer;
 
191
    AbstractTimer *m_closeTimer;
191
192
    bool m_exemptFromLifecycle;
 
193
    QSize m_initialSurfaceSize;
192
194
 
193
195
    friend class ApplicationManager;
194
196
    friend class SessionManager;