-void IrcUser::setNick(const QString &nick) {
- if(!nick.isEmpty() && nick != _nick) {
- QString oldnick(_nick);
- _nick = nick;
- updateObjectName();
- emit nickSet(nick);
- }
+
+void IrcUser::setLastAwayMessage(const int &lastAwayMessage)
+{
+ if (lastAwayMessage > _lastAwayMessage) {
+ _lastAwayMessage = lastAwayMessage;
+ SYNC(ARG(lastAwayMessage))
+ }
+}
+
+
+void IrcUser::setHost(const QString &host)
+{
+ if (!host.isEmpty() && _host != host) {
+ _host = host;
+ SYNC(ARG(host))
+ }
+}
+
+
+void IrcUser::setNick(const QString &nick)
+{
+ if (!nick.isEmpty() && nick != _nick) {
+ _nick = nick;
+ updateObjectName();
+ SYNC(ARG(nick))
+ emit nickSet(nick);
+ }
+}
+
+
+void IrcUser::setWhoisServiceReply(const QString &whoisServiceReply)
+{
+ if (!whoisServiceReply.isEmpty() && whoisServiceReply != _whoisServiceReply) {
+ _whoisServiceReply = whoisServiceReply;
+ SYNC(ARG(whoisServiceReply))
+ }
+}
+
+
+void IrcUser::setSuserHost(const QString &suserHost)
+{
+ if (!suserHost.isEmpty() && suserHost != _suserHost) {
+ _suserHost = suserHost;
+ SYNC(ARG(suserHost))
+ }
+}
+
+
+void IrcUser::setEncrypted(bool encrypted)
+{
+ _encrypted = encrypted;
+ emit encryptedSet(encrypted);
+ SYNC(ARG(encrypted))