KInit
#include <klauncher.h>
|
| KLauncher () |
|
| ~KLauncher () |
|
void | autoStart (int phase=1) |
|
bool | checkForHeldSlave (const QString &url) |
|
void | close () |
|
void | exec_blind (const QString &name, const QStringList &arg_list) |
|
void | exec_blind (const QString &name, const QStringList &arg_list, const QStringList &envs, const QString &startup_id) |
|
bool | kdeinit_exec (const QString &app, const QStringList &args, const QString &workdir, const QStringList &envs, const QString &startup_id, bool wait, const QDBusMessage &msg) |
|
void | reparseConfiguration () |
|
pid_t | requestHoldSlave (const KUrl &url, const QString &app_socket) |
|
pid_t | requestSlave (const QString &protocol, const QString &host, const QString &app_socket, QString &error) |
|
void | setLaunchEnv (const QString &name, const QString &value) |
|
bool | start_service_by_desktop_name (const QString &serviceName, const QStringList &urls, const QStringList &envs, const QString &startup_id, bool blind, const QDBusMessage &msg) |
|
bool | start_service_by_desktop_path (const QString &serviceName, const QStringList &urls, const QStringList &envs, const QString &startup_id, bool blind, const QDBusMessage &msg) |
|
bool | start_service_by_name (const QString &serviceName, const QStringList &urls, const QStringList &envs, const QString &startup_id, bool blind, const QDBusMessage &msg) |
|
void | terminate_kdeinit () |
|
void | waitForSlave (int pid, const QDBusMessage &msg) |
|
|
void | cancel_service_startup_info (KLaunchRequest *request, const QByteArray &startup_id, const QStringList &envs) |
|
void | createArgs (KLaunchRequest *request, const KService::Ptr service, const QStringList &url) |
|
void | processDied (pid_t pid, long exitStatus) |
|
void | processRequestReturn (int status, const QByteArray &requestData) |
|
void | queueRequest (KLaunchRequest *) |
|
void | requestDone (KLaunchRequest *request) |
|
void | requestStart (KLaunchRequest *request) |
|
void | send_service_startup_info (KLaunchRequest *request, KService::Ptr service, const QByteArray &startup_id, const QStringList &envs) |
|
bool | start_service (KService::Ptr service, const QStringList &urls, const QStringList &envs, const QByteArray &startup_id, bool blind, bool autoStart, const QDBusMessage &msg) |
|
Definition at line 123 of file klauncher.h.
◆ KLauncher()
◆ ~KLauncher()
KLauncher::~KLauncher |
( |
| ) |
|
◆ acceptSlave
void KLauncher::acceptSlave |
( |
| ) |
|
|
slot |
◆ autoStart()
void KLauncher::autoStart |
( |
int |
phase = 1 | ) |
|
◆ autoStart0Done
void KLauncher::autoStart0Done |
( |
| ) |
|
|
signal |
◆ autoStart1Done
void KLauncher::autoStart1Done |
( |
| ) |
|
|
signal |
◆ autoStart2Done
void KLauncher::autoStart2Done |
( |
| ) |
|
|
signal |
◆ cancel_service_startup_info()
void KLauncher::cancel_service_startup_info |
( |
KLaunchRequest * |
request, |
|
|
const QByteArray & |
startup_id, |
|
|
const QStringList & |
envs |
|
) |
| |
|
protected |
◆ checkForHeldSlave()
bool KLauncher::checkForHeldSlave |
( |
const QString & |
url | ) |
|
Return true of there is a slave held for url
.
- Since
- 4.7
Definition at line 1233 of file klauncher.cpp.
◆ close()
void KLauncher::close |
( |
| ) |
|
◆ createArgs()
◆ destruct
void KLauncher::destruct |
( |
| ) |
|
|
slot |
◆ exec_blind() [1/2]
void KLauncher::exec_blind |
( |
const QString & |
name, |
|
|
const QStringList & |
arg_list |
|
) |
| |
|
inline |
◆ exec_blind() [2/2]
void KLauncher::exec_blind |
( |
const QString & |
name, |
|
|
const QStringList & |
arg_list, |
|
|
const QStringList & |
envs, |
|
|
const QString & |
startup_id |
|
) |
| |
Starts a program.
'envs' are environment variables that will be added to this program's environment before starting it 'startup_id' is for application startup notification, "" is the default, "0" for none
Definition at line 726 of file klauncher.cpp.
◆ idleTimeout
void KLauncher::idleTimeout |
( |
| ) |
|
|
slot |
◆ kdeinit_exec()
bool KLauncher::kdeinit_exec |
( |
const QString & |
app, |
|
|
const QStringList & |
args, |
|
|
const QString & |
workdir, |
|
|
const QStringList & |
envs, |
|
|
const QString & |
startup_id, |
|
|
bool |
wait, |
|
|
const QDBusMessage & |
msg |
|
) |
| |
◆ processDied()
void KLauncher::processDied |
( |
pid_t |
pid, |
|
|
long |
exitStatus |
|
) |
| |
|
protected |
◆ processRequestReturn()
void KLauncher::processRequestReturn |
( |
int |
status, |
|
|
const QByteArray & |
requestData |
|
) |
| |
|
protected |
◆ queueRequest()
◆ reparseConfiguration()
void KLauncher::reparseConfiguration |
( |
| ) |
|
◆ requestDone()
◆ requestHoldSlave()
pid_t KLauncher::requestHoldSlave |
( |
const KUrl & |
url, |
|
|
const QString & |
app_socket |
|
) |
| |
◆ requestSlave()
pid_t KLauncher::requestSlave |
( |
const QString & |
protocol, |
|
|
const QString & |
host, |
|
|
const QString & |
app_socket, |
|
|
QString & |
error |
|
) |
| |
◆ requestStart()
◆ send_service_startup_info()
void KLauncher::send_service_startup_info |
( |
KLaunchRequest * |
request, |
|
|
KService::Ptr |
service, |
|
|
const QByteArray & |
startup_id, |
|
|
const QStringList & |
envs |
|
) |
| |
|
protected |
◆ setLaunchEnv()
void KLauncher::setLaunchEnv |
( |
const QString & |
name, |
|
|
const QString & |
value |
|
) |
| |
◆ slotAutoStart
void KLauncher::slotAutoStart |
( |
| ) |
|
|
slot |
◆ slotDequeue
void KLauncher::slotDequeue |
( |
| ) |
|
|
slot |
◆ slotFinished
void KLauncher::slotFinished |
( |
int |
exitCode, |
|
|
QProcess::ExitStatus |
exitStatus |
|
) |
| |
|
protectedslot |
◆ slotGotOutput
void KLauncher::slotGotOutput |
( |
| ) |
|
|
protectedslot |
◆ slotKDEInitData
void KLauncher::slotKDEInitData |
( |
int |
| ) |
|
|
slot |
◆ slotNameOwnerChanged
void KLauncher::slotNameOwnerChanged |
( |
const QString & |
name, |
|
|
const QString & |
oldOnwer, |
|
|
const QString & |
newOwner |
|
) |
| |
|
slot |
◆ slotSlaveGone
void KLauncher::slotSlaveGone |
( |
| ) |
|
|
slot |
◆ slotSlaveStatus
void KLauncher::slotSlaveStatus |
( |
IdleSlave * |
slave | ) |
|
|
slot |
◆ start_service()
bool KLauncher::start_service |
( |
KService::Ptr |
service, |
|
|
const QStringList & |
urls, |
|
|
const QStringList & |
envs, |
|
|
const QByteArray & |
startup_id, |
|
|
bool |
blind, |
|
|
bool |
autoStart, |
|
|
const QDBusMessage & |
msg |
|
) |
| |
|
protected |
◆ start_service_by_desktop_name()
bool KLauncher::start_service_by_desktop_name |
( |
const QString & |
serviceName, |
|
|
const QStringList & |
urls, |
|
|
const QStringList & |
envs, |
|
|
const QString & |
startup_id, |
|
|
bool |
blind, |
|
|
const QDBusMessage & |
msg |
|
) |
| |
Start a service by desktop name.
'serviceName' refers to a desktop file describing the service. The service is looked up anywhere in $KDEDIR/applnk and/or $KDEDIR/services. E.g. it should have the form "korganizer".
'url', if not empty, will be passed to the service as argument.
'envs' are environment variables that will be added to this program's environment before starting it
'startup_id' is for application startup notification, "" is the default, "0" for none
Definition at line 799 of file klauncher.cpp.
◆ start_service_by_desktop_path()
bool KLauncher::start_service_by_desktop_path |
( |
const QString & |
serviceName, |
|
|
const QStringList & |
urls, |
|
|
const QStringList & |
envs, |
|
|
const QString & |
startup_id, |
|
|
bool |
blind, |
|
|
const QDBusMessage & |
msg |
|
) |
| |
Start a service by desktop path.
'serviceName' refers to a desktop file describing the service. This may be an absolute path or a path relative to $KDEDIRS/applnk and/or $KDEDIRS/services E.g. it should have the form "Applications/korganizer.desktop" or "/opt/kde/share/applnk/Applications/korganizer.desktop". Note that for absolute paths the restrictions of KDesktopFile::isAuthorizedDesktopFile() are obeyed for security.
'url', if not empty, will be passed to the service as argument.
'envs' are environment variables that will be added to this program's environment before starting it
'startup_id' is for application startup notification, "" is the default, "0" for none
Definition at line 770 of file klauncher.cpp.
◆ start_service_by_name()
bool KLauncher::start_service_by_name |
( |
const QString & |
serviceName, |
|
|
const QStringList & |
urls, |
|
|
const QStringList & |
envs, |
|
|
const QString & |
startup_id, |
|
|
bool |
blind, |
|
|
const QDBusMessage & |
msg |
|
) |
| |
Start a service by (translated) name - deprecated.
'serviceName' refers to the service name as given by· the Name field in the desktop file describing the service.
'url', if not empty, will be passed to the service as argument.
'envs' are environment variables that will be added to this program's environment before starting it
'startup_id' is for application startup notification, "" is the default, "0" for none
- Deprecated:
- use start_service_by_desktop_path
Definition at line 751 of file klauncher.cpp.
◆ terminate_kdeinit()
void KLauncher::terminate_kdeinit |
( |
| ) |
|
◆ waitForSlave()
void KLauncher::waitForSlave |
( |
int |
pid, |
|
|
const QDBusMessage & |
msg |
|
) |
| |
◆ bProcessingQueue
bool KLauncher::bProcessingQueue |
|
protected |
◆ dontBlockReading
bool KLauncher::dontBlockReading |
|
protected |
◆ lastRequest
◆ mAutoStart
◆ mAutoTimer
QTimer KLauncher::mAutoTimer |
|
protected |
◆ mCached_dpy
Display* KLauncher::mCached_dpy |
|
protected |
◆ mConnectionServer
KIO::ConnectionServer KLauncher::mConnectionServer |
|
protected |
◆ mSlaveDebug
QString KLauncher::mSlaveDebug |
|
protected |
◆ mSlaveList
◆ mSlaveValgrind
QString KLauncher::mSlaveValgrind |
|
protected |
◆ mSlaveValgrindSkin
QString KLauncher::mSlaveValgrindSkin |
|
protected |
◆ mSlaveWaitRequest
◆ mTimer
◆ requestList
◆ requestQueue
◆ requestResult
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.