Alkimia API

alkonlinequoteprocess.h
1/*
2 SPDX-FileCopyrightText: 2004 Ace Jones acejones @users.sourceforge.net
3 SPDX-FileCopyrightText: 2004 Thomas Baumgart <thb@net-bembel.de>
4
5 This file is part of libalkimia.
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#ifndef ALKONLINEQUOTEPROCESS_H
11#define ALKONLINEQUOTEPROCESS_H
12
13#include <alkimia/alk_export.h>
14
15#include <KProcess>
16
17/**
18Helper class to attend the process which is running the script, in the case
19of a local script being used to fetch the quote.
20
21@author Thomas Baumgart <thb@net-bembel.de> & Ace Jones acejones @users.sourceforge.net
22*/
23class ALK_NO_EXPORT AlkOnlineQuoteProcess : public KProcess
24{
25 Q_OBJECT
26public:
28 inline void setSymbol(const QString &_symbol)
29 {
30 m_symbol = _symbol;
31 m_string.truncate(0);
32 }
33
34public Q_SLOTS:
35 void slotReceivedDataFromFilter();
36 void slotProcessExited(int exitCode, QProcess::ExitStatus exitStatus);
37
39 void processExited(const QString &);
40
41private:
42 QString m_symbol;
43 QString m_string;
44};
45
46#endif // ALKONLINEQUOTEPROCESS_H
Helper class to attend the process which is running the script, in the case of a local script being u...
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
void truncate(qsizetype position)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.