1
/*****************************************************************************
2
* Copyright 2010 Craig Drummond <craig.p.drummond@gmail.com> *
3
* Copyright 2013 - 2015 Yichao Yu <yyc1992@gmail.com> *
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. *
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. *
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
*****************************************************************************/
23
#ifndef _QTCURVE_DBUS_H_
24
#define _QTCURVE_DBUS_H_
26
#include <QDBusAbstractAdaptor>
27
#include "qtcurvehandler.h"
32
class QtCurveDBus : public QDBusAbstractAdaptor
35
Q_CLASSINFO("D-Bus Interface", "org.kde.QtCurve")
39
QtCurveDBus(QtCurveHandler *handler) : QDBusAbstractAdaptor(handler) { }
41
void emitBorderSizes() { emit borderSizesChanged(); }
42
void emitMbToggle(unsigned int xid) { emit toggleMenuBar(xid); }
43
void emitSbToggle(unsigned int xid) { emit toggleStatusBar(xid); }
47
void borderSizesChanged();
48
void toggleMenuBar(unsigned int xid);
49
void toggleStatusBar(unsigned int xid);
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); }