• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KInit

klauncher_adaptor.cpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2006, 2007 Thiago Macieira <thiago@kde.org>
00003  * Copyright 2006-2008 David Faure <faure@kde.org>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) version 3, or any
00009  * later version accepted by the membership of KDE e.V. (or its
00010  * successor approved by the membership of KDE e.V.), which shall
00011  * act as a proxy defined in Section 6 of version 3 of the license.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00020  *
00021  */
00022 
00023 #include "klauncher_adaptor.h"
00024 #include <QtCore/QArgument>
00025 #include <QtCore/QByteRef>
00026 #include <QtCore/QList>
00027 #include <QtCore/QMap>
00028 #include <QtCore/QString>
00029 #include <QtCore/QStringList>
00030 #include <QtCore/QVariant>
00031 
00032 #include "klauncher.h"
00033 
00034 /*
00035  * Implementation of adaptor class KLauncherAdaptor
00036  *
00037  * This file was initially generated by dbusidl2cpp version 0.4,
00038  * but then modified by hand.
00039  */
00040 
00041 KLauncherAdaptor::KLauncherAdaptor(QObject *parent)
00042    : QDBusAbstractAdaptor(parent)
00043 {
00044     // constructor
00045     setAutoRelaySignals(true);
00046 }
00047 
00048 KLauncherAdaptor::~KLauncherAdaptor()
00049 {
00050     // destructor
00051 }
00052 
00053 void KLauncherAdaptor::autoStart(int phase)
00054 {
00055     // handle method call org.kde.KLauncher.autoStart
00056     static_cast<KLauncher *>(parent())->autoStart(phase);
00057 }
00058 
00059 void KLauncherAdaptor::exec_blind(const QString &name, const QStringList &arg_list)
00060 {
00061     // handle method call org.kde.KLauncher.exec_blind
00062     static_cast<KLauncher *>(parent())->exec_blind(name, arg_list);
00063 }
00064 
00065 void KLauncherAdaptor::exec_blind(const QString &name, const QStringList &arg_list, const QStringList &envs, const QString &startup_id)
00066 {
00067     // handle method call org.kde.KLauncher.exec_blind
00068     static_cast<KLauncher *>(parent())->exec_blind(name, arg_list, envs, startup_id);
00069 }
00070 
00071 int KLauncherAdaptor::kdeinit_exec(const QString &app, const QStringList &args, const QStringList &env, const QString& startup_id, const QDBusMessage &msg, QString &, QString &, int &)
00072 {
00073     // handle method call org.kde.KLauncher.kdeinit_exec
00074     static_cast<KLauncher *>(parent())->kdeinit_exec(app, args, QString(), env, startup_id, false, msg);
00075     return 0;                   // delayed reply
00076 }
00077 
00078 int KLauncherAdaptor::kdeinit_exec_wait(const QString &app, const QStringList &args, const QStringList &env, const QString& startup_id, const QDBusMessage &msg, QString &, QString &, int &)
00079 {
00080     // handle method call org.kde.KLauncher.kdeinit_exec_wait
00081     static_cast<KLauncher *>(parent())->kdeinit_exec(app, args, QString(), env, startup_id, true, msg);
00082     return 0;                   // delayed reply
00083 }
00084 
00085 int KLauncherAdaptor::kdeinit_exec_with_workdir(const QString &app, const QStringList &args, const QString& workdir, const QStringList &env, const QString& startup_id, const QDBusMessage &msg, QString &, QString &, int &)
00086 {
00087     // handle method call org.kde.KLauncher.kdeinit_exec_with_workdir
00088     static_cast<KLauncher *>(parent())->kdeinit_exec(app, args, workdir, env, startup_id, false, msg);
00089     return 0;                   // delayed reply
00090 }
00091 
00092 void KLauncherAdaptor::reparseConfiguration()
00093 {
00094     // handle method call org.kde.KLauncher.reparseConfiguration
00095     static_cast<KLauncher *>(parent())->reparseConfiguration();
00096 }
00097 
00098 int KLauncherAdaptor::requestHoldSlave(const QString &url, const QString &app_socket)
00099 {
00100     // handle method call org.kde.KLauncher.requestHoldSlave
00101     return static_cast<KLauncher *>(parent())->requestHoldSlave(KUrl(url), app_socket);
00102 }
00103 
00104 int KLauncherAdaptor::requestSlave(const QString &protocol, const QString &host, const QString &app_socket, QString &error)
00105 {
00106     // handle method call org.kde.KLauncher.requestSlave
00107     return static_cast<KLauncher *>(parent())->requestSlave(protocol, host, app_socket, error);
00108 }
00109 
00110 void KLauncherAdaptor::setLaunchEnv(const QString &name, const QString &value)
00111 {
00112     // handle method call org.kde.KLauncher.setLaunchEnv
00113     static_cast<KLauncher *>(parent())->setLaunchEnv(name, value);
00114 }
00115 
00116 int KLauncherAdaptor::start_service_by_desktop_name(const QString &serviceName, const QStringList &urls, const QStringList &envs, const QString &startup_id, bool blind, const QDBusMessage &msg, QString &dbusServiceName, QString &error, int &pid)
00117 {
00118     // handle method call org.kde.KLauncher.start_service_by_desktop_name
00119     KLauncher *p = static_cast<KLauncher *>(parent());
00120     p->start_service_by_desktop_name(serviceName, urls, envs, startup_id, blind, msg);
00121     dbusServiceName = p->requestResult.dbusName;
00122     error = p->requestResult.error;
00123     pid = p->requestResult.pid;
00124     return p->requestResult.result;
00125 }
00126 
00127 int KLauncherAdaptor::start_service_by_desktop_path(const QString &serviceName, const QStringList &urls, const QStringList &envs, const QString &startup_id, bool blind, const QDBusMessage &msg, QString &dbusServiceName, QString &error, int &pid)
00128 {
00129     // handle method call org.kde.KLauncher.start_service_by_desktop_path
00130     KLauncher *p = static_cast<KLauncher *>(parent());
00131     p->start_service_by_desktop_path(serviceName, urls, envs, startup_id, blind, msg);
00132     dbusServiceName = p->requestResult.dbusName;
00133     error = p->requestResult.error;
00134     pid = p->requestResult.pid;
00135     return p->requestResult.result;
00136 }
00137 
00138 int KLauncherAdaptor::start_service_by_name(const QString &serviceName, const QStringList &urls, const QStringList &envs, const QString &startup_id, bool blind, const QDBusMessage &msg, QString &dbusServiceName, QString &error, int &pid)
00139 {
00140     // handle method call org.kde.KLauncher.start_service_by_name
00141     KLauncher *p = static_cast<KLauncher *>(parent());
00142     p->start_service_by_name(serviceName, urls, envs, startup_id, blind, msg);
00143     dbusServiceName = p->requestResult.dbusName;
00144     error = p->requestResult.error;
00145     pid = p->requestResult.pid;
00146     return p->requestResult.result;
00147 }
00148 
00149 void KLauncherAdaptor::waitForSlave(int pid, const QDBusMessage &msg)
00150 {
00151     // handle method call org.kde.KLauncher.waitForSlave
00152     static_cast<KLauncher *>(parent())->waitForSlave(pid, msg);
00153 }
00154 
00155 void KLauncherAdaptor::terminate_kdeinit()
00156 {
00157     KLauncher *p = static_cast<KLauncher *>(parent());
00158     p->terminate_kdeinit();
00159 }
00160 
00161 #include "klauncher_adaptor.moc"

KInit

Skip menu "KInit"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal