~alan-griffiths/qtmir/MirServer-is-an-implementation-detail

« back to all changes in this revision

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

  • Committer: CI Train Bot
  • Author(s): Daniel d'Andrada
  • Date: 2016-04-13 18:38:36 UTC
  • mfrom: (466.2.3 removeApplicationScreenshot)
  • Revision ID: ci-train-bot@canonical.com-20160413183836-k6cnj7sdzj3mp7qn
Remove application screenshot provider

It's no longer needed now that QML provides a "item-snapshot" feature.

Besides, it has no purpose in a surface-based window management.
Approved by: Lukáš Tinkl, Gerry Boland

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2013-2015 Canonical, Ltd.
3
 
 *
4
 
 * This program is free software: you can redistribute it and/or modify it under
5
 
 * the terms of the GNU Lesser General Public License version 3, as published by
6
 
 * the Free Software Foundation.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful, but WITHOUT
9
 
 * ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10
 
 * SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
 
 * Lesser General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU Lesser General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 */
16
 
 
17
 
#ifndef APPLICATIONSCREENSHOTPROVIDER_H
18
 
#define APPLICATIONSCREENSHOTPROVIDER_H
19
 
 
20
 
#include <QQuickImageProvider>
21
 
 
22
 
namespace qtmir
23
 
{
24
 
 
25
 
class ApplicationManager;
26
 
class ApplicationScreenshotProvider : public QQuickImageProvider
27
 
{
28
 
public:
29
 
    explicit ApplicationScreenshotProvider(ApplicationManager *appManager);
30
 
 
31
 
    QImage requestImage(const QString &appId, QSize *size, const QSize &requestedSize) override;
32
 
 
33
 
private:
34
 
    ApplicationManager* m_appManager;
35
 
};
36
 
 
37
 
} // namespace qtmir
38
 
 
39
 
#endif // APPLICATIONSCREENSHOTPROVIDER_H