~dandrader/unity-api/lifecycle

« back to all changes in this revision

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

  • Committer: Daniel d'Andrada
  • Date: 2014-08-13 18:05:37 UTC
  • Revision ID: daniel.dandrada@canonical.com-20140813180537-v6fcb9m978h5fzge
No mentions of screenshot anywhere

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
     */
98
98
    Q_PROPERTY(bool focused READ focused NOTIFY focusedChanged)
99
99
 
100
 
    /**
101
 
     * @brief The URL of the app's screenshot to be used with the image provider.
102
 
     *
103
 
     * Holds the URL for the app's screenshot. This URL will change whenever the screenshot updates.
104
 
     */
105
 
    Q_PROPERTY(QUrl screenshot READ screenshot NOTIFY screenshotChanged)
106
 
 
107
100
protected:
108
101
    /// @cond
109
102
    ApplicationInfoInterface(const QString &appId, QObject* parent = 0): QObject(parent) { Q_UNUSED(appId) }
142
135
        Stopped
143
136
    };
144
137
 
145
 
    /**
146
 
     * Takes a new screenshot and make it available in the screenshot property
147
 
     */
148
 
    Q_INVOKABLE virtual void updateScreenshot() = 0;
149
 
 
150
 
    /**
151
 
     * Discards the existing screenshot, if any, saving up memory.
152
 
     */
153
 
    Q_INVOKABLE virtual void discardScreenshot() = 0;
154
 
 
155
138
    /// @cond
156
139
    virtual ~ApplicationInfoInterface() {}
157
140
 
162
145
    virtual Stage stage() const = 0;
163
146
    virtual State state() const = 0;
164
147
    virtual bool focused() const = 0;
165
 
    virtual QUrl screenshot() const = 0;
166
148
    /// @endcond
167
149
 
168
150
Q_SIGNALS:
173
155
    void stageChanged(Stage stage);
174
156
    void stateChanged(State state);
175
157
    void focusedChanged(bool focused);
176
 
    void screenshotChanged(const QUrl &screenshot);
177
158
    /// @endcond
178
159
};
179
160