src: Yearly copyright bump
[quassel.git] / src / core / sqlauthenticator.cpp
index 201fd95..b06e230 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2018 by the Quassel Project                        *
+ *   Copyright (C) 2005-2019 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 
 #include "sqlauthenticator.h"
 
-#include "logmessage.h"
+#include "core.h"
 #include "network.h"
 #include "quassel.h"
 
-#include "core.h"
-
-SqlAuthenticator::SqlAuthenticator(QObject *parent)
+SqlAuthenticator::SqlAuthenticator(QObject* parent)
     : Authenticator(parent)
-{
-}
-
-
-SqlAuthenticator::~SqlAuthenticator()
-{
-}
-
+{}
 
 bool SqlAuthenticator::isAvailable() const
 {
@@ -43,7 +34,6 @@ bool SqlAuthenticator::isAvailable() const
     return true;
 }
 
-
 QString SqlAuthenticator::backendId() const
 {
     // We identify the backend to use for the monolithic core by this identifier.
@@ -52,28 +42,23 @@ QString SqlAuthenticator::backendId() const
     return QString("Database");
 }
 
-
 QString SqlAuthenticator::displayName() const
 {
     return tr("Database");
 }
 
-
 QString SqlAuthenticator::description() const
 {
     return tr("Do not authenticate against any remote service, but instead save a hashed and salted password "
               "in the database selected in the next step.");
 }
 
-
-UserId SqlAuthenticator::validateUser(const QString &user, const QString &password)
+UserId SqlAuthenticator::validateUser(const QString& user, const QString& password)
 {
     return Core::validateUser(user, password);
 }
 
-
-bool SqlAuthenticator::setup(const QVariantMap &settings, const QProcessEnvironment &environment,
-                             bool loadFromEnvironment)
+bool SqlAuthenticator::setup(const QVariantMap& settings, const QProcessEnvironment& environment, bool loadFromEnvironment)
 {
     Q_UNUSED(settings)
     Q_UNUSED(environment)
@@ -81,10 +66,7 @@ bool SqlAuthenticator::setup(const QVariantMap &settings, const QProcessEnvironm
     return true;
 }
 
-
-Authenticator::State SqlAuthenticator::init(const QVariantMap &settings,
-                                            const QProcessEnvironment &environment,
-                                            bool loadFromEnvironment)
+Authenticator::State SqlAuthenticator::init(const QVariantMap& settings, const QProcessEnvironment& environment, bool loadFromEnvironment)
 {
     Q_UNUSED(settings)
     Q_UNUSED(environment)
@@ -93,6 +75,6 @@ Authenticator::State SqlAuthenticator::init(const QVariantMap &settings,
     // TODO: FIXME: this should check if the storage provider is ready, but I don't
     // know if there's an exposed way to do that at the moment.
 
-    quInfo() << qPrintable(backendId()) << "authenticator is ready.";
+    qInfo() << qPrintable(backendId()) << "authenticator is ready.";
     return IsReady;
 }