#include <klauncher.h>

Public Slots | |
| void | acceptSlave () |
| void | destruct () |
| void | idleTimeout () |
| void | slotAutoStart () |
| void | slotDequeue () |
| void | slotKDEInitData (int) |
| void | slotNameOwnerChanged (const QString &name, const QString &oldOnwer, const QString &newOwner) |
| void | slotSlaveGone () |
| void | slotSlaveStatus (IdleSlave *) |
Signals | |
| void | autoStart0Done () |
| void | autoStart1Done () |
| void | autoStart2Done () |
Public Member Functions | |
| KLauncher () | |
| ~KLauncher () | |
| void | autoStart (int phase=1) |
| bool | checkForHeldSlave (const QString &url) |
| void | close () |
| void | exec_blind (const QString &name, const QStringList &arg_list, const QStringList &envs, const QString &startup_id) |
| void | exec_blind (const QString &name, const QStringList &arg_list) |
| 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) |
Public Attributes | |
| serviceResult | requestResult |
Protected Slots | |
| void | slotFinished (int exitCode, QProcess::ExitStatus exitStatus) |
| void | slotGotOutput () |
Protected Member Functions | |
| 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) |
Protected Attributes | |
| bool | bProcessingQueue |
| bool | dontBlockReading |
| KLaunchRequest * | lastRequest |
| AutoStart | mAutoStart |
| QTimer | mAutoTimer |
| Display * | mCached_dpy |
| KIO::ConnectionServer | mConnectionServer |
| QString | mSlaveDebug |
| QList< IdleSlave * > | mSlaveList |
| QString | mSlaveValgrind |
| QString | mSlaveValgrindSkin |
| QList< SlaveWaitRequest * > | mSlaveWaitRequest |
| QTimer | mTimer |
| QList< KLaunchRequest * > | requestList |
| QList< KLaunchRequest * > | requestQueue |
Constructor & Destructor Documentation
| KLauncher::KLauncher | ( | ) |
Definition at line 179 of file klauncher.cpp.
| KLauncher::~KLauncher | ( | ) |
Definition at line 239 of file klauncher.cpp.
Member Function Documentation
| void KLauncher::acceptSlave | ( | ) | [slot] |
Definition at line 1233 of file klauncher.cpp.
| void KLauncher::autoStart | ( | int | phase = 1 | ) |
Definition at line 505 of file klauncher.cpp.
| void KLauncher::autoStart0Done | ( | ) | [signal] |
| void KLauncher::autoStart1Done | ( | ) | [signal] |
| void KLauncher::autoStart2Done | ( | ) | [signal] |
| void KLauncher::cancel_service_startup_info | ( | KLaunchRequest * | request, |
| const QByteArray & | startup_id, | ||
| const QStringList & | envs | ||
| ) | [protected] |
Definition at line 950 of file klauncher.cpp.
| bool KLauncher::checkForHeldSlave | ( | const QString & | url | ) |
Return true of there is a slave held for url.
- Since:
- 4.7
Definition at line 1207 of file klauncher.cpp.
| void KLauncher::close | ( | ) |
Definition at line 245 of file klauncher.cpp.
| void KLauncher::createArgs | ( | KLaunchRequest * | request, |
| const KService::Ptr | service, | ||
| const QStringList & | url | ||
| ) | [protected] |
Definition at line 1051 of file klauncher.cpp.
| void KLauncher::destruct | ( | ) | [slot] |
Definition at line 257 of file klauncher.cpp.
| 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 709 of file klauncher.cpp.
| void KLauncher::exec_blind | ( | const QString & | name, |
| const QStringList & | arg_list | ||
| ) | [inline] |
Definition at line 177 of file klauncher.h.
| void KLauncher::idleTimeout | ( | ) | [slot] |
Definition at line 1275 of file klauncher.cpp.
| 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 | ||
| ) |
Definition at line 982 of file klauncher.cpp.
| void KLauncher::processDied | ( | pid_t | pid, |
| long | exitStatus | ||
| ) | [protected] |
Definition at line 392 of file klauncher.cpp.
| void KLauncher::processRequestReturn | ( | int | status, |
| const QByteArray & | requestData | ||
| ) | [protected] |
Definition at line 348 of file klauncher.cpp.
| void KLauncher::queueRequest | ( | KLaunchRequest * | request | ) | [protected] |
Definition at line 1019 of file klauncher.cpp.
| void KLauncher::reparseConfiguration | ( | ) |
Definition at line 1291 of file klauncher.cpp.
| void KLauncher::requestDone | ( | KLaunchRequest * | request | ) | [protected] |
Definition at line 550 of file klauncher.cpp.
| pid_t KLauncher::requestHoldSlave | ( | const KUrl & | url, |
| const QString & | app_socket | ||
| ) |
Definition at line 1067 of file klauncher.cpp.
| pid_t KLauncher::requestSlave | ( | const QString & | protocol, |
| const QString & | host, | ||
| const QString & | app_socket, | ||
| QString & | error | ||
| ) |
Definition at line 1088 of file klauncher.cpp.
| void KLauncher::requestStart | ( | KLaunchRequest * | request | ) | [protected] |
Definition at line 623 of file klauncher.cpp.
| void KLauncher::send_service_startup_info | ( | KLaunchRequest * | request, |
| KService::Ptr | service, | ||
| const QByteArray & | startup_id, | ||
| const QStringList & | envs | ||
| ) | [protected] |
Definition at line 898 of file klauncher.cpp.
| void KLauncher::setLaunchEnv | ( | const QString & | name, |
| const QString & | value | ||
| ) |
Definition at line 265 of file klauncher.cpp.
| void KLauncher::slotAutoStart | ( | ) | [slot] |
Definition at line 516 of file klauncher.cpp.
| void KLauncher::slotDequeue | ( | ) | [slot] |
Definition at line 1030 of file klauncher.cpp.
| void KLauncher::slotFinished | ( | int | exitCode, |
| QProcess::ExitStatus | exitStatus | ||
| ) | [protected, slot] |
Definition at line 1310 of file klauncher.cpp.
| void KLauncher::slotGotOutput | ( | ) | [protected, slot] |
Definition at line 1300 of file klauncher.cpp.
| void KLauncher::slotKDEInitData | ( | int | ) | [slot] |
Definition at line 325 of file klauncher.cpp.
| void KLauncher::slotNameOwnerChanged | ( | const QString & | name, |
| const QString & | oldOnwer, | ||
| const QString & | newOwner | ||
| ) | [slot] |
Definition at line 450 of file klauncher.cpp.
| void KLauncher::slotSlaveGone | ( | ) | [slot] |
Definition at line 1264 of file klauncher.cpp.
| void KLauncher::slotSlaveStatus | ( | IdleSlave * | slave | ) | [slot] |
Definition at line 1248 of file klauncher.cpp.
| 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] |
Definition at line 797 of file klauncher.cpp.
| 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 782 of file klauncher.cpp.
| 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 753 of file klauncher.cpp.
| 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 734 of file klauncher.cpp.
| void KLauncher::terminate_kdeinit | ( | ) |
Definition at line 1339 of file klauncher.cpp.
| void KLauncher::waitForSlave | ( | int | pid, |
| const QDBusMessage & | msg | ||
| ) |
Definition at line 1218 of file klauncher.cpp.
Member Data Documentation
bool KLauncher::bProcessingQueue [protected] |
Definition at line 284 of file klauncher.h.
bool KLauncher::dontBlockReading [protected] |
Definition at line 289 of file klauncher.h.
KLaunchRequest* KLauncher::lastRequest [protected] |
Definition at line 274 of file klauncher.h.
AutoStart KLauncher::mAutoStart [protected] |
Definition at line 285 of file klauncher.h.
QTimer KLauncher::mAutoTimer [protected] |
Definition at line 283 of file klauncher.h.
Display* KLauncher::mCached_dpy [protected] |
Definition at line 291 of file klauncher.h.
KIO::ConnectionServer KLauncher::mConnectionServer [protected] |
Definition at line 280 of file klauncher.h.
QString KLauncher::mSlaveDebug [protected] |
Definition at line 286 of file klauncher.h.
QList<IdleSlave*> KLauncher::mSlaveList [protected] |
Definition at line 281 of file klauncher.h.
QString KLauncher::mSlaveValgrind [protected] |
Definition at line 287 of file klauncher.h.
QString KLauncher::mSlaveValgrindSkin [protected] |
Definition at line 288 of file klauncher.h.
QList<SlaveWaitRequest*> KLauncher::mSlaveWaitRequest [protected] |
Definition at line 275 of file klauncher.h.
QTimer KLauncher::mTimer [protected] |
Definition at line 282 of file klauncher.h.
QList<KLaunchRequest*> KLauncher::requestList [protected] |
Definition at line 272 of file klauncher.h.
QList<KLaunchRequest*> KLauncher::requestQueue [protected] |
Definition at line 273 of file klauncher.h.
Definition at line 270 of file klauncher.h.
The documentation for this class was generated from the following files:
KDE 4.7 API Reference