2006-06-07 09:05:46 +00:00
|
|
|
/*
|
|
|
|
* This file was generated by dbusidl2cpp version 0.5
|
2006-06-07 11:27:22 +00:00
|
|
|
* when processing input file org.kde.KWin.xml
|
2006-06-07 09:05:46 +00:00
|
|
|
*
|
|
|
|
* dbusidl2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
|
|
|
|
*
|
|
|
|
* This is an auto-generated file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "kwinadaptor.h"
|
|
|
|
#include <QtCore/QMetaObject>
|
|
|
|
#include <QtCore/QByteArray>
|
|
|
|
#include <QtCore/QList>
|
|
|
|
#include <QtCore/QMap>
|
|
|
|
#include <QtCore/QString>
|
|
|
|
#include <QtCore/QStringList>
|
|
|
|
#include <QtCore/QVariant>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Implementation of adaptor class KWinAdaptor
|
|
|
|
*/
|
|
|
|
|
|
|
|
KWinAdaptor::KWinAdaptor(QObject *parent)
|
|
|
|
: QDBusAbstractAdaptor(parent)
|
|
|
|
{
|
|
|
|
// constructor
|
|
|
|
setAutoRelaySignals(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
KWinAdaptor::~KWinAdaptor()
|
|
|
|
{
|
|
|
|
// destructor
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::cascadeDesktop()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.cascadeDesktop
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "cascadeDesktop");
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->cascadeDesktop();
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::circulateDesktopApplications()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.circulateDesktopApplications
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "circulateDesktopApplications");
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->circulateDesktopApplications();
|
|
|
|
}
|
|
|
|
|
|
|
|
int KWinAdaptor::currentDesktop()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.currentDesktop
|
2006-06-07 09:05:46 +00:00
|
|
|
int out0;
|
|
|
|
QMetaObject::invokeMethod(parent(), "currentDesktop", Q_RETURN_ARG(int, out0));
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//out0 = static_cast<YourObjectType *>(parent())->currentDesktop();
|
|
|
|
return out0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::doNotManage(const QString &name)
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.doNotManage
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "doNotManage", Q_ARG(QString, name));
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->doNotManage(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::killWindow()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.killWindow
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "killWindow");
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->killWindow();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool KWinAdaptor::kompmgrIsRunning()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.kompmgrIsRunning
|
2006-06-07 09:05:46 +00:00
|
|
|
bool out0;
|
|
|
|
QMetaObject::invokeMethod(parent(), "kompmgrIsRunning", Q_RETURN_ARG(bool, out0));
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//out0 = static_cast<YourObjectType *>(parent())->kompmgrIsRunning();
|
|
|
|
return out0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::nextDesktop()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.nextDesktop
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "nextDesktop");
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->nextDesktop();
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::previousDesktop()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.previousDesktop
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "previousDesktop");
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->previousDesktop();
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::reconfigure()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.reconfigure
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "reconfigure");
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->reconfigure();
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::refresh()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.refresh
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "refresh");
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->refresh();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool KWinAdaptor::setCurrentDesktop(int desktop)
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.setCurrentDesktop
|
2006-06-07 09:05:46 +00:00
|
|
|
bool out0;
|
|
|
|
QMetaObject::invokeMethod(parent(), "setCurrentDesktop", Q_RETURN_ARG(bool, out0), Q_ARG(int, desktop));
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//out0 = static_cast<YourObjectType *>(parent())->setCurrentDesktop(desktop);
|
|
|
|
return out0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::setDesktopLayout(int orientation, int x, int y)
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.setDesktopLayout
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "setDesktopLayout", Q_ARG(int, orientation), Q_ARG(int, x), Q_ARG(int, y));
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->setDesktopLayout(orientation, x, y);
|
|
|
|
}
|
|
|
|
|
2006-06-07 12:54:20 +00:00
|
|
|
void KWinAdaptor::setOpacity(qlonglong winId, uint opacityPercent)
|
2006-06-07 09:05:46 +00:00
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.setOpacity
|
2006-06-07 12:54:20 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "setOpacity", Q_ARG(qlonglong, winId), Q_ARG(uint, opacityPercent));
|
2006-06-07 09:05:46 +00:00
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->setOpacity(winId, opacityPercent);
|
|
|
|
}
|
|
|
|
|
2006-06-07 12:54:20 +00:00
|
|
|
void KWinAdaptor::setShadowSize(qlonglong winId, uint shadowSizePercent)
|
2006-06-07 09:05:46 +00:00
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.setShadowSize
|
2006-06-07 12:54:20 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "setShadowSize", Q_ARG(qlonglong, winId), Q_ARG(uint, shadowSizePercent));
|
2006-06-07 09:05:46 +00:00
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->setShadowSize(winId, shadowSizePercent);
|
|
|
|
}
|
|
|
|
|
2006-06-07 12:54:20 +00:00
|
|
|
void KWinAdaptor::setUnshadowed(qlonglong winId)
|
2006-06-07 09:05:46 +00:00
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.setUnshadowed
|
2006-06-07 12:54:20 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "setUnshadowed", Q_ARG(qlonglong, winId));
|
2006-06-07 09:05:46 +00:00
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->setUnshadowed(winId);
|
|
|
|
}
|
|
|
|
|
2006-06-07 12:54:20 +00:00
|
|
|
void KWinAdaptor::showWindowMenuAt(qlonglong winId, int x, int y)
|
2006-06-07 09:05:46 +00:00
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.showWindowMenuAt
|
2006-06-07 12:54:20 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "showWindowMenuAt", Q_ARG(qlonglong, winId), Q_ARG(int, x), Q_ARG(int, y));
|
2006-06-07 09:05:46 +00:00
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->showWindowMenuAt(winId, x, y);
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::startKompmgr()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.startKompmgr
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "startKompmgr");
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->startKompmgr();
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::stopKompmgr()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.stopKompmgr
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "stopKompmgr");
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->stopKompmgr();
|
|
|
|
}
|
|
|
|
|
|
|
|
void KWinAdaptor::unclutterDesktop()
|
|
|
|
{
|
2006-06-07 11:27:22 +00:00
|
|
|
// handle method call org.kde.KWin.unclutterDesktop
|
2006-06-07 09:05:46 +00:00
|
|
|
QMetaObject::invokeMethod(parent(), "unclutterDesktop");
|
|
|
|
|
|
|
|
// Alternative:
|
|
|
|
//static_cast<YourObjectType *>(parent())->unclutterDesktop();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#include "kwinadaptor.moc"
|