alkimia  8.0.2
alkonlinequoteprocess.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2004 Ace Jones <acejones@users.sourceforge.net> *
3  * Copyright 2004 Thomas Baumgart <thb@net-bembel.de> *
4  * *
5  * This file is part of libalkimia. *
6  * *
7  * libalkimia is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU General Public License *
9  * as published by the Free Software Foundation; either version 2.1 of *
10  * the License or (at your option) version 3 or any later version. *
11  * *
12  * libalkimia is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15  * GNU General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License *
18  * along with this program. If not, see <http://www.gnu.org/licenses/> *
19  ***************************************************************************/
20 
21 #ifndef ALKONLINEQUOTEPROCESS_H
22 #define ALKONLINEQUOTEPROCESS_H
23 
24 #include <alkimia/alk_export.h>
25 
26 #include <KProcess>
27 
34 class ALK_NO_EXPORT AlkOnlineQuoteProcess : public KProcess
35 {
36  Q_OBJECT
37 public:
39  inline void setSymbol(const QString &_symbol)
40  {
41  m_symbol = _symbol;
42  m_string.truncate(0);
43  }
44 
45 public slots:
46  void slotReceivedDataFromFilter();
47  void slotProcessExited(int exitCode, QProcess::ExitStatus exitStatus);
48 
49 signals:
50  void processExited(const QString &);
51 
52 private:
53  QString m_symbol;
54  QString m_string;
55 };
56 
57 #endif // ALKONLINEQUOTEPROCESS_H
void setSymbol(const QString &_symbol)