cYTFeedParser: add signal OnLoadVideoInfo

Required for visualized progress display.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 0aa261d911
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-02-13 (Mon, 13 Feb 2017)



------------------
This commit was generated by Migit
This commit is contained in:
2017-02-13 10:03:38 +01:00
parent 0bd84a7f04
commit 50900d8621
2 changed files with 4 additions and 1 deletions

View File

@@ -323,6 +323,7 @@ bool cYTFeedParser::parseFeedJSON(std::string &answer)
Json::Value elements = root["items"]; Json::Value elements = root["items"];
for(unsigned int i=0; i<elements.size();++i) for(unsigned int i=0; i<elements.size();++i)
{ {
OnLoadVideoInfo(i, elements.size(), g_Locale->getText(LOCALE_MOVIEBROWSER_SCAN_FOR_MOVIES));
#ifdef DEBUG_PARSER #ifdef DEBUG_PARSER
printf("=========================================================\n"); printf("=========================================================\n");
printf("Element %d in elements\n", i); printf("Element %d in elements\n", i);

View File

@@ -27,7 +27,7 @@
#include <string> #include <string>
#include <map> #include <map>
#include <xmltree/xmlinterface.h> #include <xmltree/xmlinterface.h>
#include <sigc++/sigc++.h>
#include <OpenThreads/Thread> #include <OpenThreads/Thread>
#include <OpenThreads/Condition> #include <OpenThreads/Condition>
@@ -155,6 +155,8 @@ class cYTFeedParser
void SetMaxResults(int count) { max_results = count; } void SetMaxResults(int count) { max_results = count; }
void SetConcurrentDownloads(int count) { concurrent_downloads = count; } void SetConcurrentDownloads(int count) { concurrent_downloads = count; }
void SetThumbnailDir(std::string &_thumbnail_dir); void SetThumbnailDir(std::string &_thumbnail_dir);
sigc::signal<void, size_t, size_t, std::string> OnLoadVideoInfo;
}; };
#endif #endif