|
|
|
@ -85,7 +85,7 @@ bool WebPriceQuote::launchNative( const TQString& _symbol, const TQString& _id,
|
|
|
|
|
|
|
|
|
|
// if we're running normally, with a UI, we can just get these the normal way,
|
|
|
|
|
// from the config file
|
|
|
|
|
if ( kapp )
|
|
|
|
|
if ( tdeApp )
|
|
|
|
|
{
|
|
|
|
|
TQString sourcename = _sourcename;
|
|
|
|
|
if ( sourcename.isEmpty() )
|
|
|
|
@ -96,7 +96,7 @@ bool WebPriceQuote::launchNative( const TQString& _symbol, const TQString& _id,
|
|
|
|
|
else
|
|
|
|
|
emit error(TQString("Source <%1> does not exist.").arg(sourcename));
|
|
|
|
|
}
|
|
|
|
|
// otherwise, if we have no kapp, we have no config. so we just get them from
|
|
|
|
|
// otherwise, if we have no tdeApp, we have no config. so we just get them from
|
|
|
|
|
// the defaults
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@ -132,7 +132,7 @@ bool WebPriceQuote::launchNative( const TQString& _symbol, const TQString& _id,
|
|
|
|
|
// Note that a 'non-interactive' session right now means only the test
|
|
|
|
|
// cases. Although in the future if KMM gains a non-UI mode, this would
|
|
|
|
|
// still be useful
|
|
|
|
|
if ( ! kapp && ! url.isLocalFile() )
|
|
|
|
|
if ( ! tdeApp && ! url.isLocalFile() )
|
|
|
|
|
url = KURL::fromPathOrURL("/usr/bin/wget -O - " + url.prettyURL());
|
|
|
|
|
|
|
|
|
|
if ( url.isLocalFile() )
|
|
|
|
@ -146,7 +146,7 @@ bool WebPriceQuote::launchNative( const TQString& _symbol, const TQString& _id,
|
|
|
|
|
// if we're running non-interactive, we'll need to block.
|
|
|
|
|
// otherwise, just let us know when it's done.
|
|
|
|
|
TDEProcess::RunMode mode = TDEProcess::NotifyOnExit;
|
|
|
|
|
if ( ! kapp )
|
|
|
|
|
if ( ! tdeApp )
|
|
|
|
|
mode = TDEProcess::Block;
|
|
|
|
|
|
|
|
|
|
if(m_filter.start(mode, TDEProcess::All))
|
|
|
|
@ -284,7 +284,7 @@ bool WebPriceQuote::launchFinanceQuote ( const TQString& _symbol, const TQString
|
|
|
|
|
// if we're running non-interactive, we'll need to block.
|
|
|
|
|
// otherwise, just let us know when it's done.
|
|
|
|
|
TDEProcess::RunMode mode = TDEProcess::NotifyOnExit;
|
|
|
|
|
if ( ! kapp )
|
|
|
|
|
if ( ! tdeApp )
|
|
|
|
|
mode = TDEProcess::Block;
|
|
|
|
|
|
|
|
|
|
if(m_filter.start(mode, TDEProcess::All))
|
|
|
|
|