1 /* 2 SPDX-FileCopyrightText: 2008, 2009 Rolf Eike Beer <kde@opensource.sf-tec.de> 3 SPDX-License-Identifier: GPL-2.0-or-later 4 */ 5 6 #ifndef KGPGADDPHOTO_H 7 #define KGPGADDPHOTO_H 8 9 #include <QObject> 10 11 #include "kgpgeditkeytransaction.h" 12 13 class QString; 14 15 class KGpgAddPhoto: public KGpgEditKeyTransaction { 16 Q_OBJECT 17 18 Q_DISABLE_COPY(KGpgAddPhoto) 19 public: 20 explicit KGpgAddPhoto(QObject *parent, const QString &keyid, const QString &imagepath); 21 ~KGpgAddPhoto() override; 22 23 void setImagePath(const QString &imagepath); 24 25 protected: 26 bool nextLine(const QString &line) override; 27 KGpgTransaction::ts_boolanswer boolQuestion(const QString &line) override; 28 29 private: 30 QString m_photourl; 31 }; 32 33 #endif // KGPGADDPHOTO_H 34