File indexing completed on 2024-10-13 10:21:01
0001 /* 0002 SPDX-FileCopyrightText: 2004 Ace Jones acejones @users.sourceforge.net 0003 SPDX-FileCopyrightText: 2004 Thomas Baumgart <thb@net-bembel.de> 0004 0005 This file is part of libalkimia. 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #ifndef ALKONLINEQUOTEPROCESS_H 0011 #define ALKONLINEQUOTEPROCESS_H 0012 0013 #include <alkimia/alk_export.h> 0014 0015 #include <KProcess> 0016 0017 /** 0018 Helper class to attend the process which is running the script, in the case 0019 of a local script being used to fetch the quote. 0020 0021 @author Thomas Baumgart <thb@net-bembel.de> & Ace Jones acejones @users.sourceforge.net 0022 */ 0023 class ALK_NO_EXPORT AlkOnlineQuoteProcess : public KProcess 0024 { 0025 Q_OBJECT 0026 public: 0027 AlkOnlineQuoteProcess(); 0028 inline void setSymbol(const QString &_symbol) 0029 { 0030 m_symbol = _symbol; 0031 m_string.truncate(0); 0032 } 0033 0034 public Q_SLOTS: 0035 void slotReceivedDataFromFilter(); 0036 void slotProcessExited(int exitCode, QProcess::ExitStatus exitStatus); 0037 0038 Q_SIGNALS: 0039 void processExited(const QString &); 0040 0041 private: 0042 QString m_symbol; 0043 QString m_string; 0044 }; 0045 0046 #endif // ALKONLINEQUOTEPROCESS_H