~unity-team/qtmir/kbdLayout

« back to all changes in this revision

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

  • Committer: CI Train Bot
  • Author(s): Nick Dedekind, Daniel d'Andrada
  • Date: 2015-12-10 13:08:27 UTC
  • mfrom: (345.5.18 qtmir)
  • Revision ID: ci-train-bot@canonical.com-20151210130827-k2129y6n1g2a5o2l
Politely asks processes to close before resorting to killing Fixes: #1434584
Approved by: Daniel d'Andrada

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
    void sessionChanged(SessionInterface *session);
138
138
 
139
139
    void startProcessRequested();
 
140
    void stopProcessRequested();
140
141
    void suspendProcessRequested();
141
142
    void resumeProcessRequested();
142
143
    void stopped();
146
147
 
147
148
    void respawn();
148
149
 
 
150
protected:
 
151
    void timerEvent(QTimerEvent *event);
 
152
 
149
153
private:
150
154
 
151
155
    QString longAppId() const;
158
162
    void wipeQMLCache();
159
163
    void suspend();
160
164
    void resume();
 
165
    void stop();
161
166
    QColor colorFromString(const QString &colorString, const char *colorName) const;
162
167
    static const char* internalStateToStr(InternalState state);
163
168
    void applyRequestedState();
164
169
    void applyRequestedRunning();
165
170
    void applyRequestedSuspended();
 
171
    void doClose();
166
172
 
167
173
    QSharedPointer<SharedWakelock> m_sharedWakelock;
168
174
    DesktopFileReader* m_desktopData;
178
184
    SessionInterface *m_session;
179
185
    RequestedState m_requestedState;
180
186
    ProcessState m_processState;
 
187
    int m_closeTimer;
181
188
 
182
189
    friend class ApplicationManager;
183
190
    friend class SessionManager;