~untrusted-ci-dev-bot/unity-api/unity-api-ubuntu-xenial-landing-002

« back to all changes in this revision

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

  • Committer: CI Train Bot
  • Author(s): Daniel d'Andrada
  • Date: 2016-02-11 23:53:16 UTC
  • mfrom: (206.1.1 initialSurfaceGeom)
  • Revision ID: ci-train-bot@canonical.com-20160211235316-2mhhzzruv8qfqxgk
Added ApplicationInfoInterface.initialSurfaceSize Fixes: #1532974
Approved by: Nick Dedekind, PS Jenkins bot, Gerry Boland

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2013,2015 Canonical Ltd.
 
2
 * Copyright 2013,2015,2016 Canonical Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU Lesser General Public License as published by
22
22
#include <QtCore/QObject>
23
23
#include <QtCore/QUrl>
24
24
#include <QColor>
 
25
#include <QSize>
25
26
 
26
27
namespace unity
27
28
{
211
212
     */
212
213
    Q_PROPERTY(bool exemptFromLifecycle READ exemptFromLifecycle WRITE setExemptFromLifecycle NOTIFY exemptFromLifecycleChanged)
213
214
 
 
215
    /**
 
216
     * @brief The size to be given for new surfaces created by this application
 
217
     */
 
218
    Q_PROPERTY(QSize initialSurfaceSize READ initialSurfaceSize WRITE setInitialSurfaceSize NOTIFY initialSurfaceSizeChanged)
 
219
 
214
220
protected:
215
221
    /// @cond
216
222
    ApplicationInfoInterface(const QString &appId, QObject* parent = 0): QObject(parent) { Q_UNUSED(appId) }
284
290
    virtual bool isTouchApp() const = 0;
285
291
    virtual bool exemptFromLifecycle() const = 0;
286
292
    virtual void setExemptFromLifecycle(bool) = 0;
 
293
    virtual QSize initialSurfaceSize() const = 0;
 
294
    virtual void setInitialSurfaceSize(const QSize &size) = 0;
287
295
    /// @endcond
288
296
 
289
297
Q_SIGNALS:
296
304
    void requestedStateChanged(RequestedState value);
297
305
    void focusedChanged(bool focused);
298
306
    void exemptFromLifecycleChanged(bool exemptFromLifecycle);
 
307
    void initialSurfaceSizeChanged(const QSize &size);
299
308
    /// @endcond
300
309
};
301
310