File indexing completed on 2024-06-23 05:13:46
0001 /* -*- mode: c++; c-basic-offset:4 -*- 0002 commands/setprimaryuseridcommand.h 0003 0004 This file is part of Kleopatra, the KDE keymanager 0005 SPDX-FileCopyrightText: 2022 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 #include "command.h" 0014 0015 namespace GpgME 0016 { 0017 class UserID; 0018 } 0019 0020 namespace Kleo 0021 { 0022 namespace Commands 0023 { 0024 0025 class SetPrimaryUserIDCommand : public Command 0026 { 0027 Q_OBJECT 0028 public: 0029 explicit SetPrimaryUserIDCommand(const GpgME::UserID &userId); 0030 ~SetPrimaryUserIDCommand() override; 0031 0032 private: 0033 void doStart() override; 0034 void doCancel() override; 0035 0036 private: 0037 class Private; 0038 inline Private *d_func(); 0039 inline const Private *d_func() const; 0040 }; 0041 0042 } 0043 }