phoneuis/bubblemanager2/bubblecore/src/bubbleparticipantlistmodel.h
changeset 22 6bb1b21d2484
parent 21 92ab7f8d0eab
child 51 f39ed5e045e0
--- a/phoneuis/bubblemanager2/bubblecore/src/bubbleparticipantlistmodel.h	Fri Mar 19 09:28:42 2010 +0200
+++ b/phoneuis/bubblemanager2/bubblecore/src/bubbleparticipantlistmodel.h	Fri Apr 16 14:58:25 2010 +0300
@@ -34,7 +34,11 @@
     void addParticipant(
         int bubbleId,
         const QString &name,
-        int state );
+        int state,
+        bool ciphering);
+
+    void removeParticipant(
+        int bubbleId);
 
     int bubbleId(int row);
 
@@ -46,6 +50,19 @@
                    int role = Qt::DisplayRole ) const;
 
 private:
+    inline bool isDataChanged(
+        const Participant& participant,
+        const QString &name,
+        int state,
+        bool ciphering) const;
+
+    inline void updateData(
+        Participant& participant,
+        const QString &name,
+        int state,
+        bool ciphering) const;
+
+private:
     QList<Participant*> mParticipants;
 };