GNU Octave
6.2.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-2021 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
32
namespace
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
61
base_qobject
&
m_octave_qobj
;
62
63
QString
m_base_url
;
64
QString
m_page
;
65
int
m_serial
;
66
bool
m_connect_to_web
;
67
};
68
}
69
70
#endif
QObject
octave::base_qobject
Base class for Octave interfaces that use Qt.
Definition:
octave-qobject.h:80
octave::news_reader
Definition:
news-reader.h:37
octave::news_reader::m_connect_to_web
bool m_connect_to_web
Definition:
news-reader.h:66
octave::news_reader::m_serial
int m_serial
Definition:
news-reader.h:65
octave::news_reader::display_news_signal
void display_news_signal(const QString &news)
octave::news_reader::process
void process(void)
Definition:
news-reader.cc:44
octave::news_reader::news_reader
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
octave::news_reader::m_octave_qobj
base_qobject & m_octave_qobj
Definition:
news-reader.h:61
octave::news_reader::m_page
QString m_page
Definition:
news-reader.h:64
octave::news_reader::finished
void finished(void)
octave::news_reader::m_base_url
QString m_base_url
Definition:
news-reader.h:63
octave
Definition:
aepbalance.cc:41
libgui
src
news-reader.h
Generated on Tue Apr 13 2021 15:27:44 for GNU Octave by
1.9.1