~mir-team/qtmir/mir-0.16-rebuild

« back to all changes in this revision

Viewing changes to src/platforms/mirserver/surfaceconfigurator.h

  • Committer: Daniel d'Andrada
  • Date: 2014-12-10 10:33:48 UTC
  • mto: This revision was merged to the branch mainline in revision 294.
  • Revision ID: daniel.dandrada@canonical.com-20141210103348-mn2kmwtxxo0y8yyw
removed :PATH from command line

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2013,2014 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 SURFACECONFIGURATOR_H
 
18
#define SURFACECONFIGURATOR_H
 
19
 
 
20
#include <QObject>
 
21
 
 
22
#include <mir/scene/surface_configurator.h>
 
23
#include <mir_toolkit/common.h>
 
24
 
 
25
namespace mir { namespace scene { class Surface; }}
 
26
 
 
27
class SurfaceConfigurator : public QObject, public mir::scene::SurfaceConfigurator
 
28
{
 
29
    Q_OBJECT
 
30
 
 
31
public:
 
32
    SurfaceConfigurator();
 
33
 
 
34
    int select_attribute_value(mir::scene::Surface const&, MirSurfaceAttrib, int) override;
 
35
    void attribute_set(mir::scene::Surface const&, MirSurfaceAttrib, int) override;
 
36
 
 
37
Q_SIGNALS:
 
38
    void surfaceAttributeChanged(mir::scene::Surface const*, const MirSurfaceAttrib, const int);
 
39
};
 
40
 
 
41
#endif // SURFACECONFIGURATOR_H