Fuck it all, no mood.

This commit is contained in:
Martin Rotter 2015-12-07 19:40:05 +01:00
parent 5b432772dd
commit 90d92e8aa8
2 changed files with 5 additions and 2 deletions

View File

@ -207,13 +207,16 @@ TtRssGetFeedsCategoriesResponse::TtRssGetFeedsCategoriesResponse(const QString &
TtRssGetFeedsCategoriesResponse::~TtRssGetFeedsCategoriesResponse() { TtRssGetFeedsCategoriesResponse::~TtRssGetFeedsCategoriesResponse() {
} }
QList<RootItem *> TtRssGetFeedsCategoriesResponse::feedsCategories() { QList<RootItem*> TtRssGetFeedsCategoriesResponse::feedsCategories() {
QList<RootItem*> items; QList<RootItem*> items;
if (status() == API_STATUS_OK) { if (status() == API_STATUS_OK) {
// We have data, construct object tree according to data. // We have data, construct object tree according to data.
QList<QVariant> items_to_process = m_rawContent["content"].toMap()["categories"].toMap()["items"].toList(); QList<QVariant> items_to_process = m_rawContent["content"].toMap()["categories"].toMap()["items"].toList();
while (!items_to_process.isEmpty()) {
}
} }
return items; return items;

View File

@ -230,5 +230,5 @@ void TtRssServiceRoot::syncIn() {
QNetworkReply::NetworkError err; QNetworkReply::NetworkError err;
TtRssGetFeedsCategoriesResponse aa = m_network->getFeedsCategories(err); QList<RootItem*> aa = m_network->getFeedsCategories(err).feedsCategories();
} }