Alkimia API

alkfinancequoteprocess.h
1/*
2 SPDX-FileCopyrightText: 2004 Ace Jones acejones @users.sourceforge.net
3 SPDX-FileCopyrightText: 2004 Thomas Baumgart <tbaumgart@kde.org>
4
5 This file is part of libalkimia.
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#ifndef ALKFINANCEQUOTEPROCESS_H
11#define ALKFINANCEQUOTEPROCESS_H
12
13#include <alkimia/alk_export.h>
14
15#include <KProcess>
16
17/**
18 * Helper class to run the Finance::Quote process. This is used only for the purpose
19 * of obtaining a list of valid sources. The actual price quotes are obtained using
20 * AlkOnlineQoute.
21 *
22 * The class also contains functions to convert between the rather cryptic source
23 * names used by the Finance::Quote package, and more user-friendly names.
24 *
25 * @author Thomas Baumgart <tbaumgart@kde.org>
26 * @author Ace Jones <acejones@users.sourceforge.net>
27 * @author Tony B<tonybloom@users.sourceforge.net>
28 */
29class ALK_EXPORT AlkFinanceQuoteProcess : public KProcess
30{
31 Q_OBJECT
32public:
34 void launch(const QString &scriptPath);
35 /**
36 * Check that all modules for Finance::Quote are installed
37 */
38 void testLaunch(const QString& scriptPath);
39 bool isFinished() const;
40 const QStringList getSourceList() const;
41 const QString crypticName(const QString &niceName) const;
42 const QString niceName(const QString &crypticName) const;
43
44public Q_SLOTS:
45 void slotReceivedDataFromFilter();
46 void slotProcessExited();
47
48private:
49 class Private;
50 Private *const d;
51};
52
53#endif // ALKFINANCEQUOTEPROCESS_H
Helper class to run the Finance::Quote process.
Q_SLOTSQ_SLOTS
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.