/***************************************************************************
- * Copyright (C) 2005-2015 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef SQLAUTHENTICATOR_H
-#define SQLAUTHENTICATOR_H
+#pragma once
#include "authenticator.h"
Q_OBJECT
public:
- SqlAuthenticator(QObject *parent = 0);
- virtual ~SqlAuthenticator();
+ SqlAuthenticator(QObject *parent = nullptr);
+ ~SqlAuthenticator() override;
public slots:
/* General */
- bool isAvailable() const;
- QString displayName() const;
- QString description() const;
- virtual inline QStringList setupKeys() const { return QStringList(); }
- virtual inline QVariantMap setupDefaults() const { return QVariantMap(); }
-
- bool setup(const QVariantMap &settings = QVariantMap());
- State init(const QVariantMap &settings = QVariantMap());
- UserId validateUser(const QString &user, const QString &password);
-
- /* User handling */
- //virtual UserId getUserId(const QString &username);
+ bool isAvailable() const override;
+ QString backendId() const override;
+ QString displayName() const override;
+ QString description() const override;
+ inline QVariantList setupData() const override { return {}; }
-};
+ inline bool canChangePassword() const override { return true; }
+ bool setup(const QVariantMap &settings, const QProcessEnvironment &environment,
+ bool loadFromEnvironment) override;
+ State init(const QVariantMap &settings, const QProcessEnvironment &environment,
+ bool loadFromEnvironment) override;
+ UserId validateUser(const QString &user, const QString &password) override;
-#endif
+ /* User handling */
+ //virtual UserId getUserId(const QString &username);
+};