- connect(ircUser, SIGNAL(nickSet(QString)),
- this, SLOT(setNick(QString)));
- connect(ircUser, SIGNAL(awaySet(bool)),
- this, SLOT(setAway(bool)));
-}
-
-QString IrcUserItem::nickName() const {
- if(_ircUser)
- return _ircUser->nick();
- else
- return QString();
-}
-
-bool IrcUserItem::isActive() const {
- if(_ircUser)
- return !_ircUser->isAway();
- else
- return false;
+ connect(ircUser, SIGNAL(destroyed()), this, SLOT(ircUserDestroyed()));
+ connect(ircUser, SIGNAL(nickSet(QString)), this, SLOT(setNick(QString)));
+ connect(ircUser, SIGNAL(awaySet(bool)), this, SLOT(setAway(bool)));