QTfrontend/chatwidget.h
changeset 4884 b2006a9f0fbc
parent 4876 813ef4e8e385
child 4892 b0610081ee95
--- 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);