Return Type | Function name | Arguments |
---|---|---|
hzEcode | hzWebhost::GetRSS | (void) |
Declared in file: hzHttpClient.h
Defined in file : hzHttpClient.cpp
Function Logic:
Function body:
hzEcode hzWebhost::GetRSS (void) { _hzfunc("hzWebhost::GetRSS") ; hzList<hzUrl>::Iter fi ; hzUrl feed ; HttpRC hRet ; hzEcode rc = E_OK ; threadLog("Called\n") ; rc = Login() ; if (rc != E_OK) { threadLog("Login failed\n") ; return rc ; } if (!m_Feeds.Count()) { threadLog("Website has no starting point (URL) for an RSS feed.\n") ; return E_NOINIT ; } if (!m_tagItem.m_Slct) { m_tagItem.m_Filt = (char*) 0; m_tagItem.m_Info = "node" ; m_tagItem.m_Slct = "item" ; } if (!m_tagUqid.m_Slct) { m_tagUqid.m_Filt = (char*) 0; m_tagUqid.m_Info = "node" ; m_tagUqid.m_Slct = "guid" ; } if (!m_tagLink.m_Slct) { m_tagLink.m_Filt = (char*) 0; m_tagLink.m_Info = "node" ; m_tagLink.m_Slct = "link" ; } if (!m_tagDesc.m_Slct) { m_tagDesc.m_Filt = (char*) 0; m_tagDesc.m_Info = "node" ; m_tagDesc.m_Slct = "description" ; } if (!m_tagDate.m_Slct) { m_tagDate.m_Filt = (char*) 0; m_tagDate.m_Info = "node" ; m_tagDate.m_Slct = "pubDate" ; } /* ** ** Fetch all the feed XML documents from the RSS source(s) ** */ for (fi = m_Feeds ; fi.Valid() ; fi++) { feed = fi.Element() ; rc = getRss_r(hRet, feed, 0); threadLog("Processed items\n") ; } rc = _savestatus() ; return rc ; }