From 1aa2f6ace2419406b305f9fe238d9d341f761c73 Mon Sep 17 00:00:00 2001 From: louis Date: Fri, 25 Oct 2013 20:50:08 +0200 Subject: Version 0.9.0 --- rssreader.h | 83 ------------------------------------------------------------- 1 file changed, 83 deletions(-) delete mode 100644 rssreader.h (limited to 'rssreader.h') diff --git a/rssreader.h b/rssreader.h deleted file mode 100644 index 868b48f..0000000 --- a/rssreader.h +++ /dev/null @@ -1,83 +0,0 @@ -#ifndef __NOPACITY_RSSREADER_H -#define __NOPACITY_RSSREADER_H - -#include -#include -#include -#include -#include -#include - -#define NOPACITY_USERAGENT "libcurl-agent/1.0" - -struct XMLMemoryStruct { - char *memory; - size_t size; -}; - -struct RssElement { - std::string title; - std::string content; - int width; -}; - -class cRssReader : public cThread{ -public: - cRssReader(cOsd *osd, cFont *font, cPoint position, cPoint size); - ~cRssReader(); - virtual void Action(void); - void Stop(void) {Cancel(-1);}; - void SetFeed(std::string feedUrl) {this->feedUrl = feedUrl;}; - void SwitchNextMessage(void) {switchToNextMessage = true;}; -private: - cOsd *osd; - cFont *font; - cPixmap *pixmap; - std::string feedUrl; - int x, y; - int width, height; - void createPixmap(void); - void drawText(void); - int readRssURL(const char *url); - void saveRss(void); - void traverseTree(xmlNode * a_node, bool foundItem); - void saveItem(void); - void fadeInOut(bool fadeIn); - XMLMemoryStruct xmlData; - xmlDoc *doc; - std::string title, content; - std::vector rssElements; - int currentElement; - bool useProxy; - std::string httpproxy; - std::string separator; - void DoSleep(int duration); - bool switchToNextMessage; - void debugRSS(void); -}; - -class cRssStandaloneTicker { - public: - cRssStandaloneTicker(cImageCache *imgCache); - ~cRssStandaloneTicker(); - void Start(void); - void SetFeed(std::string feedName); - void SwitchNextRssMessage(void); - void SwitchNextRssFeed(void); - private: - cImageCache *imgCache; - int osdLeft; - int osdTop; - int osdWidth; - int osdHeight; - cRssReader *rssReader; - cOsd *osd; - cPixmap *pixmapFeed; - cPixmap *pixmapBackground; - cPixmap *pixmapIcon; - cFont *font; - int labelWidth; - int currentFeed; - void SetNextFeed(void); -}; -#endif //__NOPACITY_RSSREADER_H \ No newline at end of file -- cgit v1.2.3