diff options
author | louis <louis.braun@gmx.de> | 2013-10-25 20:50:08 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-10-25 20:50:08 +0200 |
commit | 1aa2f6ace2419406b305f9fe238d9d341f761c73 (patch) | |
tree | b58da850e207efd038ac0b88cbdf9fa444667dfd /rssreader.h | |
parent | 086588958f25fcf065a947bd908e65c4a4c345bd (diff) | |
download | skin-nopacity-1aa2f6ace2419406b305f9fe238d9d341f761c73.tar.gz skin-nopacity-1aa2f6ace2419406b305f9fe238d9d341f761c73.tar.bz2 |
Version 0.9.0
Diffstat (limited to 'rssreader.h')
-rw-r--r-- | rssreader.h | 83 |
1 files changed, 0 insertions, 83 deletions
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 <curl/curl.h>
-#include <curl/easy.h>
-#include <libxml/parser.h>
-#include <libxml/tree.h>
-#include <string>
-#include <vector>
-
-#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<RssElement> 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 |