|
|
@ -492,23 +492,25 @@ public slots: |
|
|
|
public: |
|
|
|
public: |
|
|
|
RssManager(bittorrent *BTSession); |
|
|
|
RssManager(bittorrent *BTSession); |
|
|
|
~RssManager(); |
|
|
|
~RssManager(); |
|
|
|
|
|
|
|
static void insertSortElem(QList<RssItem*> &list, RssItem *item) { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void insertSortElem(QList<RssItem*> &list, RssItem *item) { |
|
|
|
|
|
|
|
int i = 0; |
|
|
|
int i = 0; |
|
|
|
while(i < list.size() && item->getDate() < list.at(i)->getDate()) { |
|
|
|
while(i < list.size() && item->getDate() < list.at(i)->getDate()) { |
|
|
|
++i; |
|
|
|
++i; |
|
|
|
} |
|
|
|
} |
|
|
|
list.insert(i, item); |
|
|
|
list.insert(i, item); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static QList<RssItem*> sortNewsList(QList<RssItem*> news_list) { |
|
|
|
static QList<RssItem*> sortNewsList(QList<RssItem*> news_list) { |
|
|
|
QList<RssItem*> new_list; |
|
|
|
QList<RssItem*> new_list; |
|
|
|
foreach(RssItem *item, news_list) { |
|
|
|
foreach(RssItem *item, news_list) { |
|
|
|
insertSortElem(new_list, item); |
|
|
|
insertSortElem(new_list, item); |
|
|
|
} |
|
|
|
} |
|
|
|
return new_list; |
|
|
|
return new_list; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|