| 1 |
/****************************************************************************** |
| 2 |
This source file is part of the Avogadro project. |
| 3 |
This source code is released under the 3-Clause BSD License, (see "LICENSE"). |
| 4 |
******************************************************************************/ |
| 5 |
|
| 6 |
#ifndef AVOGADRO_QTGUI_UTILITIES_H |
| 7 |
#define AVOGADRO_QTGUI_UTILITIES_H |
| 8 |
|
| 9 |
#include "avogadroqtguiexport.h" |
| 10 |
|
| 11 |
#include <QtCore/QString> |
| 12 |
|
| 13 |
namespace Avogadro { |
| 14 |
namespace QtGui { |
| 15 |
namespace Utilities { |
| 16 |
|
| 17 |
AVOGADROQTGUI_EXPORT QString libraryDirectory(); |
| 18 |
AVOGADROQTGUI_EXPORT QString dataDirectory(); |
| 19 |
//! \return a fully-qualified path for a program or an empty string if not found |
| 20 |
AVOGADROQTGUI_EXPORT QString findExecutablePath(QString program); |
| 21 |
//! \return a list of all fully-qualified paths for programs that are found |
| 22 |
AVOGADROQTGUI_EXPORT QStringList findExecutablePaths(QStringList programs); |
| 23 |
|
| 24 |
} // namespace Utilities |
| 25 |
} // namespace QtGui |
| 26 |
} // namespace Avogadro |
| 27 |
|
| 28 |
#endif // AVOGADRO_QTGUI_UTILITIES_H |