Rename interface from Session.Scripting to SessionScripting.

Regenerate adaptors.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=599487
wilder-portage
Thiago Macieira 20 years ago
parent ac2cb50a68
commit 389e391b70
  1. 2
      konsole/org.kde.konsole.SessionScripting.xml
  2. 25
      konsole/sessionscriptingadaptor.cpp
  3. 24
      konsole/sessionscriptingadaptor.h

@ -1,6 +1,6 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.kde.konsole.Session.Scripting">
<interface name="org.kde.konsole.SessionScripting">
<method name="feedSession">
<arg name="text" type="s" direction="in"/>
</method>

@ -1,10 +1,11 @@
/*
* This file was generated by dbusidl2cpp version 0.5
* when processing input file org.kde.konsole.Session.Scripting.xml
* This file was generated by dbusxml2cpp version 0.6
* Command line was: dbusxml2cpp -l TESession -i TESession.h -a sessionscriptingadaptor -m org.kde.konsole.SessionScripting.xml
*
* dbusidl2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
* dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved.
*
* This is an auto-generated file.
* Do not edit! All changes made to it will be lost.
*/
#include "sessionscriptingadaptor.h"
@ -20,8 +21,8 @@
* Implementation of adaptor class SessionScriptingAdaptor
*/
SessionScriptingAdaptor::SessionScriptingAdaptor(QObject *parent)
: QDBusAbstractAdaptor(parent)
SessionScriptingAdaptor::SessionScriptingAdaptor(TESession *parent)
: QDBusAbstractAdaptor(parent)
{
// constructor
setAutoRelaySignals(true);
@ -34,20 +35,14 @@ SessionScriptingAdaptor::~SessionScriptingAdaptor()
void SessionScriptingAdaptor::feedSession(const QString &text)
{
// handle method call org.kde.konsole.Session.Scripting.feedSession
QMetaObject::invokeMethod(parent(), "feedSession", Q_ARG(QString, text));
// Alternative:
//static_cast<YourObjectType *>(parent())->feedSession(text);
// handle method call org.kde.konsole.SessionScripting.feedSession
parent()->feedSession(text);
}
void SessionScriptingAdaptor::sendSession(const QString &text)
{
// handle method call org.kde.konsole.Session.Scripting.sendSession
QMetaObject::invokeMethod(parent(), "sendSession", Q_ARG(QString, text));
// Alternative:
//static_cast<YourObjectType *>(parent())->sendSession(text);
// handle method call org.kde.konsole.SessionScripting.sendSession
parent()->sendSession(text);
}

@ -1,17 +1,20 @@
/*
* This file was generated by dbusidl2cpp version 0.5
* when processing input file org.kde.konsole.Session.Scripting.xml
* This file was generated by dbusxml2cpp version 0.6
* Command line was: dbusxml2cpp -l TESession -i TESession.h -a sessionscriptingadaptor -m org.kde.konsole.SessionScripting.xml
*
* dbusidl2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
* dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved.
*
* This is an auto-generated file.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef SESSIONSCRIPTINGADAPTOR_H_115611150842733
#define SESSIONSCRIPTINGADAPTOR_H_115611150842733
#ifndef SESSIONSCRIPTINGADAPTOR_H_1161947113
#define SESSIONSCRIPTINGADAPTOR_H_1161947113
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "TESession.h"
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
@ -20,14 +23,14 @@ class QStringList;
class QVariant;
/*
* Adaptor class for interface org.kde.konsole.Session.Scripting
* Adaptor class for interface org.kde.konsole.SessionScripting
*/
class SessionScriptingAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.konsole.Session.Scripting")
Q_CLASSINFO("D-Bus Interface", "org.kde.konsole.SessionScripting")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"org.kde.konsole.Session.Scripting\" >\n"
" <interface name=\"org.kde.konsole.SessionScripting\" >\n"
" <method name=\"feedSession\" >\n"
" <arg direction=\"in\" type=\"s\" name=\"text\" />\n"
" </method>\n"
@ -37,9 +40,12 @@ class SessionScriptingAdaptor: public QDBusAbstractAdaptor
" </interface>\n"
"")
public:
SessionScriptingAdaptor(QObject *parent);
SessionScriptingAdaptor(TESession *parent);
virtual ~SessionScriptingAdaptor();
inline TESession *parent() const
{ return static_cast<TESession *>(QObject::parent()); }
public: // PROPERTIES
public Q_SLOTS: // METHODS
void feedSession(const QString &text);

Loading…
Cancel
Save