File indexing completed on 2024-04-21 05:50:41
0001 /* 0002 SPDX-FileCopyrightText: 2008-2022 Rolf Eike Beer <kde@opensource.sf-tec.de> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef KGPGADDPHOTO_H 0007 #define KGPGADDPHOTO_H 0008 0009 #include <QObject> 0010 0011 #include "kgpgeditkeytransaction.h" 0012 0013 class QString; 0014 0015 class KGpgAddPhoto: public KGpgEditKeyTransaction { 0016 Q_OBJECT 0017 0018 Q_DISABLE_COPY(KGpgAddPhoto) 0019 public: 0020 explicit KGpgAddPhoto(QObject *parent, const QString &keyid, const QString &imagepath); 0021 ~KGpgAddPhoto() override = default; 0022 0023 void setImagePath(const QString &imagepath); 0024 0025 protected: 0026 bool nextLine(const QString &line) override; 0027 KGpgTransaction::ts_boolanswer boolQuestion(const QString &line) override; 0028 0029 private: 0030 QString m_photourl; 0031 }; 0032 0033 #endif // KGPGADDPHOTO_H