/***************************************************************************
- * 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 AUTHHANDLER_H
-#define AUTHHANDLER_H
+#pragma once
+
+#include "common-export.h"
#include <QTcpSocket>
class Peer;
-class AuthHandler : public QObject
+class COMMON_EXPORT AuthHandler : public QObject
{
Q_OBJECT
public:
- AuthHandler(QObject *parent = 0);
+ AuthHandler(QObject *parent = nullptr);
QTcpSocket *socket() const;
private:
void invalidMessage();
- QTcpSocket *_socket; // FIXME: should be a QSharedPointer? -> premature disconnect before the peer has taken over
- bool _disconnectedSent;
+ QTcpSocket *_socket{nullptr}; // FIXME: should be a QSharedPointer? -> premature disconnect before the peer has taken over
+ bool _disconnectedSent{false};
};
-
-#endif