diff options
Diffstat (limited to 'kmymoney2/converter/webpricequote.cpp')
-rw-r--r-- | kmymoney2/converter/webpricequote.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/kmymoney2/converter/webpricequote.cpp b/kmymoney2/converter/webpricequote.cpp index a5a9087..ba9cdc4 100644 --- a/kmymoney2/converter/webpricequote.cpp +++ b/kmymoney2/converter/webpricequote.cpp @@ -56,7 +56,7 @@ WebPriceQuote::WebPriceQuote( TQObject* _parent, const char* _name ): TQObject( _parent, _name ) { m_financeQuoteScriptPath = - KGlobal::dirs()->findResource("appdata", TQString("misc/financequote.pl")); + TDEGlobal::dirs()->findResource("appdata", TQString("misc/financequote.pl")); connect(&m_filter,TQT_SIGNAL(processExited(const TQString&)),this,TQT_SLOT(slotParseQuote(const TQString&))); } @@ -141,11 +141,11 @@ 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. - KProcess::RunMode mode = KProcess::NotifyOnExit; + TDEProcess::RunMode mode = TDEProcess::NotifyOnExit; if ( ! kapp ) - mode = KProcess::Block; + mode = TDEProcess::Block; - if(m_filter.start(mode, KProcess::All)) + if(m_filter.start(mode, TDEProcess::All)) { result = true; m_filter.resume(); @@ -272,18 +272,18 @@ bool WebPriceQuote::launchFinanceQuote ( const TQString& _symbol, const TQString m_filter.clearArguments(); - m_filter << "perl" << m_financeQuoteScriptPath << FTQSource << KProcess::quote(_symbol); + m_filter << "perl" << m_financeQuoteScriptPath << FTQSource << TDEProcess::quote(_symbol); m_filter.setUseShell(true); m_filter.setSymbol(m_symbol); emit status(TQString("Executing %1 %2 %3...").arg(m_financeQuoteScriptPath).arg(FTQSource).arg(_symbol)); // if we're running non-interactive, we'll need to block. // otherwise, just let us know when it's done. - KProcess::RunMode mode = KProcess::NotifyOnExit; + TDEProcess::RunMode mode = TDEProcess::NotifyOnExit; if ( ! kapp ) - mode = KProcess::Block; + mode = TDEProcess::Block; - if(m_filter.start(mode, KProcess::All)) + if(m_filter.start(mode, TDEProcess::All)) { result = true; m_filter.resume(); @@ -598,7 +598,7 @@ TQStringList WebPriceQuote::quoteSources (const _quoteSystemE _system) { TQStringList WebPriceQuote::quoteSourcesNative() { - KConfig *kconfig = KGlobal::config(); + KConfig *kconfig = TDEGlobal::config(); TQStringList groups = kconfig->groupList(); TQStringList::Iterator it; @@ -656,7 +656,7 @@ TQStringList WebPriceQuote::quoteSourcesFinanceQuote() if (m_financeQuoteSources.empty()) { // run the process one time only FinanceQuoteProcess getList; m_financeQuoteScriptPath = - KGlobal::dirs()->findResource("appdata", TQString("misc/financequote.pl")); + TDEGlobal::dirs()->findResource("appdata", TQString("misc/financequote.pl")); getList.launch( m_financeQuoteScriptPath ); while (!getList.isFinished()) { tqApp->processEvents(); @@ -683,7 +683,7 @@ WebPriceQuoteSource::WebPriceQuoteSource(const TQString& name, const TQString& u WebPriceQuoteSource::WebPriceQuoteSource(const TQString& name) { m_name = name; - KConfig *kconfig = KGlobal::config(); + KConfig *kconfig = TDEGlobal::config(); kconfig->setGroup(TQString("Online-Quote-Source-%1").arg(m_name)); m_sym = kconfig->readEntry("SymbolRegex"); m_date = kconfig->readEntry("DateRegex"); @@ -695,7 +695,7 @@ WebPriceQuoteSource::WebPriceQuoteSource(const TQString& name) void WebPriceQuoteSource::write(void) const { - KConfig *kconfig = KGlobal::config(); + KConfig *kconfig = TDEGlobal::config(); kconfig->setGroup(TQString("Online-Quote-Source-%1").arg(m_name)); kconfig->writeEntry("URL", m_url); kconfig->writeEntry("PriceRegex", m_price); @@ -717,21 +717,21 @@ void WebPriceQuoteSource::rename(const TQString& name) void WebPriceQuoteSource::remove(void) const { - KConfig *kconfig = KGlobal::config(); + KConfig *kconfig = TDEGlobal::config(); kconfig->deleteGroup(TQString("Online-Quote-Source-%1").arg(m_name)); } // -// Helper class to babysit the KProcess used for running the local script in that case +// Helper class to babysit the TDEProcess used for running the local script in that case // WebPriceQuoteProcess::WebPriceQuoteProcess(void) { - connect(this, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), this, TQT_SLOT(slotReceivedDataFromFilter(KProcess*, char*, int))); - connect(this, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotProcessExited(KProcess*))); + connect(this, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQT_SLOT(slotReceivedDataFromFilter(TDEProcess*, char*, int))); + connect(this, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotProcessExited(TDEProcess*))); } -void WebPriceQuoteProcess::slotReceivedDataFromFilter(KProcess* /*_process*/, char* _pcbuffer, int _nbufferlen) +void WebPriceQuoteProcess::slotReceivedDataFromFilter(TDEProcess* /*_process*/, char* _pcbuffer, int _nbufferlen) { TQByteArray data; data.duplicate(_pcbuffer, _nbufferlen); @@ -740,7 +740,7 @@ void WebPriceQuoteProcess::slotReceivedDataFromFilter(KProcess* /*_process*/, ch m_string += TQString(data); } -void WebPriceQuoteProcess::slotProcessExited(KProcess*) +void WebPriceQuoteProcess::slotProcessExited(TDEProcess*) { // kdDebug(2) << "WebPriceQuoteProcess::slotProcessExited()" << endl; emit processExited(m_string); @@ -748,7 +748,7 @@ void WebPriceQuoteProcess::slotProcessExited(KProcess*) } // -// Helper class to babysit the KProcess used for running the Finance Quote sources script +// Helper class to babysit the TDEProcess used for running the Finance Quote sources script // FinanceQuoteProcess::FinanceQuoteProcess(void) @@ -809,11 +809,11 @@ FinanceQuoteProcess::FinanceQuoteProcess(void) m_fqNames["yahoo_europe"] = "Yahoo Europe"; m_fqNames["yahoo_nz"] = "Yahoo New Zealand"; m_fqNames["zifunds"] = "Zuerich Investments"; - connect(this, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), this, TQT_SLOT(slotReceivedDataFromFilter(KProcess*, char*, int))); - connect(this, TQT_SIGNAL(processExited(KProcess*)), this, TQT_SLOT(slotProcessExited(KProcess*))); + connect(this, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQT_SLOT(slotReceivedDataFromFilter(TDEProcess*, char*, int))); + connect(this, TQT_SIGNAL(processExited(TDEProcess*)), this, TQT_SLOT(slotProcessExited(TDEProcess*))); } -void FinanceQuoteProcess::slotReceivedDataFromFilter(KProcess* /*_process*/, char* _pcbuffer, int _nbufferlen) +void FinanceQuoteProcess::slotReceivedDataFromFilter(TDEProcess* /*_process*/, char* _pcbuffer, int _nbufferlen) { TQByteArray data; data.duplicate(_pcbuffer, _nbufferlen); @@ -822,7 +822,7 @@ void FinanceQuoteProcess::slotReceivedDataFromFilter(KProcess* /*_process*/, cha m_string += TQString(data); } -void FinanceQuoteProcess::slotProcessExited(KProcess*) +void FinanceQuoteProcess::slotProcessExited(TDEProcess*) { // kdDebug(2) << "WebPriceQuoteProcess::slotProcessExited()" << endl; m_isDone = true; @@ -833,7 +833,7 @@ void FinanceQuoteProcess::launch (const TQString& scriptPath) { arguments.append(TQCString("perl")); arguments.append (TQCString(scriptPath)); arguments.append (TQCString("-l")); - if (!start(KProcess::NotifyOnExit, KProcess::Stdout)) tqFatal ("Unable to start FQ script"); + if (!start(TDEProcess::NotifyOnExit, TDEProcess::Stdout)) tqFatal ("Unable to start FQ script"); return; } @@ -950,8 +950,8 @@ TQDate MyMoneyDateFormat::convertString(const TQString& _in, bool _strict, unsig unsigned i = 1; while ( i <= 12 ) { - if(KGlobal::locale()->calendar()->monthName(i, 2000, true).lower() == *it_scanned - || KGlobal::locale()->calendar()->monthName(i, 2000, false).lower() == *it_scanned) + if(TDEGlobal::locale()->calendar()->monthName(i, 2000, true).lower() == *it_scanned + || TDEGlobal::locale()->calendar()->monthName(i, 2000, false).lower() == *it_scanned) month = i; ++i; } |