GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
news-reader.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2011-2022 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_news_reader_h)
27#define octave_news_reader_h 1
28
29#include <QObject>
30#include <QString>
31
32namespace octave
33{
34 class base_qobject;
35
36 class news_reader : public QObject
37 {
38 Q_OBJECT
39
40 public:
41
42 news_reader (base_qobject& oct_qobj, const QString& base_url,
43 const QString& page, int serial = -1,
44 bool connect_to_web = false)
45 : QObject (), m_octave_qobj (oct_qobj), m_base_url (base_url),
46 m_page (page), m_serial (serial), m_connect_to_web (connect_to_web)
47 { }
48
49 signals:
50
51 void display_news_signal (const QString& news);
52
53 void finished (void);
54
55 public slots:
56
57 void process (void);
58
59 private:
60
62
63 QString m_base_url;
64 QString m_page;
67 };
68}
69
70#endif
Base class for Octave interfaces that use Qt.
void display_news_signal(const QString &news)
void process(void)
Definition: news-reader.cc:44
news_reader(base_qobject &oct_qobj, const QString &base_url, const QString &page, int serial=-1, bool connect_to_web=false)
Definition: news-reader.h:42
base_qobject & m_octave_qobj
Definition: news-reader.h:61