RabbitCommon v2.2.6
Loading...
Searching...
No Matches
adminauthorization_p.h
1
6#ifndef RABBITCOMMON_ADMINAUTHORIZATION_P_H
7#define RABBITCOMMON_ADMINAUTHORIZATION_P_H
8
9#include "adminauthoriser.h"
10
11namespace RabbitCommon
12{
13
15{
16public:
17 bool hasAdminRights() override;
18 bool executeAsAdmin(const QString &program, const QStringList &arguments) override;
19};
20
21}
22
23#endif // RABBITCOMMON_ADMINAUTHORIZATION_P_H
An interface to run programs with elevated rights.
bool hasAdminRights() override
Tests whether this program already has elevated rights or not.
bool executeAsAdmin(const QString &program, const QStringList &arguments) override
Runs a program with the given arguments with elevated rights.