Now I know how to define a unsigned long and unsigned int

svn path=/trunk/KDE/kdebase/workspace/; revision=549052
This commit is contained in:
Laurent Montel 2006-06-07 09:43:03 +00:00
parent f7de3f2974
commit 17349f776e
3 changed files with 26 additions and 26 deletions

View file

@ -146,37 +146,37 @@ void KWinAdaptor::setDesktopLayout(int orientation, int x, int y)
//static_cast<YourObjectType *>(parent())->setDesktopLayout(orientation, x, y);
}
void KWinAdaptor::setOpacity(int winId, int opacityPercent)
void KWinAdaptor::setOpacity(qulonglong winId, uint opacityPercent)
{
// handle method call org.kde.kwin.KWin.setOpacity
QMetaObject::invokeMethod(parent(), "setOpacity", Q_ARG(int, winId), Q_ARG(int, opacityPercent));
QMetaObject::invokeMethod(parent(), "setOpacity", Q_ARG(qulonglong, winId), Q_ARG(uint, opacityPercent));
// Alternative:
//static_cast<YourObjectType *>(parent())->setOpacity(winId, opacityPercent);
}
void KWinAdaptor::setShadowSize(int winId, int shadowSizePercent)
void KWinAdaptor::setShadowSize(qulonglong winId, uint shadowSizePercent)
{
// handle method call org.kde.kwin.KWin.setShadowSize
QMetaObject::invokeMethod(parent(), "setShadowSize", Q_ARG(int, winId), Q_ARG(int, shadowSizePercent));
QMetaObject::invokeMethod(parent(), "setShadowSize", Q_ARG(qulonglong, winId), Q_ARG(uint, shadowSizePercent));
// Alternative:
//static_cast<YourObjectType *>(parent())->setShadowSize(winId, shadowSizePercent);
}
void KWinAdaptor::setUnshadowed(int winId)
void KWinAdaptor::setUnshadowed(qulonglong winId)
{
// handle method call org.kde.kwin.KWin.setUnshadowed
QMetaObject::invokeMethod(parent(), "setUnshadowed", Q_ARG(int, winId));
QMetaObject::invokeMethod(parent(), "setUnshadowed", Q_ARG(qulonglong, winId));
// Alternative:
//static_cast<YourObjectType *>(parent())->setUnshadowed(winId);
}
void KWinAdaptor::showWindowMenuAt(int winId, int x, int y)
void KWinAdaptor::showWindowMenuAt(qulonglong winId, int x, int y)
{
// handle method call org.kde.kwin.KWin.showWindowMenuAt
QMetaObject::invokeMethod(parent(), "showWindowMenuAt", Q_ARG(int, winId), Q_ARG(int, x), Q_ARG(int, y));
QMetaObject::invokeMethod(parent(), "showWindowMenuAt", Q_ARG(qulonglong, winId), Q_ARG(int, x), Q_ARG(int, y));
// Alternative:
//static_cast<YourObjectType *>(parent())->showWindowMenuAt(winId, x, y);

View file

@ -7,8 +7,8 @@
* This is an auto-generated file.
*/
#ifndef KWINADAPTOR_H_93481149670720
#define KWINADAPTOR_H_93481149670720
#ifndef KWINADAPTOR_H_87381149673338
#define KWINADAPTOR_H_87381149673338
#include <QtCore/QObject>
#include <dbus/qdbus.h>
@ -45,7 +45,7 @@ class KWinAdaptor: public QDBusAbstractAdaptor
" <arg direction=\"in\" type=\"s\" name=\"name\" />\n"
" </method>\n"
" <method name=\"showWindowMenuAt\" >\n"
" <arg direction=\"in\" type=\"i\" name=\"winId\" />\n"
" <arg direction=\"in\" type=\"t\" name=\"winId\" />\n"
" <arg direction=\"in\" type=\"i\" name=\"x\" />\n"
" <arg direction=\"in\" type=\"i\" name=\"y\" />\n"
" </method>\n"
@ -70,15 +70,15 @@ class KWinAdaptor: public QDBusAbstractAdaptor
" <arg direction=\"out\" type=\"b\" />\n"
" </method>\n"
" <method name=\"setOpacity\" >\n"
" <arg direction=\"in\" type=\"i\" name=\"winId\" />\n"
" <arg direction=\"in\" type=\"i\" name=\"opacityPercent\" />\n"
" <arg direction=\"in\" type=\"t\" name=\"winId\" />\n"
" <arg direction=\"in\" type=\"u\" name=\"opacityPercent\" />\n"
" </method>\n"
" <method name=\"setShadowSize\" >\n"
" <arg direction=\"in\" type=\"i\" name=\"winId\" />\n"
" <arg direction=\"in\" type=\"i\" name=\"shadowSizePercent\" />\n"
" <arg direction=\"in\" type=\"t\" name=\"winId\" />\n"
" <arg direction=\"in\" type=\"u\" name=\"shadowSizePercent\" />\n"
" </method>\n"
" <method name=\"setUnshadowed\" >\n"
" <arg direction=\"in\" type=\"i\" name=\"winId\" />\n"
" <arg direction=\"in\" type=\"t\" name=\"winId\" />\n"
" </method>\n"
" <signal name=\"kompmgrStarted\" />\n"
" <signal name=\"kompmgrStopped\" />\n"
@ -103,10 +103,10 @@ public Q_SLOTS: // METHODS
void refresh();
bool setCurrentDesktop(int desktop);
void setDesktopLayout(int orientation, int x, int y);
void setOpacity(int winId, int opacityPercent);
void setShadowSize(int winId, int shadowSizePercent);
void setUnshadowed(int winId);
void showWindowMenuAt(int winId, int x, int y);
void setOpacity(qulonglong winId, uint opacityPercent);
void setShadowSize(qulonglong winId, uint shadowSizePercent);
void setUnshadowed(qulonglong winId);
void showWindowMenuAt(qulonglong winId, int x, int y);
void startKompmgr();
void stopKompmgr();
Q_ASYNC void unclutterDesktop();

View file

@ -19,7 +19,7 @@
<arg name="name" type="s" direction="in"/>
</method>
<method name="showWindowMenuAt">
<arg name="winId" type="i" direction="in"/>
<arg name="winId" type="t" direction="in"/>
<arg name="x" type="i" direction="in"/>
<arg name="y" type="i" direction="in"/>
</method>
@ -44,15 +44,15 @@
<arg type="b" direction="out"/>
</method>
<method name="setOpacity">
<arg name="winId" type="i" direction="in"/>
<arg name="opacityPercent" type="i" direction="in"/>
<arg name="winId" type="t" direction="in"/>
<arg name="opacityPercent" type="u" direction="in"/>
</method>
<method name="setShadowSize">
<arg name="winId" type="i" direction="in"/>
<arg name="shadowSizePercent" type="i" direction="in"/>
<arg name="winId" type="t" direction="in"/>
<arg name="shadowSizePercent" type="u" direction="in"/>
</method>
<method name="setUnshadowed">
<arg name="winId" type="i" direction="in"/>
<arg name="winId" type="t" direction="in"/>
</method>
<signal name="kompmgrStarted"/>
<signal name="kompmgrStopped"/>