equal
deleted
inserted
replaced
69 |
69 |
70 class CntEditViewListModel : public QAbstractListModel |
70 class CntEditViewListModel : public QAbstractListModel |
71 { |
71 { |
72 Q_OBJECT |
72 Q_OBJECT |
73 public: |
73 public: |
74 CntEditViewListModel( QContact& aContact ); // ownership not transferred |
74 CntEditViewListModel( QContact& aContact, CntExtensionManager& aExtensions ); // ownership not transferred |
75 ~CntEditViewListModel(); |
75 ~CntEditViewListModel(); |
76 |
76 |
77 public: // From QAbstractListModel |
77 public: // From QAbstractListModel |
78 int rowCount( const QModelIndex& aParent = QModelIndex() ) const; |
78 int rowCount( const QModelIndex& aParent = QModelIndex() ) const; |
79 QVariant data( const QModelIndex& aIndex, int aRole = Qt::DisplayRole ) const; |
79 QVariant data( const QModelIndex& aIndex, int aRole = Qt::DisplayRole ) const; |
97 void removeItem( KLookupKey aKey ); |
97 void removeItem( KLookupKey aKey ); |
98 void insertSeparator(); |
98 void insertSeparator(); |
99 |
99 |
100 private: |
100 private: |
101 QList<CntEditViewItem*> mItemList; |
101 QList<CntEditViewItem*> mItemList; |
102 CntExtensionManager* mManager; |
102 CntExtensionManager& mManager; |
103 CntEditViewItemBuilder* mBuilder; |
103 CntEditViewItemBuilder* mBuilder; |
104 CntEditViewItem* mSeparator; |
104 CntEditViewItem* mSeparator; |
105 QContact& mContact; |
105 QContact& mContact; |
106 |
106 |
107 QMap<KLookupKey, int> mLookupTable; |
107 QMap<KLookupKey, int> mLookupTable; |