diff -r 7cddc9201a1d -r b2006a9f0fbc QTfrontend/chatwidget.h --- a/QTfrontend/chatwidget.h Sat Jan 29 21:16:09 2011 +0100 +++ b/QTfrontend/chatwidget.h Sun Jan 30 06:56:12 2011 +0100 @@ -37,8 +37,16 @@ class ListWidgetNickItem : public QListWidgetItem { public: - ListWidgetNickItem(const QString& nick); + ListWidgetNickItem(const QString& nick, bool isFriend, bool isIgnored); bool operator<(const QListWidgetItem & other) const; + void setFriend(bool isFriend); + void setIgnored(bool isIgnored); + bool isFriend(); + bool ignored(); + +private: + bool aFriend; + bool isIgnored; }; class HWChatWidget : public QWidget @@ -54,8 +62,8 @@ private: void loadList(QStringList & list, const QString & file); void saveList(QStringList & list, const QString & file); - void updateIcon(QListWidgetItem *item); - void updateIcons(); + void updateNickItem(QListWidgetItem *item); + void updateNickItems(); public slots: void onChatString(const QString& str);