Updated Russian translation
[lxde/liblxqt.git] / lxqtprogramfinder.h
CommitLineData
49e9d4f2
AM
1/* BEGIN_COMMON_COPYRIGHT_HEADER
2 * (c)LGPL2+
3 *
b9223fe7 4 * LXQt - a lightweight, Qt based, desktop toolset
49e9d4f2
AM
5 * http://razor-qt.org
6 *
7 * Copyright (C) 2013 Alec Moskvin <alecm@gmx.com>
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 *
23 * END_COMMON_COPYRIGHT_HEADER */
24
b6483430
AS
25#ifndef LXQTPROGRAMFINDER_H
26#define LXQTPROGRAMFINDER_H
49e9d4f2 27
e6389bfc 28#include <QStringList>
f9cba1ba
HJYP
29#include "lxqtglobals.h"
30
f05ba5af 31namespace LXQt
13d7ab75 32{
49e9d4f2
AM
33
34namespace ProgramFinder
35{
36 /*!
37 * \brief programExists Checks if the program needed to execute the given
38 * command is installed
39 * \param command
40 * \return True if the program exists
41 */
f9cba1ba 42 LXQT_API bool programExists(const QString& command);
49e9d4f2
AM
43
44 /*!
45 * \brief findPrograms Filters a list of commands (with arguments) based on
46 * which programs are installed
47 * \param commands Commands to check
48 * \return List of commands which are installed
49 */
f9cba1ba 50 LXQT_API QStringList findPrograms(const QStringList& commands);
49e9d4f2
AM
51
52 /*!
53 * \brief programName Returns the program name given a command
54 * \param command
55 * \return
56 */
f9cba1ba 57 LXQT_API QString programName(const QString& command);
49e9d4f2
AM
58}
59
f05ba5af 60} // namespace LXQt
b6483430 61#endif // LXQTPROGRAMFINDER_H