From fe50f29e05b1318b520a33179ea50c88b6e2c89a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 00:53:39 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- kmymoney2/converter/webpricequote.cpp | 78 +++++++++++++++++------------------ 1 file changed, 39 insertions(+), 39 deletions(-) (limited to 'kmymoney2/converter/webpricequote.cpp') 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 -#include +#include +#include #include #include #include #include -#include +#include #include #include #include @@ -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)); } // -- cgit v1.2.1