QtAutoUpdater  3.0.0
A Qt library to automatically check for updates and install them
adminauthoriser.h
1 #ifndef QTAUTOUPDATER_ADMINAUTHORISER_H
2 #define QTAUTOUPDATER_ADMINAUTHORISER_H
3 
4 #include "QtAutoUpdaterCore/qtautoupdatercore_global.h"
5 
6 #include <QtCore/qstring.h>
7 #include <QtCore/qstringlist.h>
8 
10 {
11 
13 Q_AUTOUPDATERCORE_EXPORT bool needsAdminPermission(const QString &program);
15 Q_AUTOUPDATERCORE_EXPORT bool executeAsAdmin(const QString &program,
16  const QStringList &arguments,
17  const QString &workingDir);
18 
19 }
20 
21 #endif // QTAUTOUPDATER_ADMINAUTHORISER_H
QtAutoUpdater::AdminAuthoriser
Methods to run applications as authorized user (admin/root)
Definition: adminauthoriser.h:9
QtAutoUpdater::AdminAuthoriser::needsAdminPermission
Q_AUTOUPDATERCORE_EXPORT bool needsAdminPermission(const QString &program)
Tries to find out if the given executable needs to be run as priviledged user.
QString
QtAutoUpdater::AdminAuthoriser::executeAsAdmin
Q_AUTOUPDATERCORE_EXPORT bool executeAsAdmin(const QString &program, const QStringList &arguments, const QString &workingDir)
Prompts the user to execute the given executable as priviledged user.
QStringList