26#if defined (HAVE_CONFIG_H)
55 std::ostringstream buf;
63 if (octave_dot_org.
good ())
67 if (html_text.contains (
"this-is-the-gnu-octave-community-news-page"))
77 QDateTime::currentDateTime ());
82 QString tag (
"community-news-page-serial=");
84 int b = html_text.indexOf (tag);
90 int e = html_text.indexOf (
"\n", b);
92 QString tmp = html_text.mid (b, e-b);
94 int curr_page_serial = tmp.toInt ();
118 "Octave's community news source seems to be unavailable.\n"
121 "For the latest news, please check\n"
122 "<a href=\"https://octave.org/community-news.html\">https://octave.org/community-news.html</a>\n"
123 "when you have a connection to the web (link opens in an external browser).\n"
126 "<small><em>— The Octave Developers, ") + OCTAVE_RELEASE_DATE +
"</em></small>\n"
136 "Connecting to the web to display the latest Octave Community news has been disabled.\n"
139 "For the latest news, please check\n"
140 "<a href=\"https://octave.org/community-news.html\">https://octave.org/community-news.html</a>\n"
141 "when you have a connection to the web (link opens in an external browser)\n"
142 "or enable web connections for news in Octave's network settings dialog.\n"
145 "<small><em>— The Octave Developers, ") + OCTAVE_RELEASE_DATE +
"</em></small>\n"
resource_manager & get_resource_manager(void)
void display_news_signal(const QString &news)
base_qobject & m_octave_qobj
gui_settings * get_settings(void) const
void http_get(const Array< std::string > ¶m)
bool is_valid(void) const
const gui_pref nr_last_news("news/last_news_item", QVariant(0))
const gui_pref nr_last_time("news/last_time_checked", QVariant(QDateTime()))
QString fromStdString(const std::string &s)