projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang-tidy: Avoid potential memory leak in QtUi
[quassel.git]
/
src
/
core
/
sessionthread.h
diff --git
a/src/core/sessionthread.h
b/src/core/sessionthread.h
index
7540263
..
c215590
100644
(file)
--- a/
src/core/sessionthread.h
+++ b/
src/core/sessionthread.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-201
2
by the Quassel Project *
+ * Copyright (C) 2005-201
8
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-27,15
+27,16
@@
#include "types.h"
class CoreSession;
#include "types.h"
class CoreSession;
+class InternalPeer;
+class RemotePeer;
class QIODevice;
class QIODevice;
-class SignalProxy;
class SessionThread : public QThread
{
Q_OBJECT
public:
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();
~SessionThread();
void run();
@@
-53,8
+54,8
@@
signals:
void initialized();
void shutdown();
void initialized();
void shutdown();
- void addRemoteClient(
QIODevice *
);
- void addInternalClient(
SignalProxy *
);
+ void addRemoteClient(
RemotePeer *peer
);
+ void addInternalClient(
InternalPeer *peer
);
private:
CoreSession *_session;
private:
CoreSession *_session;
@@
-63,10
+64,13
@@
private:
bool _sessionInitialized;
bool _restoreState;
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);
bool isSessionInitialized();
void addClientToSession(QObject *peer);
- void addRemoteClientToSession(
QIODevice *socket
);
- void addInternalClientToSession(
SignalProxy *proxy
);
+ void addRemoteClientToSession(
RemotePeer *remotePeer
);
+ void addInternalClientToSession(
InternalPeer *internalPeer
);
};
};