File indexing completed on 2024-05-12 05:21:08

0001 /**
0002  * This file is part of the kpimutils library.
0003  *
0004  * SPDX-FileCopyrightText: 2008 Jarosław Staniek <staniek@kde.org>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-or-later
0007  */
0008 /**
0009   @file
0010   This file is part of the KDEPIM Utilities library and provides
0011   static methods for process handling.
0012 
0013   @brief
0014   Process handling methods.
0015 
0016   @author Jarosław Staniek \<staniek@kde.org\>
0017 */
0018 
0019 #pragma once
0020 
0021 #include "kontactinterface_export.h"
0022 
0023 #include <QList>
0024 
0025 class QString;
0026 
0027 namespace KontactInterface
0028 {
0029 #ifdef Q_OS_WIN
0030 /**
0031  * Sets @a pids to a list of processes having name @a processName.
0032  */
0033 KONTACTINTERFACE_EXPORT void getProcessesIdForName(const QString &processName, QList<int> &pids);
0034 
0035 /**
0036  * Activates window for first found process with executable @a executableName
0037  * (without path and .exe extension)
0038  */
0039 KONTACTINTERFACE_EXPORT void activateWindowForProcess(const QString &executableName);
0040 #endif
0041 
0042 }