* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef IDENTITYEDITWIDGET_H
-#define IDENTITYEDITWIDGET_H
+#pragma once
-#include "ui_identityeditwidget.h"
-#include "ui_nickeditdlg.h"
-
-#ifdef HAVE_SSL
-# include <QSslCertificate>
-# include <QSslKey>
-#endif
+#include <QSslCertificate>
+#include <QSslKey>
#include "clientidentity.h"
+#include "ui_identityeditwidget.h"
+#include "ui_nickeditdlg.h"
+
class IdentityEditWidget : public QWidget
{
Q_OBJECT
void showAdvanced(bool advanced);
protected:
-#ifdef HAVE_SSL
bool eventFilter(QObject* watched, QEvent* event) override;
-#endif
signals:
void requestEditSsl();
void on_nickUp_clicked();
void on_nickDown_clicked();
-#ifdef HAVE_SSL
void on_clearOrLoadKeyButton_clicked();
void on_clearOrLoadCertButton_clicked();
-#endif
void setWidgetStates();
-#ifdef HAVE_SSL
void sslDragEnterEvent(QDragEnterEvent* event);
void sslDropEvent(QDropEvent* event, bool isCert);
-#endif
private:
Ui::IdentityEditWidget ui;
bool _editSsl;
-#ifdef HAVE_SSL
QSslKey keyByFilename(const QString& filename);
void showKeyState(const QSslKey& key);
QSslCertificate certByFilename(const QString& filename);
void showCertState(const QSslCertificate& cert);
-#endif
bool testHasChanged();
};
QString oldNick;
QStringList existing;
};
-
-#endif // IDENTITYEDITWIDGET_H