Mercurial > trustbridge
view ui/processhelp.h @ 757:9bfaced5cf59
(issue56) Do not delete the certificate immediately
When the selection changed the remove cert is triggered by
a slection change event in the certificateitem. Deleting
it immediately would delete the trigger of the call.
Instead we deleteLater so that the widget get's cleaned up
in the next mainloop iteration when it is no longer needed.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 07 Jul 2014 12:54:02 +0200 |
parents | 91dd38a71783 |
children | 20ca94680003 |
line wrap: on
line source
/* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=2) * and comes with ABSOLUTELY NO WARRANTY! * See LICENSE.txt for details. * * Parts of this code (especially windows) are based on kpimutils processes.cpp * available under LGPL 2.1 or later. */ #ifndef PROCESSHELP_H #define PROCESSHELP_H #include <QList> #include <QString> /** * @file Static helper functions for process handling * @brief process handling functions */ namespace ProcessHelp { /** * @brief look up process id's for a processName * * Looks up processes run by the current user. * * @param[in] processName the name of the process to look for * @returns a list of pids that match this process. May be empty */ const QList<int> getProcessesIdForName(const QString &processName); /** * @brief check if another process with the same name exists * * @param[in] processName name of the process to look for. * * @returns true if one or more processes (other than the current process) exist */ bool otherProcessesExist(const QString &processName); /** * @brief Activates the window for first found process * @param [in] executableName executableName (without path and .exe extension) */ void activateWindowForProcess(const QString &executableName); } #endif // PROCESSHELP_H