summaryrefslogtreecommitdiffstats
path: root/kmymoney2/converter/webpricequote.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/converter/webpricequote.cpp')
-rw-r--r--kmymoney2/converter/webpricequote.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmymoney2/converter/webpricequote.cpp b/kmymoney2/converter/webpricequote.cpp
index ba9cdc4..b614dcc 100644
--- a/kmymoney2/converter/webpricequote.cpp
+++ b/kmymoney2/converter/webpricequote.cpp
@@ -122,7 +122,7 @@ bool WebPriceQuote::launchNative( const TQString& _symbol, const TQString& _id,
url = KURL::fromPathOrURL(m_source.m_url.arg(m_symbol));
// If we're running a non-interactive session (with no UI), we can't
- // use KIO::NetAccess, so we have to get our web data the old-fashioned
+ // use TDEIO::NetAccess, so we have to get our web data the old-fashioned
// way... with 'wget'.
//
// Note that a 'non-interactive' session right now means only the test
@@ -180,7 +180,7 @@ bool WebPriceQuote::launchNative( const TQString& _symbol, const TQString& _id,
}
else
{
- emit error(KIO::NetAccess::lastErrorString());
+ emit error(TDEIO::NetAccess::lastErrorString());
slotParseQuote(TQString());
}
}
@@ -199,7 +199,7 @@ bool WebPriceQuote::download(const KURL& u, TQString & target, TQWidget* window)
{
m_tmpFile = TQString();
- // the following code taken and adapted from KIO::NetAccess::download()
+ // the following code taken and adapted from TDEIO::NetAccess::download()
if (target.isEmpty())
{
KTempFile tmpFile;
@@ -211,22 +211,22 @@ bool WebPriceQuote::download(const KURL& u, TQString & target, TQWidget* window)
dest.setPath( target );
- // the following code taken and adapted from KIO::NetAccess::filecopyInternal()
+ // the following code taken and adapted from TDEIO::NetAccess::filecopyInternal()
bJobOK = true; // success unless further error occurs
- KIO::Scheduler::checkSlaveOnHold(true);
- KIO::Job * job = KIO::file_copy( u, dest, -1, true, false, false );
+ TDEIO::Scheduler::checkSlaveOnHold(true);
+ TDEIO::Job * job = TDEIO::file_copy( u, dest, -1, true, false, false );
job->setWindow (window);
job->addMetaData("cache", "reload"); // bypass cache
- connect( job, TQT_SIGNAL( result (KIO::Job *) ),
- this, TQT_SLOT( slotResult (KIO::Job *) ) );
+ connect( job, TQT_SIGNAL( result (TDEIO::Job *) ),
+ this, TQT_SLOT( slotResult (TDEIO::Job *) ) );
enter_loop();
return bJobOK;
}
-// The following parts are copied and adjusted from KIO::NetAccess
+// The following parts are copied and adjusted from TDEIO::NetAccess
// If a troll sees this, he kills me
void tqt_enter_modal( TQWidget *widget );
@@ -241,7 +241,7 @@ void WebPriceQuote::enter_loop(void)
tqt_leave_modal(&dummy);
}
-void WebPriceQuote::slotResult( KIO::Job * job )
+void WebPriceQuote::slotResult( TDEIO::Job * job )
{
lastErrorCode = job->error();
bJobOK = !job->error();
@@ -254,7 +254,7 @@ void WebPriceQuote::slotResult( KIO::Job * job )
tqApp->exit_loop();
}
-// The above parts are copied and adjusted from KIO::NetAccess
+// The above parts are copied and adjusted from TDEIO::NetAccess
bool WebPriceQuote::launchFinanceQuote ( const TQString& _symbol, const TQString& _id,
const TQString& _sourcename ) {
@@ -598,7 +598,7 @@ TQStringList WebPriceQuote::quoteSources (const _quoteSystemE _system) {
TQStringList WebPriceQuote::quoteSourcesNative()
{
- KConfig *kconfig = TDEGlobal::config();
+ TDEConfig *kconfig = TDEGlobal::config();
TQStringList groups = kconfig->groupList();
TQStringList::Iterator it;
@@ -683,7 +683,7 @@ WebPriceQuoteSource::WebPriceQuoteSource(const TQString& name, const TQString& u
WebPriceQuoteSource::WebPriceQuoteSource(const TQString& name)
{
m_name = name;
- KConfig *kconfig = TDEGlobal::config();
+ TDEConfig *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 = TDEGlobal::config();
+ TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup(TQString("Online-Quote-Source-%1").arg(m_name));
kconfig->writeEntry("URL", m_url);
kconfig->writeEntry("PriceRegex", m_price);
@@ -717,7 +717,7 @@ void WebPriceQuoteSource::rename(const TQString& name)
void WebPriceQuoteSource::remove(void) const
{
- KConfig *kconfig = TDEGlobal::config();
+ TDEConfig *kconfig = TDEGlobal::config();
kconfig->deleteGroup(TQString("Online-Quote-Source-%1").arg(m_name));
}