aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/keypair_details/KeyPairDetailTab.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ui/keypair_details/KeyPairDetailTab.h')
-rw-r--r--include/ui/keypair_details/KeyPairDetailTab.h101
1 files changed, 0 insertions, 101 deletions
diff --git a/include/ui/keypair_details/KeyPairDetailTab.h b/include/ui/keypair_details/KeyPairDetailTab.h
deleted file mode 100644
index bb364718..00000000
--- a/include/ui/keypair_details/KeyPairDetailTab.h
+++ /dev/null
@@ -1,101 +0,0 @@
-/**
- * This file is part of GPGFrontend.
- *
- * GPGFrontend is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * Foobar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Foobar. If not, see <https://www.gnu.org/licenses/>.
- *
- * The initial version of the source code is inherited from gpg4usb-team.
- * Their source code version also complies with GNU General Public License.
- *
- * The source code version of this software was modified and released
- * by Saturneric<[email protected]><[email protected]> starting on May 12, 2021.
- *
- */
-
-#ifndef GPGFRONTEND_KEYPAIRDETAILTAB_H
-#define GPGFRONTEND_KEYPAIRDETAILTAB_H
-
-#include "GpgFrontend.h"
-#include "gpg/GpgContext.h"
-
-#include "ui/KeyUploadDialog.h"
-#include "ui/KeyServerImportDialog.h"
-#include "KeySetExpireDateDialog.h"
-
-class KeyPairDetailTab : public QWidget {
-Q_OBJECT
-
- /**
- * @details Return QString with a space inserted at every fourth character
- *
- * @param fingerprint The fingerprint to be beautified
- */
- static QString beautifyFingerprint(QString fingerprint);
-
- void createKeyServerOperaMenu();
-
-private slots:
-
- /**
- * @details Export the key to a file, which is choosen in a file dialog
- */
- void slotExportPrivateKey();
-
- /**
- * @details Copy the fingerprint to clipboard
- */
- void slotCopyFingerprint();
-
- void slotModifyEditDatetime();
-
- void slotRefreshKeyInfo();
-
- void slotUploadKeyToServer();
-
- void slotUpdateKeyToServer();
-
- void slotGenRevokeCert();
-
-private:
-
- QString *keyid; /** The id of the key the details should be shown for */
-
- GpgME::GpgContext *mCtx; /** The current gpg-context */
- const GpgKey &mKey;
-
- QGroupBox *ownerBox; /** Groupbox containing owner information */
- QGroupBox *keyBox; /** Groupbox containing key information */
- QGroupBox *fingerprintBox; /** Groupbox containing fingerprint information */
- QGroupBox *additionalUidBox; /** Groupbox containing information about additional uids */
-
- QLabel *nameVarLabel; /** Label containng the keys name */
- QLabel *emailVarLabel; /** Label containng the keys email */
- QLabel *commentVarLabel; /** Label containng the keys commment */
- QLabel *keySizeVarLabel; /** Label containng the keys keysize */
- QLabel *expireVarLabel; /** Label containng the keys expiration date */
- QLabel *createdVarLabel; /** Label containng the keys creation date */
- QLabel *algorithmVarLabel; /** Label containng the keys algorithm */
- QLabel *keyidVarLabel; /** Label containng the keys keyid */
- QLabel *fingerPrintVarLabel; /** Label containng the keys fingerprint */
- QLabel *usageVarLabel;
- QLabel *actualUsageVarLabel;
- QLabel *masterKeyExistVarLabel;
-
- QMenu *keyServerOperaMenu;
-
-public:
- explicit KeyPairDetailTab(GpgME::GpgContext *ctx, const GpgKey &mKey, QWidget *parent = nullptr);
-};
-
-
-#endif //GPGFRONTEND_KEYPAIRDETAILTAB_H