~ci-train-bot/ubuntu-system-settings/ubuntu-system-settings-ubuntu-zesty-2140

« back to all changes in this revision

Viewing changes to plugins/launcher/launcher_impl.h

  • Committer: Bileto Bot
  • Author(s): Jonas G. Drange
  • Date: 2016-11-29 11:11:21 UTC
  • mfrom: (1733.3.12 appearance-launcher)
  • Revision ID: ci-train-bot@canonical.com-20161129111121-oz2yn56nev9ff182
* Packaging change: depend on USC for testing
* Adds Launcher settings panel to System Settings
* Makes USS a gapplication as a requirement for the use of the qtdesktopwidget
* Adds gsetting qml mock

Approved by: Ken VanDine

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_IMPL_H
 
20
#define LAUNCHER_IMPL_H
 
21
 
 
22
#include "launcher.h"
 
23
 
 
24
#include <QDesktopWidget>
 
25
 
 
26
class LauncherPanelPluginImpl : public LauncherPanelPlugin
 
27
{
 
28
    Q_OBJECT
 
29
public:
 
30
    explicit LauncherPanelPluginImpl(QObject *parent = nullptr);
 
31
    ~LauncherPanelPluginImpl();
 
32
    virtual int screens() const override;
 
33
public slots:
 
34
    virtual QRect screenGeometry(const int &screen = -1) const override;
 
35
    virtual int getCurrentScreenNumber() const override;
 
36
private:
 
37
    QDesktopWidget *m_desktopWidget = nullptr;
 
38
};
 
39
 
 
40
#endif // LAUNCHER_IMPL_H