50 bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()); |
50 bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()); |
51 bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()); |
51 bool insertRows(int row, int count, const QModelIndex &parent = QModelIndex()); |
52 |
52 |
53 public: |
53 public: |
54 // removing and adding groups |
54 // removing and adding groups |
55 void removeGroup(int localId); |
55 bool removeGroup(int localId); |
56 void addGroup(int localId); |
56 void addGroup(int localId); |
57 |
57 |
58 // extension (plugin) group handling |
58 // extension (plugin) group handling |
59 bool isExtensionGroup(const QModelIndex &index); |
59 bool isExtensionGroup(const QModelIndex &index); |
60 CntViewParameters extensionGroupActivated(int row); |
60 CntViewParameters extensionGroupActivated(int row); |
72 QVariant decorationRoleData(const CntCollectionItem& item) const; |
72 QVariant decorationRoleData(const CntCollectionItem& item) const; |
73 |
73 |
74 bool validateRowIndex(const int index) const; |
74 bool validateRowIndex(const int index) const; |
75 |
75 |
76 private slots: |
76 private slots: |
77 void informationUpdated(int id, const QString& secondRowText, int memberCount); |
77 void informationUpdated(int id, const QString& secondRowText, const QList<int>& members); |
78 void onIconReady(const QPixmap& pixmap, void *data, int id, int error); |
78 void onIconReady(const QPixmap& pixmap, void *data, int id, int error); |
79 void extensionGroupsReady(); |
79 void extensionGroupsReady(); |
|
80 |
|
81 void handleAdded(const QList<QContactLocalId>& contactIds); |
|
82 void handleRemoved(const QList<QContactLocalId>& contactIds); |
|
83 void handleChanged(const QList<QContactLocalId>& contactIds); |
|
84 void handleAddedRelationship(const QList<QContactLocalId>& contactIds); |
|
85 void handleRemovedRelationship(const QList<QContactLocalId>& contactIds); |
|
86 |
|
87 signals: |
|
88 void groupCountChanged(); |
80 |
89 |
81 private: |
90 private: |
82 QSharedDataPointer<CntCollectionListModelData> d; |
91 QSharedDataPointer<CntCollectionListModelData> d; |
83 CntCollectionListModelWorker *mThread; |
92 CntCollectionListModelWorker *mThread; |
84 XQSettingsManager mSettings; |
93 XQSettingsManager mSettings; |