RabbitCommon
v2.2.6
Loading...
Searching...
No Matches
Src
AdminAuthoriser
adminauthorization_p.h
1
6
#ifndef RABBITCOMMON_ADMINAUTHORIZATION_P_H
7
#define RABBITCOMMON_ADMINAUTHORIZATION_P_H
8
9
#include "adminauthoriser.h"
10
11
namespace
RabbitCommon
12
{
13
14
class
CAdminAuthorization
:
public
CAdminAuthoriser
15
{
16
public
:
17
bool
hasAdminRights
()
override
;
18
bool
executeAsAdmin
(
const
QString &program,
const
QStringList &arguments)
override
;
19
};
20
21
}
22
23
#endif
// RABBITCOMMON_ADMINAUTHORIZATION_P_H
RabbitCommon::CAdminAuthoriser
An interface to run programs with elevated rights.
Definition
adminauthoriser.h:22
RabbitCommon::CAdminAuthorization
Definition
adminauthorization_p.h:15
RabbitCommon::CAdminAuthorization::hasAdminRights
bool hasAdminRights() override
Tests whether this program already has elevated rights or not.
Definition
adminauthorization_dummy.cpp:6
RabbitCommon::CAdminAuthorization::executeAsAdmin
bool executeAsAdmin(const QString &program, const QStringList &arguments) override
Runs a program with the given arguments with elevated rights.
Definition
adminauthorization_dummy.cpp:11
RabbitCommon
Definition
adminauthoriser.h:8
作者:康林 (kl222@126.com)
版权所有(c) 康林工作室 保留所有权力