~mterry/unity-api/fix-wakelocks-8.5

« back to all changes in this revision

Viewing changes to include/unity/shell/application/ApplicationInfoInterface.h

  • Committer: Michael Terry
  • Date: 2015-12-03 18:54:44 UTC
  • Revision ID: michael.terry@canonical.com-20151203185444-gd4a2t0pjqqjqd2j
Backport fix-wakelocks branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
     */
205
205
    Q_PROPERTY(bool isTouchApp READ isTouchApp CONSTANT)
206
206
 
 
207
    /**
 
208
     * @brief The application's focus state.
 
209
     *
 
210
     * Holds the current application focus state. True if focused, false otherwise.
 
211
     */
 
212
    Q_PROPERTY(bool exemptFromLifecycle READ exemptFromLifecycle WRITE setExemptFromLifecycle NOTIFY exemptFromLifecycleChanged)
 
213
 
207
214
protected:
208
215
    /// @cond
209
216
    ApplicationInfoInterface(const QString &appId, QObject* parent = 0): QObject(parent) { Q_UNUSED(appId) }
275
282
    virtual Qt::ScreenOrientations supportedOrientations() const = 0;
276
283
    virtual bool rotatesWindowContents() const = 0;
277
284
    virtual bool isTouchApp() const = 0;
 
285
    virtual bool exemptFromLifecycle() const = 0;
 
286
    virtual void setExemptFromLifecycle(bool) = 0;
278
287
    /// @endcond
279
288
 
280
289
Q_SIGNALS:
286
295
    void stateChanged(State state);
287
296
    void requestedStateChanged(RequestedState value);
288
297
    void focusedChanged(bool focused);
 
298
    void exemptFromLifecycleChanged(bool exemptFromLifecycle);
289
299
    /// @endcond
290
300
};
291
301