alkimia  8.0.3
alkquotereceiver.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2004 Ace Jones <acejones@users.sourceforge.net> *
3  * *
4  * This file is part of libalkimia. *
5  * *
6  * libalkimia is free software; you can redistribute it and/or *
7  * modify it under the terms of the GNU General Public License *
8  * as published by the Free Software Foundation; either version 2.1 of *
9  * the License or (at your option) version 3 or any later version. *
10  * *
11  * libalkimia is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program. If not, see <http://www.gnu.org/licenses/> *
18  ***************************************************************************/
19 
20 #ifndef ALKQUOTERECEIVER_H
21 #define ALKQUOTERECEIVER_H
22 
23 #include <alkimia/alkvalue.h>
24 
25 #include <QDate>
26 #include <QObject>
27 #include <QStringList>
28 
29 class AlkOnlineQuote;
30 
31 namespace convertertest {
37 class ALK_NO_EXPORT AlkQuoteReceiver : public QObject
38 {
39  Q_OBJECT
40 public:
41  explicit AlkQuoteReceiver(AlkOnlineQuote *q, QObject *parent = 0);
43  void setVerbose(bool verbose)
44  {
45  m_verbose = verbose;
46  }
47 
48 public Q_SLOTS:
49  void slotGetQuote(const QString &, const QString &, const QDate &, const double &);
50  void slotStatus(const QString &);
51  void slotError(const QString &);
52 public:
53  QStringList m_statuses;
54  QStringList m_errors;
56  QDate m_date;
57 protected:
58  bool m_verbose;
59 };
60 } // end namespace convertertest
61 
62 #endif // ALKQUOTERECEIVER_H