KontactInterface

processes.h
Go to the documentation of this file.
1/**
2 * This file is part of the kpimutils library.
3 *
4 * SPDX-FileCopyrightText: 2008 Jarosław Staniek <staniek@kde.org>
5 *
6 * SPDX-License-Identifier: LGPL-2.1-or-later
7 */
8/**
9 @file
10 This file is part of the KDEPIM Utilities library and provides
11 static methods for process handling.
12
13 @brief
14 Process handling methods.
15
16 @author Jarosław Staniek <staniek@kde.org>
17*/
18
19#pragma once
20
21#include "kontactinterface_export.h"
22
23#include <QList>
24
25class QString;
26
27namespace KontactInterface
28{
29#ifdef Q_OS_WIN
30/**
31 * Sets @a pids to a list of processes having name @a processName.
32 */
33KONTACTINTERFACE_EXPORT void getProcessesIdForName(const QString &processName, QList<int> &pids);
34
35/**
36 * Activates window for first found process with executable @a executableName
37 * (without path and .exe extension)
38 */
39KONTACTINTERFACE_EXPORT void activateWindowForProcess(const QString &executableName);
40#endif
41
42}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.