projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The Client sends now a heartbeat to the server once per minute.
[quassel.git]
/
src
/
common
/
ircuser.cpp
diff --git
a/src/common/ircuser.cpp
b/src/common/ircuser.cpp
index
e8ccc37
..
223a02f
100644
(file)
--- a/
src/common/ircuser.cpp
+++ b/
src/common/ircuser.cpp
@@
-40,6
+40,7
@@
IrcUser::IrcUser(const QString &hostmask, Network *network)
_server(),
_idleTime(QDateTime::currentDateTime()),
_ircOperator(),
_server(),
_idleTime(QDateTime::currentDateTime()),
_ircOperator(),
+ _lastAwayMessage(0),
_network(network),
_codecForEncoding(0),
_codecForDecoding(0)
_network(network),
_codecForEncoding(0),
_codecForDecoding(0)
@@
-48,7
+49,6
@@
IrcUser::IrcUser(const QString &hostmask, Network *network)
}
IrcUser::~IrcUser() {
}
IrcUser::~IrcUser() {
- //qDebug() << nick() << "destroyed.";
}
// ====================
}
// ====================
@@
-95,6
+95,10
@@
QString IrcUser::ircOperator() const {
return _ircOperator;
}
return _ircOperator;
}
+int IrcUser::lastAwayMessage() const {
+ return _lastAwayMessage;
+}
+
QString IrcUser::userModes() const {
return _userModes;
}
QString IrcUser::userModes() const {
return _userModes;
}
@@
-200,6
+204,13
@@
void IrcUser::setIrcOperator(const QString &ircOperator) {
}
}
}
}
+void IrcUser::setLastAwayMessage(const int &lastAwayMessage) {
+ if(lastAwayMessage > _lastAwayMessage) {
+ _lastAwayMessage = lastAwayMessage;
+ emit lastAwayMessageSet(lastAwayMessage);
+ }
+}
+
void IrcUser::setHost(const QString &host) {
if(!host.isEmpty() && _host != host) {
_host = host;
void IrcUser::setHost(const QString &host) {
if(!host.isEmpty() && _host != host) {
_host = host;
@@
-269,10
+280,8
@@
void IrcUser::partChannel(const QString &channelname) {
void IrcUser::channelDestroyed() {
// private slot!
IrcChannel *channel = static_cast<IrcChannel*>(sender());
void IrcUser::channelDestroyed() {
// private slot!
IrcChannel *channel = static_cast<IrcChannel*>(sender());
- Q_ASSERT(channel);
if(_channels.contains(channel)) {
_channels.remove(channel);
if(_channels.contains(channel)) {
_channels.remove(channel);
- disconnect(channel, 0, this, 0);
}
}
}
}