~jonas-drange/ubuntu-system-settings/filepicker

« back to all changes in this revision

Viewing changes to plugins/launcher/launcher.h

  • Committer: Jonas G. Drange
  • Date: 2017-01-24 14:03:55 UTC
  • mfrom: (1673.1.84 ubuntu-system-settings)
  • Revision ID: jonas.drange@canonical.com-20170124140355-1srbozy3aczq1mct
syncs with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of system-settings
 
3
 *
 
4
 * Copyright (C) 2016 Canonical Ltd.
 
5
 *
 
6
 * This program is free software: you can redistribute it and/or modify it
 
7
 * under the terms of the GNU General Public License version 3, as published
 
8
 * by the Free Software Foundation.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful, but
 
11
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
12
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
13
 * PURPOSE.  See the GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License along
 
16
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
#ifndef LAUNCHER_H
 
20
#define LAUNCHER_H
 
21
 
 
22
#include <QObject>
 
23
#include <QRect>
 
24
 
 
25
class LauncherPanelPlugin : public QObject
 
26
{
 
27
    Q_OBJECT
 
28
    Q_PROPERTY(int screens READ screens NOTIFY screensChanged)
 
29
public:
 
30
    explicit LauncherPanelPlugin(QObject *parent = nullptr)
 
31
        : QObject(parent) {};
 
32
    virtual ~LauncherPanelPlugin() {};
 
33
    // Return index of screen at which USS is currently rendered.
 
34
    virtual int screens() const = 0;
 
35
public slots:
 
36
    virtual QRect screenGeometry(const int &screen = -1) const = 0;
 
37
    virtual int getCurrentScreenNumber() const = 0;
 
38
Q_SIGNALS:
 
39
    void screensChanged(int newCount);
 
40
};
 
41
 
 
42
#endif // LAUNCHER_H