equal
deleted
inserted
replaced
20 |
20 |
21 #include <QAbstractItemModel> |
21 #include <QAbstractItemModel> |
22 |
22 |
23 class HbIcon; |
23 class HbIcon; |
24 class IRQChannelItem; |
24 class IRQChannelItem; |
|
25 class IRSearchResultDB; |
25 |
26 |
26 class IrChannelModel : public QAbstractListModel |
27 class IrChannelModel : public QAbstractListModel |
27 { |
28 { |
28 Q_OBJECT |
29 Q_OBJECT |
29 |
30 |
33 |
34 |
34 int rowCount(const QModelIndex &aParent = QModelIndex()) const; |
35 int rowCount(const QModelIndex &aParent = QModelIndex()) const; |
35 QVariant data(const QModelIndex &aIndex, int aRole = Qt::DisplayRole) const; |
36 QVariant data(const QModelIndex &aIndex, int aRole = Qt::DisplayRole) const; |
36 QString imageUrl(int aRow); |
37 QString imageUrl(int aRow); |
37 void setLogo(HbIcon *aIcon, int aIndex); |
38 void setLogo(HbIcon *aIcon, int aIndex); |
38 |
39 void initWithCache(); |
|
40 void save2Cache(); |
|
41 //not take ownership |
|
42 IRQChannelItem * getChannelItemByIndex(int aIndex); |
|
43 |
39 void clearAndDestroyLogos(); |
44 void clearAndDestroyLogos(); |
40 |
45 |
41 public slots: |
46 public slots: |
42 void updateData(QList<IRQChannelItem*> *aPushItemsList); |
47 void updateData(QList<IRQChannelItem*> *aPushItemsList); |
43 |
48 |
49 |
54 |
50 private: |
55 private: |
51 QList<IRQChannelItem*> *iChannelList; |
56 QList<IRQChannelItem*> *iChannelList; |
52 QMap<int, HbIcon*> iLogos; |
57 QMap<int, HbIcon*> iLogos; |
53 HbIcon *iStationLogo; |
58 HbIcon *iStationLogo; |
|
59 IRSearchResultDB *iDB; |
54 }; |
60 }; |
55 |
61 |
56 #endif |
62 #endif |