alkimia  8.0.2
alkonlinequoteprocess.cpp
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 #include "alkonlinequoteprocess.h"
21 
22 //
23 // Helper class to babysit the KProcess used for running the local script in that case
24 //
25 
27 {
28  connect(this, SIGNAL(readyReadStandardOutput()), this, SLOT(slotReceivedDataFromFilter()));
29  connect(this, SIGNAL(finished(int,QProcess::ExitStatus)), this,
30  SLOT(slotProcessExited(int,QProcess::ExitStatus)));
31 }
32 
34 {
35 // kDebug(2) << "WebPriceQuoteProcess::slotReceivedDataFromFilter(): " << QString(data);
36  m_string += QString(readAllStandardOutput());
37 }
38 
39 void AlkOnlineQuoteProcess::slotProcessExited(int /*exitCode*/, QProcess::ExitStatus /*exitStatus*/)
40 {
41 // kDebug(2) << "WebPriceQuoteProcess::slotProcessExited()";
42  emit processExited(m_string);
43  m_string.truncate(0);
44 }
AlkOnlineQuoteProcess::processExited
void processExited(const QString &)
AlkOnlineQuoteProcess::AlkOnlineQuoteProcess
AlkOnlineQuoteProcess()
Definition: alkonlinequoteprocess.cpp:26
alkonlinequoteprocess.h
AlkOnlineQuoteProcess::m_string
QString m_string
Definition: alkonlinequoteprocess.h:72
AlkOnlineQuoteProcess::slotProcessExited
void slotProcessExited(int exitCode, QProcess::ExitStatus exitStatus)
Definition: alkonlinequoteprocess.cpp:39
AlkOnlineQuoteProcess::slotReceivedDataFromFilter
void slotReceivedDataFromFilter()
Definition: alkonlinequoteprocess.cpp:33