BREW RSS Reader - 3 / 9 -
Overview of BREW RSS Reader
Application Class: RssReader
SFMTYPEDEFCLASS(RssReader) class RssReader : public SFRApplication { SFMSEALCOPY(RssReader) private: RSSFeedList _feedList; // 1* RSSFeedPtr _currentFeed; // 2* public: static SFCInvokerPtr Factory(Void); static RSSFeedListPtr GetRSSFeedList(Void); static RSSFeedPtr GetCurrentFeed(Void); static Void SetCurrentFeed(RSSFeedPtr currentFeed); private: explicit RssReader(Void) static_throws; virtual ~RssReader(Void); }; RSSFeedListPtr RssReader::GetRSSFeedList(Void) { return &(static_cast<RssReaderPtr>(GetInstance())->_feedList); } RSSFeedPtr RssReader::GetCurrentFeed(Void) { return static_cast<RssReaderPtr>(GetInstance())->_currentFeed; } Void RssReader::SetCurrentFeed(RSSFeedPtr currentFeed) { static_cast<RssReaderPtr>(GetInstance())->_currentFeed = currentFeed; return; }
*1. _feedList is a variable for the list of RSS feeds.
*2. _currentFeed is a variable pointing to the RSS feed being displayed.