X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=5a125a4f0f25585c341530b035385c2978863cd2;hb=06604248cf2bbf3a1dd3c10a06da2a3868f8e8d2;hp=19d6541f3fbb1091c82d718e70d967becdf4e9ab;hpb=8ec76e512d20ce5d1dc76de556bb98a06b75d695;p=quassel.git diff --git a/src/core/core.h b/src/core/core.h index 19d6541f..5a125a4f 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -26,8 +26,14 @@ #include #include #include -#include + +#ifndef QT_NO_OPENSSL +#include +#include "sslserver.h" +#else #include +#include +#endif #include "bufferinfo.h" #include "message.h" @@ -201,17 +207,14 @@ class Core : public QObject { */ static QList requestMsgRange(UserId user, BufferId buffer, int first, int last); - //! Request a list of all buffers known to a user since a certain point in time. + //! Request a list of all buffers known to a user. /** This method is used to get a list of all buffers we have stored a backlog from. - * Optionally, a QDateTime can be given, so that only buffers are listed that were active - * since that point in time. * \note This method is threadsafe. * * \param user The user whose buffers we request - * \param since If this is defined, older buffers will be ignored * \return A list of the BufferInfos for all buffers as requested */ - static QList requestBuffers(UserId user, QDateTime since = QDateTime()); + static QList requestBuffers(UserId user); //! Remove permanently a buffer and it's content from the storage backend /** This call cannot be reverted! @@ -270,6 +273,11 @@ class Core : public QObject { bool initStorage(QVariantMap dbSettings, bool setup = false); +#ifndef QT_NO_OPENSSL + void sslErrors(const QList &errors); +#endif + void socketError(QAbstractSocket::SocketError); + private: Core(); ~Core(); @@ -289,7 +297,12 @@ class Core : public QObject { Storage *storage; QTimer _storageSyncTimer; - QTcpServer server; // TODO: implement SSL +#ifndef QT_NO_OPENSSL + SslServer server; +#else + QTcpServer server; +#endif + QHash blocksizes; QHash clientInfo;