Alkimia API

alkquotereceiver.h
1/*
2 SPDX-FileCopyrightText: 2004 Ace Jones acejones @users.sourceforge.net
3
4 This file is part of libalkimia.
5
6 SPDX-License-Identifier: GPL-2.0-or-later
7*/
8
9#ifndef ALKQUOTERECEIVER_H
10#define ALKQUOTERECEIVER_H
11
12#include <alkimia/alkvalue.h>
13
14#include <QDate>
15#include <QObject>
16#include <QStringList>
17
18class AlkOnlineQuote;
19
20namespace convertertest {
21/**
22Simple class to handle signals/slots for unit tests
23
24@author Ace Jones acejones @users.sourceforge.net
25*/
26class ALK_NO_EXPORT AlkQuoteReceiver : public QObject
27{
28 Q_OBJECT
29public:
30 explicit AlkQuoteReceiver(AlkOnlineQuote *q, QObject *parent = 0);
32 void setVerbose(bool verbose)
33 {
34 m_verbose = verbose;
35 }
36
37public Q_SLOTS:
38 void slotGetQuote(const QString &, const QString &, const QDate &, const double &);
39 void slotStatus(const QString &);
40 void slotError(const QString &);
41public:
42 QStringList m_statuses;
43 QStringList m_errors;
44 AlkValue m_price;
45 QDate m_date;
46protected:
47 bool m_verbose;
48};
49} // end namespace convertertest
50
51#endif // ALKQUOTERECEIVER_H
Retrieves a price quote from a web-based quote source.
Simple class to handle signals/slots for unit tests.
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.