+void IrcUser::setRealName(const QString &realName) {
+ if (!realName.isEmpty() && _realName != realName) {
+ _realName = realName;
+ emit realNameSet(realName);
+ }
+}
+
+void IrcUser::setAway(const bool &away) {
+ if(away != _away) {
+ _away = away;
+ emit awaySet(away);
+ }
+}
+
+void IrcUser::setAwayMessage(const QString &awayMessage) {
+ if(!awayMessage.isEmpty() && _awayMessage != awayMessage) {
+ _awayMessage = awayMessage;
+ emit awayMessageSet(awayMessage);
+ }
+}
+
+void IrcUser::setIdleTime(const QDateTime &idleTime) {
+ if(idleTime.isValid() && _idleTime != idleTime) {
+ _idleTime = idleTime;
+ _idleTimeSet = QDateTime::currentDateTime();
+ emit idleTimeSet(idleTime);
+ }
+}
+
+void IrcUser::setLoginTime(const QDateTime &loginTime) {
+ if(loginTime.isValid() && _loginTime != loginTime) {
+ _loginTime = loginTime;
+ emit loginTimeSet(loginTime);
+ }
+}
+
+void IrcUser::setServer(const QString &server) {
+ if(!server.isEmpty() && _server != server) {
+ _server = server;
+ emit serverSet(server);
+ }
+}
+
+void IrcUser::setIrcOperator(const QString &ircOperator) {
+ if(!ircOperator.isEmpty() && _ircOperator != ircOperator) {
+ _ircOperator = ircOperator;
+ emit ircOperatorSet(ircOperator);
+ }
+}
+
+void IrcUser::setLastAwayMessage(const int &lastAwayMessage) {
+ if(lastAwayMessage > _lastAwayMessage) {
+ _lastAwayMessage = lastAwayMessage;
+ emit lastAwayMessageSet(lastAwayMessage);
+ }
+}
+