~ubuntu-branches/debian/experimental/qtcurve/experimental

« back to all changes in this revision

Viewing changes to qt5/kwin/qtcurvedbus.h

  • Committer: Package Import Robot
  • Author(s): Boris Pek, Thanks to Scarlett Clark
  • Date: 2015-07-26 04:17:05 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20150726041705-yuxbierbpely1fvp
Tags: 1.8.18+git20150711-a3fff13-1
* Upstream Git snapshot (1.8.18-242-ga3fff13) is taken from:
  http://quickgit.kde.org/?p=qtcurve.git
* Localization files are taken from last stable release (1.8.18).
* Fixed in upstream:
  - gtk2-engines-qtcurve: inkscape 0.91 crashes after palette mouse-over
    (Closes: #786831)
  - gtk2-engines-qtcurve: massive memory leak in mysql-workbench
    (Closes: #682162)
* Update debian/patches:
  - delete qt53-build-fix.diff (fixed in upstream)
  - add enable-translations.patch
* Update debian/control:
  - bump Standards-Version to 3.9.6 (was 3.9.5): no changes required
  - update Build-Depends for transition from KDE4 to KF5:
    + delete dependencies from: kdebase-workspace-dev and qtdeclarative5-dev
    + add dependencies from: extra-cmake-modules, kio-dev,
      libkf5archive-dev, libkf5config-dev, libkf5configwidgets-dev,
      libkf5i18n-dev, libkf5kdelibs4support-dev, libkf5widgetsaddons-dev,
      libkf5xmlgui-dev, libqt5x11extras5-dev, libxcb1-dev, pkg-config
      [Thanks to Scarlett Clark]
  - delete package kwin-style-qtcurve: it is not available for KF5 yet
    (LP: #1452218)
  - package kde-style-qtcurve now provides package kde-style-qtcurve-qt4
  - package kde-style-qtcurve is "Multi-Arch: same" now
  - metapackage qtcurve now depends on kde-style-qtcurve-qt5 and recommends
    kwin-decoration-oxygen, oxygen-icon-theme and oxygencursors
* Update debian/rules:
  - build using kf5 libraries instead of kde4
  - update configure flags
  - use xz compression in packages
* Update debian/kde-style-qtcurve.install:
  there are no KDE4 related files anymore.
* Update debian/kde-style-qtcurve-qt5.install.
* Update debian/copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 *   Copyright 2010 Craig Drummond <craig.p.drummond@gmail.com>              *
 
3
 *   Copyright 2013 - 2015 Yichao Yu <yyc1992@gmail.com>                     *
 
4
 *                                                                           *
 
5
 *   This program is free software; you can redistribute it and/or modify    *
 
6
 *   it under the terms of the GNU Lesser General Public License as          *
 
7
 *   published by the Free Software Foundation; either version 2.1 of the    *
 
8
 *   License, or (at your option) version 3, or any later version accepted   *
 
9
 *   by the membership of KDE e.V. (or its successor approved by the         *
 
10
 *   membership of KDE e.V.), which shall act as a proxy defined in          *
 
11
 *   Section 6 of version 3 of the license.                                  *
 
12
 *                                                                           *
 
13
 *   This program is distributed in the hope that it will be useful,         *
 
14
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of          *
 
15
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       *
 
16
 *   Lesser General Public License for more details.                         *
 
17
 *                                                                           *
 
18
 *   You should have received a copy of the GNU Lesser General Public        *
 
19
 *   License along with this library. If not,                                *
 
20
 *   see <http://www.gnu.org/licenses/>.                                     *
 
21
 *****************************************************************************/
 
22
 
 
23
#ifndef _QTCURVE_DBUS_H_
 
24
#define _QTCURVE_DBUS_H_
 
25
 
 
26
#include <QDBusAbstractAdaptor>
 
27
#include "qtcurvehandler.h"
 
28
 
 
29
namespace QtCurve {
 
30
namespace KWin {
 
31
 
 
32
class QtCurveDBus : public QDBusAbstractAdaptor
 
33
{
 
34
    Q_OBJECT
 
35
    Q_CLASSINFO("D-Bus Interface", "org.kde.QtCurve")
 
36
 
 
37
    public:
 
38
 
 
39
    QtCurveDBus(QtCurveHandler *handler) : QDBusAbstractAdaptor(handler) { }
 
40
 
 
41
    void emitBorderSizes()              { emit borderSizesChanged(); }
 
42
    void emitMbToggle(unsigned int xid) { emit toggleMenuBar(xid); }
 
43
    void emitSbToggle(unsigned int xid) { emit toggleStatusBar(xid); }
 
44
 
 
45
    Q_SIGNALS:
 
46
 
 
47
    void borderSizesChanged();
 
48
    void toggleMenuBar(unsigned int xid);
 
49
    void toggleStatusBar(unsigned int xid);
 
50
 
 
51
    public Q_SLOTS:
 
52
 
 
53
    Q_NOREPLY void menuBarSize(unsigned int xid, int size)      { Handler()->menuBarSize(xid, size); }
 
54
    Q_NOREPLY void statusBarState(unsigned int xid, bool state) { Handler()->statusBarState(xid, state); }
 
55
};
 
56
 
 
57
}
 
58
}
 
59
 
 
60
#endif