X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=a9ede2e36ab46d576b097a5658eec4599f5647f5;hb=67e4eb295238453c94da41185bcdb20d908859d6;hp=0814e7c2f6825d21236084876381130221b0c9ad;hpb=b9169a652a6854b3fa85aee8f833cb9e18a8d510;p=quassel.git diff --git a/src/core/core.h b/src/core/core.h index 0814e7c2..a9ede2e3 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -672,6 +672,14 @@ public: static inline QDateTime startTime() { return instance()->_startTime; } static inline bool isConfigured() { return instance()->_configured; } + + /** + * Whether or not strict ident mode is enabled, locking users' idents to Quassel username + * + * @return True if strict mode enabled, otherwise false + */ + static inline bool strictIdentEnabled() { return instance()->_strictIdentEnabled; } + static bool sslSupported(); /** @@ -718,8 +726,12 @@ private slots: void incomingConnection(); void clientDisconnected(); - bool initStorage(const QString &backend, const QVariantMap &settings, bool setup = false); - bool initAuthenticator(const QString &backend, const QVariantMap &settings, bool setup = false); + bool initStorage(const QString &backend, const QVariantMap &settings, + const QProcessEnvironment &environment, bool loadFromEnvironment, + bool setup = false); + bool initAuthenticator(const QString &backend, const QVariantMap &settings, + const QProcessEnvironment &environment, bool loadFromEnvironment, + bool setup = false); void socketError(QAbstractSocket::SocketError err, const QString &errorString); void setupClientSession(RemotePeer *, UserId); @@ -783,6 +795,9 @@ private: bool _configured; + /// Whether or not strict ident mode is enabled, locking users' idents to Quassel username + bool _strictIdentEnabled; + static std::unique_ptr getMigrationReader(Storage *storage); static std::unique_ptr getMigrationWriter(Storage *storage); static void stdInEcho(bool on);