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.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/kmymoney2/converter/webpricequote.cpp b/kmymoney2/converter/webpricequote.cpp
index b614dcc..14db612 100644
--- a/kmymoney2/converter/webpricequote.cpp
+++ b/kmymoney2/converter/webpricequote.cpp
@@ -26,13 +26,13 @@
// ----------------------------------------------------------------------------
// KDE Headers
-#include <kio/netaccess.h>
-#include <kio/scheduler.h>
+#include <tdeio/netaccess.h>
+#include <tdeio/scheduler.h>
#include <kurl.h>
#include <klocale.h>
#include <kdebug.h>
#include <kapplication.h>
-#include <kconfig.h>
+#include <tdeconfig.h>
#include <kglobal.h>
#include <kstandarddirs.h>
#include <kcalendarsystem.h>
@@ -598,8 +598,8 @@ TQStringList WebPriceQuote::quoteSources (const _quoteSystemE _system) {
TQStringList WebPriceQuote::quoteSourcesNative()
{
- TDEConfig *kconfig = TDEGlobal::config();
- TQStringList groups = kconfig->groupList();
+ TDEConfig *tdeconfig = TDEGlobal::config();
+ TQStringList groups = tdeconfig->groupList();
TQStringList::Iterator it;
TQRegExp onlineQuoteSource(TQString("^Online-Quote-Source-(.*)$"));
@@ -614,23 +614,23 @@ TQStringList WebPriceQuote::quoteSourcesNative()
// if the user has the OLD quote source defined, now is the
// time to remove that entry and convert it to the new system.
- if ( ! groups.count() && kconfig->hasGroup("Online Quotes Options") )
+ if ( ! groups.count() && tdeconfig->hasGroup("Online Quotes Options") )
{
- kconfig->setGroup("Online Quotes Options");
- TQString url(kconfig->readEntry("URL","http://finance.yahoo.com/d/quotes.csv?s=%1&f=sl1d1"));
- TQString symbolRegExp(kconfig->readEntry("SymbolRegex","\"([^,\"]*)\",.*"));
- TQString priceRegExp(kconfig->readEntry("PriceRegex","[^,]*,([^,]*),.*"));
- TQString dateRegExp(kconfig->readEntry("DateRegex","[^,]*,[^,]*,\"([^\"]*)\""));
- kconfig->deleteGroup("Online Quotes Options");
+ tdeconfig->setGroup("Online Quotes Options");
+ TQString url(tdeconfig->readEntry("URL","http://finance.yahoo.com/d/quotes.csv?s=%1&f=sl1d1"));
+ TQString symbolRegExp(tdeconfig->readEntry("SymbolRegex","\"([^,\"]*)\",.*"));
+ TQString priceRegExp(tdeconfig->readEntry("PriceRegex","[^,]*,([^,]*),.*"));
+ TQString dateRegExp(tdeconfig->readEntry("DateRegex","[^,]*,[^,]*,\"([^\"]*)\""));
+ tdeconfig->deleteGroup("Online Quotes Options");
groups += "Old Source";
- kconfig->setGroup(TQString("Online-Quote-Source-%1").arg("Old Source"));
- kconfig->writeEntry("URL", url);
- kconfig->writeEntry("SymbolRegex", symbolRegExp);
- kconfig->writeEntry("PriceRegex",priceRegExp);
- kconfig->writeEntry("DateRegex", dateRegExp);
- kconfig->writeEntry("DateFormatRegex", "%m %d %y");
- kconfig->sync();
+ tdeconfig->setGroup(TQString("Online-Quote-Source-%1").arg("Old Source"));
+ tdeconfig->writeEntry("URL", url);
+ tdeconfig->writeEntry("SymbolRegex", symbolRegExp);
+ tdeconfig->writeEntry("PriceRegex",priceRegExp);
+ tdeconfig->writeEntry("DateRegex", dateRegExp);
+ tdeconfig->writeEntry("DateFormatRegex", "%m %d %y");
+ tdeconfig->sync();
}
// Set up each of the default sources. These are done piecemeal so that
@@ -643,7 +643,7 @@ TQStringList WebPriceQuote::quoteSourcesNative()
{
groups += (*it_source).m_name;
(*it_source).write();
- kconfig->sync();
+ tdeconfig->sync();
}
++it_source;
}
@@ -683,29 +683,29 @@ WebPriceQuoteSource::WebPriceQuoteSource(const TQString& name, const TQString& u
WebPriceQuoteSource::WebPriceQuoteSource(const TQString& name)
{
m_name = name;
- TDEConfig *kconfig = TDEGlobal::config();
- kconfig->setGroup(TQString("Online-Quote-Source-%1").arg(m_name));
- m_sym = kconfig->readEntry("SymbolRegex");
- m_date = kconfig->readEntry("DateRegex");
- m_dateformat = kconfig->readEntry("DateFormatRegex","%m %d %y");
- m_price = kconfig->readEntry("PriceRegex");
- m_url = kconfig->readEntry("URL");
- m_skipStripping = kconfig->readBoolEntry("SkipStripping", false);
+ TDEConfig *tdeconfig = TDEGlobal::config();
+ tdeconfig->setGroup(TQString("Online-Quote-Source-%1").arg(m_name));
+ m_sym = tdeconfig->readEntry("SymbolRegex");
+ m_date = tdeconfig->readEntry("DateRegex");
+ m_dateformat = tdeconfig->readEntry("DateFormatRegex","%m %d %y");
+ m_price = tdeconfig->readEntry("PriceRegex");
+ m_url = tdeconfig->readEntry("URL");
+ m_skipStripping = tdeconfig->readBoolEntry("SkipStripping", false);
}
void WebPriceQuoteSource::write(void) const
{
- TDEConfig *kconfig = TDEGlobal::config();
- kconfig->setGroup(TQString("Online-Quote-Source-%1").arg(m_name));
- kconfig->writeEntry("URL", m_url);
- kconfig->writeEntry("PriceRegex", m_price);
- kconfig->writeEntry("DateRegex", m_date);
- kconfig->writeEntry("DateFormatRegex", m_dateformat);
- kconfig->writeEntry("SymbolRegex", m_sym);
+ TDEConfig *tdeconfig = TDEGlobal::config();
+ tdeconfig->setGroup(TQString("Online-Quote-Source-%1").arg(m_name));
+ tdeconfig->writeEntry("URL", m_url);
+ tdeconfig->writeEntry("PriceRegex", m_price);
+ tdeconfig->writeEntry("DateRegex", m_date);
+ tdeconfig->writeEntry("DateFormatRegex", m_dateformat);
+ tdeconfig->writeEntry("SymbolRegex", m_sym);
if(m_skipStripping)
- kconfig->writeEntry("SkipStripping", m_skipStripping);
+ tdeconfig->writeEntry("SkipStripping", m_skipStripping);
else
- kconfig->deleteEntry("SkipStripping");
+ tdeconfig->deleteEntry("SkipStripping");
}
void WebPriceQuoteSource::rename(const TQString& name)
@@ -717,8 +717,8 @@ void WebPriceQuoteSource::rename(const TQString& name)
void WebPriceQuoteSource::remove(void) const
{
- TDEConfig *kconfig = TDEGlobal::config();
- kconfig->deleteGroup(TQString("Online-Quote-Source-%1").arg(m_name));
+ TDEConfig *tdeconfig = TDEGlobal::config();
+ tdeconfig->deleteGroup(TQString("Online-Quote-Source-%1").arg(m_name));
}
//