File indexing completed on 2024-06-23 05:14:19
0001 /* 0002 utils/userinfo.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2021 g10 Code GmbH 0006 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de> 0007 0008 SPDX-License-Identifier: GPL-2.0-or-later 0009 */ 0010 0011 #pragma once 0012 0013 class QString; 0014 0015 namespace Kleo 0016 { 0017 /* Tries to obtain the users full name from the 0018 * operating system to be useable for Key creation. */ 0019 QString userFullName(); 0020 0021 /* Tries to obtain the users email from the 0022 * operating system to be useable for Key creation. */ 0023 QString userEmailAddress(); 0024 0025 /* Checks if the user is running with an elevated security 0026 * token. This is only a concept of Windows and returns 0027 * false on other platforms. */ 0028 bool userIsElevated(); 0029 }