KInit
klauncher_adaptor.h
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 #ifndef KLAUNCHER_ADAPTOR_H_18181148166088 00024 #define KLAUNCHER_ADAPTOR_H_18181148166088 00025 00026 #include <QtCore/QObject> 00027 #include <QtDBus/QtDBus> 00028 template<class T> class QList; 00029 template<class Key, class Value> class QMap; 00030 class QString; 00031 class QStringList; 00032 00033 /* 00034 * Adaptor class for interface org.kde.KLauncher 00035 */ 00036 class KLauncherAdaptor: public QDBusAbstractAdaptor 00037 { 00038 Q_OBJECT 00039 Q_CLASSINFO("D-Bus Interface", "org.kde.KLauncher") 00040 public: 00041 KLauncherAdaptor(QObject *parent); 00042 virtual ~KLauncherAdaptor(); 00043 00044 public: // PROPERTIES 00045 public Q_SLOTS: // METHODS 00046 void autoStart(int phase = 1); 00047 void exec_blind(const QString &name, const QStringList &arg_list); 00048 void exec_blind(const QString &name, const QStringList &arg_list, const QStringList &envs, const QString &startup_id); 00049 int kdeinit_exec(const QString &app, const QStringList &args, const QStringList &env, const QString& startup_id, const QDBusMessage &msg, QString &dbusServiceName, QString &error, int &pid); 00050 int kdeinit_exec_wait(const QString &app, const QStringList &args, const QStringList &env, const QString& startup_id, const QDBusMessage &msg, QString &dbusServiceName, QString &error, int &pid); 00051 int kdeinit_exec_with_workdir(const QString &app, const QStringList &args, const QString& workdir, const QStringList &env, const QString& startup_id, const QDBusMessage &msg, QString &dbusServiceName, QString &error, int &pid); 00052 void reparseConfiguration(); 00053 int requestHoldSlave(const QString &url, const QString &app_socket); 00054 int requestSlave(const QString &protocol, const QString &host, const QString &app_socket, QString &error); 00055 void setLaunchEnv(const QString &name, const QString &value); 00056 int 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); 00057 int 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); 00058 // Deprecated, to be removed in KDE5. 00059 int 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); 00060 void waitForSlave(int pid, const QDBusMessage &msg); 00061 void terminate_kdeinit(); 00062 Q_SIGNALS: // SIGNALS 00063 void autoStart0Done(); 00064 void autoStart1Done(); 00065 void autoStart2Done(); 00066 }; 00067 00068 #endif
KDE 4.6 API Reference