X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fsessionthread.h;h=c215590f5498771e4782168f6167bd1a35b672f4;hb=f12d6496251729f7d21f4fbcb0814dec7fba4b75;hp=aacefcebaf0764f5d296ff9f28733927ddcfd1f5;hpb=0e1b154f362e13c2c9009f842e3fd6d8e7c346fc;p=quassel.git diff --git a/src/core/sessionthread.h b/src/core/sessionthread.h index aacefceb..c215590f 100644 --- a/src/core/sessionthread.h +++ b/src/core/sessionthread.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 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 * @@ -27,8 +27,8 @@ #include "types.h" class CoreSession; -class InternalConnection; -class RemoteConnection; +class InternalPeer; +class RemotePeer; class QIODevice; class SessionThread : public QThread @@ -36,7 +36,7 @@ class SessionThread : public QThread Q_OBJECT public: - SessionThread(UserId user, bool restoreState, QObject *parent = 0); + SessionThread(UserId user, bool restoreState, bool strictIdentEnabled, QObject *parent = 0); ~SessionThread(); void run(); @@ -54,8 +54,8 @@ signals: void initialized(); void shutdown(); - void addRemoteClient(RemoteConnection *); - void addInternalClient(InternalConnection *); + void addRemoteClient(RemotePeer *peer); + void addInternalClient(InternalPeer *peer); private: CoreSession *_session; @@ -64,10 +64,13 @@ private: bool _sessionInitialized; bool _restoreState; + /// Whether or not strict ident mode is enabled, locking users' idents to Quassel username + bool _strictIdentEnabled; + bool isSessionInitialized(); void addClientToSession(QObject *peer); - void addRemoteClientToSession(RemoteConnection *connection); - void addInternalClientToSession(InternalConnection *client); + void addRemoteClientToSession(RemotePeer *remotePeer); + void addInternalClientToSession(InternalPeer *internalPeer); };