/***************************************************************************
- * Copyright (C) 2005-2019 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include <QDateTime>
#include <QPointer>
+#include <QSslSocket>
#include <QString>
#include <QTimer>
#include <QVariant>
-#ifdef HAVE_SSL
-# include <QSslSocket>
-
-# include "sslserver.h"
-#else
-# include <QTcpServer>
-# include <QTcpSocket>
-#endif
-
#include "authenticator.h"
#include "bufferinfo.h"
#include "deferredptr.h"
#include "oidentdconfiggenerator.h"
#include "sessionthread.h"
#include "singleton.h"
+#include "sslserver.h"
#include "storage.h"
#include "types.h"
*/
QString strictSysIdent(UserId user) const;
+ //! Get a Hash of all last message ids
+ /** This Method is called when the Quassel Core is started to restore the lastMsgIds
+ * \note This method is threadsafe.
+ *
+ * \param user The Owner of the buffers
+ */
+ static inline QHash<BufferId, MsgId> bufferLastMsgIds(UserId user) { return instance()->_storage->bufferLastMsgIds(user); }
+
//! Get a Hash of all last seen message ids
/** This Method is called when the Quassel Core is started to restore the lastSeenMsgIds
* \note This method is threadsafe.
QTimer _storageSyncTimer;
-#ifdef HAVE_SSL
SslServer _server, _v6server;
-#else
- QTcpServer _server, _v6server;
-#endif
OidentdConfigGenerator* _oidentdConfigGenerator{nullptr};