Rss::Blocks 0.2
a codeblocks plugin that shows rss feeds
|
00001 /*************************************************************** 00002 * Name: rssitem.h 00003 * Purpose: rssitem class definition 00004 * Author: Gabriel Espinoza 00005 * Created: 2011-02-26 00006 * Copyright: Gabriel Espinoza 00007 * License: LGPLv3+ 00008 **************************************************************/ 00009 #ifndef RSSITEM_H 00010 #define RSSITEM_H 00011 00012 #include <wx/xml/xml.h> 00013 #include <wx/dynarray.h> 00014 00015 namespace virtuosonic { 00020 class rssitem 00021 { 00022 public: 00023 rssitem(wxXmlNode* node) throw (int); 00024 ~rssitem(); 00025 //accessors 00027 const wxString& Getdesc() {return m_desc;} 00029 const wxString& Gettitle() {return m_title;} 00031 const wxString& Getlink() {return m_link;} 00032 private: 00033 void Setlink(wxString val) {m_link = val;} 00034 void Settitle(wxString val) {m_title = val;} 00035 void Setdesc(wxString val) {m_desc = val;} 00036 //Members 00037 wxString m_desc; 00038 wxString m_title; 00039 wxString m_link; 00040 wxXmlNode* m_node; 00041 }; 00042 00043 WX_DEFINE_ARRAY(rssitem*,rssitemsarray); 00044 }//namespace virtuosonic 00045 00046 #endif // RSSITEM_H