Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4

r14.0.x
Timothy Pearson 12 years ago
parent 6c1d52c824
commit 6078e14f28

@ -4899,7 +4899,7 @@
* Added ability to configure reports to have days or weeks as the column. * Added ability to configure reports to have days or weeks as the column.
2005-11-25 Thomas Baumgart <ipwizard@users.sourceforge.net> 2005-11-25 Thomas Baumgart <ipwizard@users.sourceforge.net>
* Reworked settings dialog to be based on KConfigDialog * Reworked settings dialog to be based on TDEConfigDialog
* Allow quit when trying to open the same file as already opened in * Allow quit when trying to open the same file as already opened in
another instance of KMyMoney another instance of KMyMoney
* Install kgpgfile.h * Install kgpgfile.h
@ -9312,7 +9312,7 @@
it doesn't always update the options properly. But you can it doesn't always update the options properly. But you can
hand edit $HOME/.kde/share/config/kmymoney2rc. hand edit $HOME/.kde/share/config/kmymoney2rc.
* Removed KMyMoneySettings class and changed all references to * Removed KMyMoneySettings class and changed all references to
use the KConfig class. use the TDEConfig class.
2001-07-06 Michael Edwardes <mte@users.sourceforge.net> 2001-07-06 Michael Edwardes <mte@users.sourceforge.net>
* Improved the payee editor, adding a delete button and improving * Improved the payee editor, adding a delete button and improving

@ -96,7 +96,7 @@ That should be it.
<title>References</title> <title>References</title>
<para> <para>
A more complete - but generic version - can be found on <ulink url="http://techbase.kde.org/Development/Tutorials/Using_KConfig_XT">http://techbase.kde.org/Development/Tutorials/Using_KConfig_XT</ulink> . Currently, &app; does not use the <filename>CMakeLists.txt</filename> file but the above mentioned <filename>Makefile.am</filename> approach. You can safely skip the section about CMakeLists.txt. A more complete - but generic version - can be found on <ulink url="http://techbase.kde.org/Development/Tutorials/Using_TDEConfig_XT">http://techbase.kde.org/Development/Tutorials/Using_TDEConfig_XT</ulink> . Currently, &app; does not use the <filename>CMakeLists.txt</filename> file but the above mentioned <filename>Makefile.am</filename> approach. You can safely skip the section about CMakeLists.txt.
</para> </para>
</sect1> </sect1>

@ -53,7 +53,7 @@ This appendix contains an example of a
* *
* It uses KDialogBase to implement it's interface. * It uses KDialogBase to implement it's interface.
* *
* It uses the global KConfig object to read and write the application * It uses the global TDEConfig object to read and write the application
* settings. * settings.
* *
* @see KDialogBase * @see KDialogBase
@ -398,12 +398,12 @@ void KSettingsDlg::setPageList()
qtabwidget->addTab(qvboxInsideTab2, i18n("Cell Font")); qtabwidget->addTab(qvboxInsideTab2, i18n("Cell Font"));
} }
/** Read all the settings in from the global KConfig object and set all the /** Read all the settings in from the global TDEConfig object and set all the
* widgets appropriately. * widgets appropriately.
**/ **/
void KSettingsDlg::configRead() void KSettingsDlg::configRead()
{ {
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup("Settings Dialog"); kconfig->setGroup("Settings Dialog");
QSize *qsizeDefaultSize = new QSize(470,470); QSize *qsizeDefaultSize = new QSize(470,470);
this->resize(kconfig->readSizeEntry("Geometry", qsizeDefaultSize)); this->resize(kconfig->readSizeEntry("Geometry", qsizeDefaultSize));
@ -445,11 +445,11 @@ void KSettingsDlg::configRead()
m_qradiobuttonOtherRow->setChecked(!m_bTempColourPerTransaction); m_qradiobuttonOtherRow->setChecked(!m_bTempColourPerTransaction);
} }
/** Write out all the settings to the global KConfig object. /** Write out all the settings to the global TDEConfig object.
**/ **/
void KSettingsDlg::configWrite() void KSettingsDlg::configWrite()
{ {
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup("Settings Dialog"); kconfig->setGroup("Settings Dialog");
kconfig->writeEntry("Geometry", this->size() ); kconfig->writeEntry("Geometry", this->size() );
@ -505,7 +505,7 @@ and 3"));
void KSettingsDlg::slotCancel() void KSettingsDlg::slotCancel()
{ {
// make sure the config object is the same as we left it // make sure the config object is the same as we left it
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup("List Options"); kconfig->setGroup("List Options");
kconfig->writeEntry("listColor", m_qcolorTempList); kconfig->writeEntry("listColor", m_qcolorTempList);
kconfig->writeEntry("listBGColor", m_qcolorTempListBG); kconfig->writeEntry("listBGColor", m_qcolorTempListBG);

@ -186,7 +186,7 @@ void MyMoneyQifProfile::clear(void)
void MyMoneyQifProfile::loadProfile(const TQString& name) void MyMoneyQifProfile::loadProfile(const TQString& name)
{ {
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup(name); config->setGroup(name);
clear(); clear();
@ -232,7 +232,7 @@ void MyMoneyQifProfile::loadProfile(const TQString& name)
void MyMoneyQifProfile::saveProfile(void) void MyMoneyQifProfile::saveProfile(void)
{ {
if(m_isDirty == true) { if(m_isDirty == true) {
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup(m_profileName); config->setGroup(m_profileName);
config->writeEntry("Description", m_profileDescription); config->writeEntry("Description", m_profileDescription);

@ -402,10 +402,10 @@ bool MyMoneyQifReader::startImport(void)
m_filename = TQString(); m_filename = TQString();
m_data.clear(); m_data.clear();
if(!KIO::NetAccess::download(m_url, m_filename, NULL)) { if(!TDEIO::NetAccess::download(m_url, m_filename, NULL)) {
KMessageBox::detailedError(0, KMessageBox::detailedError(0,
i18n("Error while loading file '%1'!").arg(m_url.prettyURL()), i18n("Error while loading file '%1'!").arg(m_url.prettyURL()),
KIO::NetAccess::lastErrorString(), TDEIO::NetAccess::lastErrorString(),
i18n("File access error")); i18n("File access error"));
return false; return false;
} }
@ -459,7 +459,7 @@ bool MyMoneyQifReader::finishImport(void)
m_file = 0; m_file = 0;
// remove the Don't ask again entries // remove the Don't ask again entries
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup(TQString::fromLatin1("Notification Messages")); config->setGroup(TQString::fromLatin1("Notification Messages"));
TQStringList::ConstIterator it; TQStringList::ConstIterator it;
@ -479,7 +479,7 @@ bool MyMoneyQifReader::finishImport(void)
m_file = 0; m_file = 0;
// remove the Don't ask again entries // remove the Don't ask again entries
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup(TQString::fromLatin1("Notification Messages")); config->setGroup(TQString::fromLatin1("Notification Messages"));
TQStringList::ConstIterator it; TQStringList::ConstIterator it;
@ -500,7 +500,7 @@ bool MyMoneyQifReader::finishImport(void)
// if a temporary file was constructed by NetAccess::download, // if a temporary file was constructed by NetAccess::download,
// then it will be removed with the next call. Otherwise, it // then it will be removed with the next call. Otherwise, it
// stays untouched on the local filesystem // stays untouched on the local filesystem
KIO::NetAccess::removeTempFile(m_filename); TDEIO::NetAccess::removeTempFile(m_filename);
#if 0 #if 0
// Add the transaction entries // Add the transaction entries

@ -401,7 +401,7 @@ bool MyMoneyStatementReader::import(const MyMoneyStatement& s, TQStringList& mes
messages += TQString(); messages += TQString();
// remove the Don't ask again entries // remove the Don't ask again entries
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup(TQString::fromLatin1("Notification Messages")); config->setGroup(TQString::fromLatin1("Notification Messages"));
TQStringList::ConstIterator it; TQStringList::ConstIterator it;

@ -67,11 +67,11 @@ bool MyMoneyTemplate::loadTemplate(const KURL& url)
} else { } else {
bool rc; bool rc;
rc = KIO::NetAccess::download(url, filename, tqApp->mainWidget()); rc = TDEIO::NetAccess::download(url, filename, tqApp->mainWidget());
if(!rc) { if(!rc) {
KMessageBox::detailedError(tqApp->mainWidget(), KMessageBox::detailedError(tqApp->mainWidget(),
i18n("Error while loading file '%1'!").arg(url.url()), i18n("Error while loading file '%1'!").arg(url.url()),
KIO::NetAccess::lastErrorString(), TDEIO::NetAccess::lastErrorString(),
i18n("File access error")); i18n("File access error"));
return false; return false;
} }
@ -105,7 +105,7 @@ bool MyMoneyTemplate::loadTemplate(const KURL& url)
// if a temporary file was constructed by NetAccess::download, // if a temporary file was constructed by NetAccess::download,
// then it will be removed with the next call. Otherwise, it // then it will be removed with the next call. Otherwise, it
// stays untouched on the local filesystem // stays untouched on the local filesystem
KIO::NetAccess::removeTempFile(filename); TDEIO::NetAccess::removeTempFile(filename);
return rc; return rc;
} }
@ -403,7 +403,7 @@ bool MyMoneyTemplate::saveTemplate(const KURL& url)
} else { } else {
KTempFile tmpfile; KTempFile tmpfile;
saveToLocalFile(tmpfile.file()); saveToLocalFile(tmpfile.file());
if(!KIO::NetAccess::upload(tmpfile.name(), url, NULL)) if(!TDEIO::NetAccess::upload(tmpfile.name(), url, NULL))
throw new MYMONEYEXCEPTION(i18n("Unable to upload to '%1'").arg(url.url())); throw new MYMONEYEXCEPTION(i18n("Unable to upload to '%1'").arg(url.url()));
tmpfile.unlink(); tmpfile.unlink();
} }

@ -122,7 +122,7 @@ bool WebPriceQuote::launchNative( const TQString& _symbol, const TQString& _id,
url = KURL::fromPathOrURL(m_source.m_url.arg(m_symbol)); url = KURL::fromPathOrURL(m_source.m_url.arg(m_symbol));
// If we're running a non-interactive session (with no UI), we can't // 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'. // way... with 'wget'.
// //
// Note that a 'non-interactive' session right now means only the test // 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 else
{ {
emit error(KIO::NetAccess::lastErrorString()); emit error(TDEIO::NetAccess::lastErrorString());
slotParseQuote(TQString()); slotParseQuote(TQString());
} }
} }
@ -199,7 +199,7 @@ bool WebPriceQuote::download(const KURL& u, TQString & target, TQWidget* window)
{ {
m_tmpFile = TQString(); 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()) if (target.isEmpty())
{ {
KTempFile tmpFile; KTempFile tmpFile;
@ -211,22 +211,22 @@ bool WebPriceQuote::download(const KURL& u, TQString & target, TQWidget* window)
dest.setPath( target ); 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 bJobOK = true; // success unless further error occurs
KIO::Scheduler::checkSlaveOnHold(true); TDEIO::Scheduler::checkSlaveOnHold(true);
KIO::Job * job = KIO::file_copy( u, dest, -1, true, false, false ); TDEIO::Job * job = TDEIO::file_copy( u, dest, -1, true, false, false );
job->setWindow (window); job->setWindow (window);
job->addMetaData("cache", "reload"); // bypass cache job->addMetaData("cache", "reload"); // bypass cache
connect( job, TQT_SIGNAL( result (KIO::Job *) ), connect( job, TQT_SIGNAL( result (TDEIO::Job *) ),
this, TQT_SLOT( slotResult (KIO::Job *) ) ); this, TQT_SLOT( slotResult (TDEIO::Job *) ) );
enter_loop(); enter_loop();
return bJobOK; 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 // If a troll sees this, he kills me
void tqt_enter_modal( TQWidget *widget ); void tqt_enter_modal( TQWidget *widget );
@ -241,7 +241,7 @@ void WebPriceQuote::enter_loop(void)
tqt_leave_modal(&dummy); tqt_leave_modal(&dummy);
} }
void WebPriceQuote::slotResult( KIO::Job * job ) void WebPriceQuote::slotResult( TDEIO::Job * job )
{ {
lastErrorCode = job->error(); lastErrorCode = job->error();
bJobOK = !job->error(); bJobOK = !job->error();
@ -254,7 +254,7 @@ void WebPriceQuote::slotResult( KIO::Job * job )
tqApp->exit_loop(); 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, bool WebPriceQuote::launchFinanceQuote ( const TQString& _symbol, const TQString& _id,
const TQString& _sourcename ) { const TQString& _sourcename ) {
@ -598,7 +598,7 @@ TQStringList WebPriceQuote::quoteSources (const _quoteSystemE _system) {
TQStringList WebPriceQuote::quoteSourcesNative() TQStringList WebPriceQuote::quoteSourcesNative()
{ {
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
TQStringList groups = kconfig->groupList(); TQStringList groups = kconfig->groupList();
TQStringList::Iterator it; TQStringList::Iterator it;
@ -683,7 +683,7 @@ WebPriceQuoteSource::WebPriceQuoteSource(const TQString& name, const TQString& u
WebPriceQuoteSource::WebPriceQuoteSource(const TQString& name) WebPriceQuoteSource::WebPriceQuoteSource(const TQString& name)
{ {
m_name = name; m_name = name;
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup(TQString("Online-Quote-Source-%1").arg(m_name)); kconfig->setGroup(TQString("Online-Quote-Source-%1").arg(m_name));
m_sym = kconfig->readEntry("SymbolRegex"); m_sym = kconfig->readEntry("SymbolRegex");
m_date = kconfig->readEntry("DateRegex"); m_date = kconfig->readEntry("DateRegex");
@ -695,7 +695,7 @@ WebPriceQuoteSource::WebPriceQuoteSource(const TQString& name)
void WebPriceQuoteSource::write(void) const void WebPriceQuoteSource::write(void) const
{ {
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup(TQString("Online-Quote-Source-%1").arg(m_name)); kconfig->setGroup(TQString("Online-Quote-Source-%1").arg(m_name));
kconfig->writeEntry("URL", m_url); kconfig->writeEntry("URL", m_url);
kconfig->writeEntry("PriceRegex", m_price); kconfig->writeEntry("PriceRegex", m_price);
@ -717,7 +717,7 @@ void WebPriceQuoteSource::rename(const TQString& name)
void WebPriceQuoteSource::remove(void) const void WebPriceQuoteSource::remove(void) const
{ {
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->deleteGroup(TQString("Online-Quote-Source-%1").arg(m_name)); kconfig->deleteGroup(TQString("Online-Quote-Source-%1").arg(m_name));
} }

@ -30,7 +30,7 @@
// KDE Headers // KDE Headers
#include <kprocess.h> #include <kprocess.h>
namespace KIO { namespace TDEIO {
class Job; class Job;
}; };
@ -182,7 +182,7 @@ private:
void removeTempFile(const TQString& tmpFile); void removeTempFile(const TQString& tmpFile);
private slots: private slots:
void slotResult( KIO::Job * job ); void slotResult( TDEIO::Job * job );
private: private:
@ -204,7 +204,7 @@ private:
/** /**
* Whether the download succeeded or not. Taken from KIO::NetAccess * Whether the download succeeded or not. Taken from TDEIO::NetAccess
*/ */
bool bJobOK; bool bJobOK;
static TQString* lastErrorMsg; static TQString* lastErrorMsg;

@ -79,7 +79,7 @@ void KBackupDlg::chooseButtonClicked()
void KBackupDlg::readConfig(void) void KBackupDlg::readConfig(void)
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
mountCheckBox->setChecked(config->readBoolEntry("KBackupDlg_mountDevice", false)); mountCheckBox->setChecked(config->readBoolEntry("KBackupDlg_mountDevice", false));
txtMountPoint->setText(config->readEntry("KBackupDlg_BackupMountPoint", "/mnt/floppy")); txtMountPoint->setText(config->readEntry("KBackupDlg_BackupMountPoint", "/mnt/floppy"));
@ -87,7 +87,7 @@ void KBackupDlg::readConfig(void)
void KBackupDlg::writeConfig(void) void KBackupDlg::writeConfig(void)
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
config->writeEntry("KBackupDlg_mountDevice", mountCheckBox->isChecked()); config->writeEntry("KBackupDlg_mountDevice", mountCheckBox->isChecked());
config->writeEntry("KBackupDlg_BackupMountPoint", txtMountPoint->text()); config->writeEntry("KBackupDlg_BackupMountPoint", txtMountPoint->text());

@ -88,14 +88,14 @@ TQString KChooseImportExportDlg::importExportType(void)
void KChooseImportExportDlg::readConfig(void) void KChooseImportExportDlg::readConfig(void)
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
m_lastType = config->readEntry("KChooseImportExportDlg_LastType"); m_lastType = config->readEntry("KChooseImportExportDlg_LastType");
} }
void KChooseImportExportDlg::writeConfig(void) void KChooseImportExportDlg::writeConfig(void)
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
config->writeEntry("KChooseImportExportDlg_LastType", typeCombo->currentText()); config->writeEntry("KChooseImportExportDlg_LastType", typeCombo->currentText());
config->sync(); config->sync();

@ -214,7 +214,7 @@ void KCsvProgressDlg::slotFileTextChanged(const TQString& text)
void KCsvProgressDlg::readConfig(void) void KCsvProgressDlg::readConfig(void)
{ {
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup("Last Use Settings"); kconfig->setGroup("Last Use Settings");
m_kmymoneydateStart->setDate(kconfig->readDateTimeEntry("KCsvProgressDlg_StartDate").date()); m_kmymoneydateStart->setDate(kconfig->readDateTimeEntry("KCsvProgressDlg_StartDate").date());
m_kmymoneydateEnd->setDate(kconfig->readDateTimeEntry("KCsvProgressDlg_EndDate").date()); m_kmymoneydateEnd->setDate(kconfig->readDateTimeEntry("KCsvProgressDlg_EndDate").date());
@ -227,7 +227,7 @@ void KCsvProgressDlg::readConfig(void)
void KCsvProgressDlg::writeConfig(void) void KCsvProgressDlg::writeConfig(void)
{ {
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup("Last Use Settings"); kconfig->setGroup("Last Use Settings");
kconfig->writeEntry("KCsvProgressDlg_LastFile", m_qlineeditFile->text()); kconfig->writeEntry("KCsvProgressDlg_LastFile", m_qlineeditFile->text());
kconfig->writeEntry("KCsvProgressDlg_StartDate", TQDateTime(m_kmymoneydateStart->date())); kconfig->writeEntry("KCsvProgressDlg_StartDate", TQDateTime(m_kmymoneydateStart->date()));

@ -169,7 +169,7 @@ KEquityPriceUpdateDlg::KEquityPriceUpdateDlg(TQWidget *parent, const TQString& s
// previous versions of this dialog allowed to store a "Don't ask again" switch. // previous versions of this dialog allowed to store a "Don't ask again" switch.
// Since we don't support it anymore, we just get rid of it // Since we don't support it anymore, we just get rid of it
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup("Notification Messages"); config->setGroup("Notification Messages");
config->deleteEntry("KEquityPriceUpdateDlg::slotQuoteFailed::Price Update Failed"); config->deleteEntry("KEquityPriceUpdateDlg::slotQuoteFailed::Price Update Failed");
} }

@ -130,7 +130,7 @@ void KExportDlg::loadProfiles(const bool selectLast)
m_profileComboBox->clear(); m_profileComboBox->clear();
TQStringList list; TQStringList list;
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup("Profiles"); config->setGroup("Profiles");
list = config->readListEntry("profiles"); list = config->readListEntry("profiles");
@ -156,7 +156,7 @@ void KExportDlg::slotOkClicked()
void KExportDlg::readConfig(void) void KExportDlg::readConfig(void)
{ {
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup("Last Use Settings"); kconfig->setGroup("Last Use Settings");
m_qlineeditFile->setText(kconfig->readEntry("KExportDlg_LastFile")); m_qlineeditFile->setText(kconfig->readEntry("KExportDlg_LastFile"));
m_qcheckboxAccount->setChecked(kconfig->readBoolEntry("KExportDlg_AccountOpt", true)); m_qcheckboxAccount->setChecked(kconfig->readBoolEntry("KExportDlg_AccountOpt", true));
@ -169,7 +169,7 @@ void KExportDlg::readConfig(void)
void KExportDlg::writeConfig(void) void KExportDlg::writeConfig(void)
{ {
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup("Last Use Settings"); kconfig->setGroup("Last Use Settings");
kconfig->writeEntry("KExportDlg_LastFile", m_qlineeditFile->text()); kconfig->writeEntry("KExportDlg_LastFile", m_qlineeditFile->text());
kconfig->writeEntry("KExportDlg_AccountOpt", m_qcheckboxAccount->isChecked()); kconfig->writeEntry("KExportDlg_AccountOpt", m_qcheckboxAccount->isChecked());

@ -43,7 +43,7 @@
* It relies upon the QIF file handling routines in MyMoneyQifProfile and * It relies upon the QIF file handling routines in MyMoneyQifProfile and
* MyMoneyQifWriter to do the actual writing of QIF files. * MyMoneyQifWriter to do the actual writing of QIF files.
* *
* It uses the global KConfig object to read and write the application * It uses the global TDEConfig object to read and write the application
* settings. * settings.
* *
* @see MyMoneyAccount, MyMoneyQifProfile, MyMoneyQifProfileEditor * @see MyMoneyAccount, MyMoneyQifProfile, MyMoneyQifProfileEditor

@ -130,14 +130,14 @@ void KImportDlg::slotOkClicked()
void KImportDlg::readConfig(void) void KImportDlg::readConfig(void)
{ {
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup("Last Use Settings"); kconfig->setGroup("Last Use Settings");
m_qlineeditFile->setText(kconfig->readEntry("KImportDlg_LastFile")); m_qlineeditFile->setText(kconfig->readEntry("KImportDlg_LastFile"));
} }
void KImportDlg::writeConfig(void) void KImportDlg::writeConfig(void)
{ {
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup("Last Use Settings"); kconfig->setGroup("Last Use Settings");
kconfig->writeEntry("KImportDlg_LastFile", m_qlineeditFile->text()); kconfig->writeEntry("KImportDlg_LastFile", m_qlineeditFile->text());
kconfig->writeEntry("KImportDlg_LastProfile", m_profileComboBox->currentText()); kconfig->writeEntry("KImportDlg_LastProfile", m_profileComboBox->currentText());
@ -147,7 +147,7 @@ void KImportDlg::writeConfig(void)
/** Make sure the text input is ok */ /** Make sure the text input is ok */
void KImportDlg::slotFileTextChanged(const TQString& text) void KImportDlg::slotFileTextChanged(const TQString& text)
{ {
if (!text.isEmpty() && KIO::NetAccess::exists(text, true, tqApp->mainWidget())) { if (!text.isEmpty() && TDEIO::NetAccess::exists(text, true, tqApp->mainWidget())) {
// m_qcomboboxDateFormat->setEnabled(true); // m_qcomboboxDateFormat->setEnabled(true);
m_qbuttonOk->setEnabled(true); m_qbuttonOk->setEnabled(true);
m_qlineeditFile->setText(text); m_qlineeditFile->setText(text);
@ -188,7 +188,7 @@ void KImportDlg::loadProfiles(const bool selectLast)
m_profileComboBox->clear(); m_profileComboBox->clear();
TQStringList list; TQStringList list;
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup("Profiles"); config->setGroup("Profiles");
list = config->readListEntry("profiles"); list = config->readListEntry("profiles");

@ -42,7 +42,7 @@
* It relies upon the QIF file handling routines in MyMoneyAccount to do * It relies upon the QIF file handling routines in MyMoneyAccount to do
* the actual writing of QIF files. * the actual writing of QIF files.
* *
* It uses the global KConfig object to read and write the application * It uses the global TDEConfig object to read and write the application
* settings. * settings.
* *
* @see MyMoneyAccount * @see MyMoneyAccount

@ -128,7 +128,7 @@ void KStartDlg::readConfig()
TQString value; TQString value;
unsigned int i = 1; unsigned int i = 1;
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
KIconLoader *il = TDEGlobal::iconLoader(); KIconLoader *il = TDEGlobal::iconLoader();
// read file list // read file list
@ -165,7 +165,7 @@ void KStartDlg::readConfig()
/** Write config window */ /** Write config window */
void KStartDlg::writeConfig() void KStartDlg::writeConfig()
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Start Dialog"); config->setGroup("Start Dialog");
config->writeEntry("Geometry", this->size() ); config->writeEntry("Geometry", this->size() );
@ -195,9 +195,9 @@ void KStartDlg::slotOk()
bool KStartDlg::fileExists(KURL url) bool KStartDlg::fileExists(KURL url)
{ {
#if KDE_IS_VERSION(3,2,0) #if KDE_IS_VERSION(3,2,0)
return KIO::NetAccess::exists(url, true, this); return TDEIO::NetAccess::exists(url, true, this);
#else #else
return KIO::NetAccess::exists(url); return TDEIO::NetAccess::exists(url);
#endif #endif
} }

@ -59,7 +59,7 @@ MyMoneyQifProfileNameValidator::~MyMoneyQifProfileNameValidator()
TQValidator::State MyMoneyQifProfileNameValidator::validate(TQString& name, int&) const TQValidator::State MyMoneyQifProfileNameValidator::validate(TQString& name, int&) const
{ {
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup("Profiles"); config->setGroup("Profiles");
TQStringList list = config->readListEntry("profiles"); TQStringList list = config->readListEntry("profiles");
@ -133,7 +133,7 @@ MyMoneyQifProfileEditor::MyMoneyQifProfileEditor(const bool edit, TQWidget *pare
MyMoneyQifProfileEditor::~MyMoneyQifProfileEditor() MyMoneyQifProfileEditor::~MyMoneyQifProfileEditor()
{ {
if(m_inEdit && m_isDirty && m_isAccepted) { if(m_inEdit && m_isDirty && m_isAccepted) {
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->sync(); config->sync();
} else { } else {
slotReset(); slotReset();
@ -227,7 +227,7 @@ void MyMoneyQifProfileEditor::loadProfileListFromConfig(void)
m_profileListBox->clear(); m_profileListBox->clear();
TQStringList list; TQStringList list;
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup("Profiles"); config->setGroup("Profiles");
list = config->readListEntry("profiles"); list = config->readListEntry("profiles");
@ -313,7 +313,7 @@ void MyMoneyQifProfileEditor::showProfile(void)
void MyMoneyQifProfileEditor::deleteProfile(const TQString& name) void MyMoneyQifProfileEditor::deleteProfile(const TQString& name)
{ {
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->deleteGroup("Profile-" + name); config->deleteGroup("Profile-" + name);
@ -327,7 +327,7 @@ void MyMoneyQifProfileEditor::deleteProfile(const TQString& name)
void MyMoneyQifProfileEditor::addProfile(const TQString& name) void MyMoneyQifProfileEditor::addProfile(const TQString& name)
{ {
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup("Profiles"); config->setGroup("Profiles");
TQStringList list = config->readListEntry("profiles"); TQStringList list = config->readListEntry("profiles");
@ -348,7 +348,7 @@ void MyMoneyQifProfileEditor::slotOk(void)
m_profile.saveProfile(); m_profile.saveProfile();
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->sync(); config->sync();
m_isAccepted = true; m_isAccepted = true;
@ -360,7 +360,7 @@ void MyMoneyQifProfileEditor::slotReset(void)
// first flush any changes // first flush any changes
m_profile.saveProfile(); m_profile.saveProfile();
KConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->rollback(); config->rollback();
config->reparseConfiguration(); config->reparseConfiguration();

@ -951,9 +951,9 @@ void KMyMoney2App::slotFileOpenRecent(const KURL& url)
if(!duplicate) { if(!duplicate) {
#if KDE_IS_VERSION(3,2,0) #if KDE_IS_VERSION(3,2,0)
if((url.protocol() == "sql") || (url.isValid() && KIO::NetAccess::exists(url, true, this))) { if((url.protocol() == "sql") || (url.isValid() && TDEIO::NetAccess::exists(url, true, this))) {
#else #else
if((url.protocol() == "sql") || (url.isValid() && KIO::NetAccess::exists(url))) { if((url.protocol() == "sql") || (url.isValid() && TDEIO::NetAccess::exists(url))) {
#endif #endif
KURL dburl = url; KURL dburl = url;
// check if a password is needed. it may be if the URL came from the last/recent file list // check if a password is needed. it may be if the URL came from the last/recent file list
@ -1791,7 +1791,7 @@ bool KMyMoney2App::okToWriteFile(const KURL& url)
// check if the file exists and warn the user // check if the file exists and warn the user
bool reallySaveFile = true; bool reallySaveFile = true;
if(KIO::NetAccess::exists(url, true, this)) { if(TDEIO::NetAccess::exists(url, true, this)) {
if(KMessageBox::warningYesNo(this, TQString("<qt>")+i18n("The file <b>%1</b> already exists. Do you really want to override it?").arg(url.prettyURL(0, KURL::StripFileProtocol))+TQString("</qt>"), i18n("File already exists")) != KMessageBox::Yes) if(KMessageBox::warningYesNo(this, TQString("<qt>")+i18n("The file <b>%1</b> already exists. Do you really want to override it?").arg(url.prettyURL(0, KURL::StripFileProtocol))+TQString("</qt>"), i18n("File already exists")) != KMessageBox::Yes)
reallySaveFile = false; reallySaveFile = false;
} }
@ -1801,11 +1801,11 @@ bool KMyMoney2App::okToWriteFile(const KURL& url)
void KMyMoney2App::slotSettings(void) void KMyMoney2App::slotSettings(void)
{ {
// if we already have an instance of the settings dialog, then use it // if we already have an instance of the settings dialog, then use it
if(KConfigDialog::showDialog("KMyMoney-Settings")) if(TDEConfigDialog::showDialog("KMyMoney-Settings"))
return; return;
// otherwise, we have to create it // otherwise, we have to create it
KConfigDialog* dlg = new KConfigDialog(this, "KMyMoney-Settings", KMyMoneyGlobalSettings::self(), TDEConfigDialog* dlg = new TDEConfigDialog(this, "KMyMoney-Settings", KMyMoneyGlobalSettings::self(),
KDialogBase::IconList, KDialogBase::Default | KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Help, KDialogBase::Ok, true); KDialogBase::IconList, KDialogBase::Default | KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Help, KDialogBase::Ok, true);
// create the pages ... // create the pages ...
@ -2408,7 +2408,7 @@ void KMyMoney2App::slotCategoryNew(MyMoneyAccount& account, const MyMoneyAccount
} else { } else {
// we should not keep the 'no' setting because that can confuse people like // we should not keep the 'no' setting because that can confuse people like
// I have seen in some usability tests. So we just delete it right away. // I have seen in some usability tests. So we just delete it right away.
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
if(kconfig) { if(kconfig) {
kconfig->setGroup(TQString::fromLatin1("Notification Messages")); kconfig->setGroup(TQString::fromLatin1("Notification Messages"));
kconfig->deleteEntry(TQString::fromLatin1("CreateNewCategories")); kconfig->deleteEntry(TQString::fromLatin1("CreateNewCategories"));
@ -2582,7 +2582,7 @@ void KMyMoney2App::slotInvestmentDelete(void)
} else { } else {
// we should not keep the 'no' setting because that can confuse people like // we should not keep the 'no' setting because that can confuse people like
// I have seen in some usability tests. So we just delete it right away. // I have seen in some usability tests. So we just delete it right away.
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
if(kconfig) { if(kconfig) {
kconfig->setGroup(TQString::fromLatin1("Notification Messages")); kconfig->setGroup(TQString::fromLatin1("Notification Messages"));
kconfig->deleteEntry(TQString::fromLatin1("DeleteInvestment")); kconfig->deleteEntry(TQString::fromLatin1("DeleteInvestment"));
@ -3777,7 +3777,7 @@ void KMyMoney2App::slotPayeeNew(const TQString& newnameBase, TQString& id)
doit = false; doit = false;
// we should not keep the 'no' setting because that can confuse people like // we should not keep the 'no' setting because that can confuse people like
// I have seen in some usability tests. So we just delete it right away. // I have seen in some usability tests. So we just delete it right away.
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
if(kconfig) { if(kconfig) {
kconfig->setGroup(TQString::fromLatin1("Notification Messages")); kconfig->setGroup(TQString::fromLatin1("Notification Messages"));
kconfig->deleteEntry(dontAskAgain); kconfig->deleteEntry(dontAskAgain);
@ -5751,7 +5751,7 @@ void KMyMoney2App::slotCheckSchedules(void)
void KMyMoney2App::writeLastUsedDir(const TQString& directory) void KMyMoney2App::writeLastUsedDir(const TQString& directory)
{ {
//get global config object for our app. //get global config object for our app.
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
if(kconfig) if(kconfig)
{ {
kconfig->setGroup("General Options"); kconfig->setGroup("General Options");
@ -5764,7 +5764,7 @@ void KMyMoney2App::writeLastUsedDir(const TQString& directory)
void KMyMoney2App::writeLastUsedFile(const TQString& fileName) void KMyMoney2App::writeLastUsedFile(const TQString& fileName)
{ {
//get global config object for our app. //get global config object for our app.
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
if(kconfig) if(kconfig)
{ {
kconfig->setGroup("General Options"); kconfig->setGroup("General Options");
@ -5781,7 +5781,7 @@ TQString KMyMoney2App::readLastUsedDir(void) const
TQString str; TQString str;
//get global config object for our app. //get global config object for our app.
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
if(kconfig) if(kconfig)
{ {
kconfig->setGroup("General Options"); kconfig->setGroup("General Options");
@ -5801,7 +5801,7 @@ TQString KMyMoney2App::readLastUsedFile(void) const
TQString str; TQString str;
// get global config object for our app. // get global config object for our app.
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
if(kconfig) if(kconfig)
{ {
kconfig->setGroup("General Options"); kconfig->setGroup("General Options");

@ -1194,7 +1194,7 @@ private:
Private* d; Private* d;
/** the configuration object of the application */ /** the configuration object of the application */
KConfig *config; TDEConfig *config;
TQMap<TQString,KMyMoneyPlugin::ImporterPlugin*> m_importerPlugins; TQMap<TQString,KMyMoneyPlugin::ImporterPlugin*> m_importerPlugins;

@ -92,7 +92,7 @@ void KOfxDirectConnectDlg::init(void)
d->m_fpTrace.open(IO_WriteOnly | IO_Append); d->m_fpTrace.open(IO_WriteOnly | IO_Append);
} }
m_job = KIO::http_post( m_job = TDEIO::http_post(
m_connector.url(), m_connector.url(),
request, request,
true true
@ -109,9 +109,9 @@ void KOfxDirectConnectDlg::init(void)
} }
m_job->addMetaData("content-type", "Content-type: application/x-ofx" ); m_job->addMetaData("content-type", "Content-type: application/x-ofx" );
connect(m_job,TQT_SIGNAL(result(KIO::Job*)),this,TQT_SLOT(slotOfxFinished(KIO::Job*))); connect(m_job,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(slotOfxFinished(TDEIO::Job*)));
connect(m_job,TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)),this,TQT_SLOT(slotOfxData(KIO::Job*,const TQByteArray&))); connect(m_job,TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),this,TQT_SLOT(slotOfxData(TDEIO::Job*,const TQByteArray&)));
connect(m_job,TQT_SIGNAL(connected(KIO::Job*)),this,TQT_SLOT(slotOfxConnected(KIO::Job*))); connect(m_job,TQT_SIGNAL(connected(TDEIO::Job*)),this,TQT_SLOT(slotOfxConnected(TDEIO::Job*)));
setStatus(TQString("Contacting %1...").arg(m_connector.url())); setStatus(TQString("Contacting %1...").arg(m_connector.url()));
kProgress1->setTotalSteps(3); kProgress1->setTotalSteps(3);
@ -129,7 +129,7 @@ void KOfxDirectConnectDlg::setDetails(const TQString& _details)
kdDebug(2) << "DETAILS: " << _details << endl; kdDebug(2) << "DETAILS: " << _details << endl;
} }
void KOfxDirectConnectDlg::slotOfxConnected(KIO::Job*) void KOfxDirectConnectDlg::slotOfxConnected(TDEIO::Job*)
{ {
if ( m_tmpfile ) if ( m_tmpfile )
{ {
@ -143,7 +143,7 @@ void KOfxDirectConnectDlg::slotOfxConnected(KIO::Job*)
kProgress1->advance(1); kProgress1->advance(1);
} }
void KOfxDirectConnectDlg::slotOfxData(KIO::Job*,const TQByteArray& _ba) void KOfxDirectConnectDlg::slotOfxData(TDEIO::Job*,const TQByteArray& _ba)
{ {
if ( !m_tmpfile ) if ( !m_tmpfile )
// throw new MYMONEYEXCEPTION("Not currently connected!!"); // throw new MYMONEYEXCEPTION("Not currently connected!!");
@ -157,7 +157,7 @@ void KOfxDirectConnectDlg::slotOfxData(KIO::Job*,const TQByteArray& _ba)
setDetails(TQString("Got %1 bytes").arg(_ba.size())); setDetails(TQString("Got %1 bytes").arg(_ba.size()));
} }
void KOfxDirectConnectDlg::slotOfxFinished(KIO::Job* /* e */) void KOfxDirectConnectDlg::slotOfxFinished(TDEIO::Job* /* e */)
{ {
kProgress1->advance(1); kProgress1->advance(1);
setStatus("Completed."); setStatus("Completed.");

@ -31,7 +31,7 @@
class KTempFile; class KTempFile;
class KOfxDirectConnectDlgPrivate; class KOfxDirectConnectDlgPrivate;
namespace KIO namespace TDEIO
{ {
class Job; class Job;
class TransferJob; class TransferJob;
@ -64,9 +64,9 @@ signals:
void statementReady(const TQString& fname); void statementReady(const TQString& fname);
protected slots: protected slots:
void slotOfxFinished(KIO::Job*); void slotOfxFinished(TDEIO::Job*);
void slotOfxData(KIO::Job*,const TQByteArray&); void slotOfxData(TDEIO::Job*,const TQByteArray&);
void slotOfxConnected(KIO::Job*); void slotOfxConnected(TDEIO::Job*);
virtual void reject(void); virtual void reject(void);
protected: protected:
@ -75,7 +75,7 @@ protected:
KTempFile* m_tmpfile; KTempFile* m_tmpfile;
MyMoneyOfxConnector m_connector; MyMoneyOfxConnector m_connector;
KIO::TransferJob* m_job; TDEIO::TransferJob* m_job;
private: private:
/// \internal d-pointer class. /// \internal d-pointer class.

@ -305,7 +305,7 @@ OfxHttpsRequest::OfxHttpsRequest(const TQString& type, const KURL &url, const TQ
d->m_fpTrace.open(IO_WriteOnly | IO_Append); d->m_fpTrace.open(IO_WriteOnly | IO_Append);
} }
m_job = KIO::http_post(url, postData, showProgressInfo); m_job = TDEIO::http_post(url, postData, showProgressInfo);
m_job->addMetaData("content-type", "Content-type: application/x-ofx" ); m_job->addMetaData("content-type", "Content-type: application/x-ofx" );
if(d->m_fpTrace.isOpen()) { if(d->m_fpTrace.isOpen()) {
@ -314,9 +314,9 @@ OfxHttpsRequest::OfxHttpsRequest(const TQString& type, const KURL &url, const TQ
ts << "request:\n" << TQString(postData) << "\n" << "response:\n"; ts << "request:\n" << TQString(postData) << "\n" << "response:\n";
} }
connect(m_job,TQT_SIGNAL(result(KIO::Job*)),this,TQT_SLOT(slotOfxFinished(KIO::Job*))); connect(m_job,TQT_SIGNAL(result(TDEIO::Job*)),this,TQT_SLOT(slotOfxFinished(TDEIO::Job*)));
connect(m_job,TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)),this,TQT_SLOT(slotOfxData(KIO::Job*,const TQByteArray&))); connect(m_job,TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),this,TQT_SLOT(slotOfxData(TDEIO::Job*,const TQByteArray&)));
connect(m_job,TQT_SIGNAL(connected(KIO::Job*)),this,TQT_SLOT(slotOfxConnected(KIO::Job*))); connect(m_job,TQT_SIGNAL(connected(TDEIO::Job*)),this,TQT_SLOT(slotOfxConnected(TDEIO::Job*)));
tqApp->enter_loop(); tqApp->enter_loop();
} }
@ -328,13 +328,13 @@ OfxHttpsRequest::~OfxHttpsRequest()
} }
} }
void OfxHttpsRequest::slotOfxConnected(KIO::Job*) void OfxHttpsRequest::slotOfxConnected(TDEIO::Job*)
{ {
m_file.setName(m_dst.path()); m_file.setName(m_dst.path());
m_file.open(IO_WriteOnly); m_file.open(IO_WriteOnly);
} }
void OfxHttpsRequest::slotOfxData(KIO::Job*,const TQByteArray& _ba) void OfxHttpsRequest::slotOfxData(TDEIO::Job*,const TQByteArray& _ba)
{ {
if(m_file.isOpen()) { if(m_file.isOpen()) {
TQTextStream ts(&m_file); TQTextStream ts(&m_file);
@ -348,7 +348,7 @@ void OfxHttpsRequest::slotOfxData(KIO::Job*,const TQByteArray& _ba)
} }
} }
void OfxHttpsRequest::slotOfxFinished(KIO::Job* /* e */) void OfxHttpsRequest::slotOfxFinished(TDEIO::Job* /* e */)
{ {
if(m_file.isOpen()) { if(m_file.isOpen()) {
m_file.close(); m_file.close();

@ -29,7 +29,7 @@
// KDE Includes // KDE Includes
#include <kurl.h> #include <kurl.h>
namespace KIO namespace TDEIO
{ {
class Job; class Job;
class TransferJob; class TransferJob;
@ -89,9 +89,9 @@ public:
TQHttp::Error error(void) const { return m_error; } TQHttp::Error error(void) const { return m_error; }
protected slots: protected slots:
void slotOfxFinished(KIO::Job*); void slotOfxFinished(TDEIO::Job*);
void slotOfxData(KIO::Job*,const TQByteArray&); void slotOfxData(TDEIO::Job*,const TQByteArray&);
void slotOfxConnected(KIO::Job*); void slotOfxConnected(TDEIO::Job*);
private: private:
class Private; class Private;
@ -99,6 +99,6 @@ private:
KURL m_dst; KURL m_dst;
TQFile m_file; TQFile m_file;
TQHttp::Error m_error; TQHttp::Error m_error;
KIO::TransferJob* m_job; TDEIO::TransferJob* m_job;
}; };
#endif // OFXPARTNER_H #endif // OFXPARTNER_H

@ -97,7 +97,7 @@ KAccountsView::KAccountsView(TQWidget *parent, const char *name) :
for(int i=0; i < MaxViewTabs; ++i) for(int i=0; i < MaxViewTabs; ++i)
m_needReload[i] = false; m_needReload[i] = false;
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
m_tab->setCurrentPage(config->readNumEntry("KAccountsView_LastType", 0)); m_tab->setCurrentPage(config->readNumEntry("KAccountsView_LastType", 0));
@ -142,7 +142,7 @@ void KAccountsView::slotTabChanged(TQWidget* _tab)
AccountsViewTab tab = static_cast<AccountsViewTab>(m_tab->indexOf(_tab)); AccountsViewTab tab = static_cast<AccountsViewTab>(m_tab->indexOf(_tab));
// remember this setting for startup // remember this setting for startup
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
config->writeEntry("KAccountsView_LastType", tab); config->writeEntry("KAccountsView_LastType", tab);

@ -52,7 +52,7 @@ KForecastView::KForecastView(TQWidget *parent, const char *name) :
for(int i=0; i < MaxViewTabs; ++i) for(int i=0; i < MaxViewTabs; ++i)
m_needReload[i] = false; m_needReload[i] = false;
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
m_tab->setCurrentPage(config->readNumEntry("KForecastView_LastType", 0)); m_tab->setCurrentPage(config->readNumEntry("KForecastView_LastType", 0));
@ -83,7 +83,7 @@ void KForecastView::slotTabChanged(TQWidget* _tab)
ForecastViewTab tab = static_cast<ForecastViewTab>(m_tab->indexOf(_tab)); ForecastViewTab tab = static_cast<ForecastViewTab>(m_tab->indexOf(_tab));
// remember this setting for startup // remember this setting for startup
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
config->writeEntry("KForecastView_LastType", tab); config->writeEntry("KForecastView_LastType", tab);

@ -581,10 +581,10 @@ bool KMyMoneyView::readFile(const KURL& url)
filename = url.path(); filename = url.path();
} else { } else {
if(!KIO::NetAccess::download(url, filename, NULL)) { if(!TDEIO::NetAccess::download(url, filename, NULL)) {
KMessageBox::detailedError(this, KMessageBox::detailedError(this,
i18n("Error while loading file '%1'!").arg(url.url()), i18n("Error while loading file '%1'!").arg(url.url()),
KIO::NetAccess::lastErrorString(), TDEIO::NetAccess::lastErrorString(),
i18n("File access error")); i18n("File access error"));
return false; return false;
} }
@ -771,7 +771,7 @@ bool KMyMoneyView::readFile(const KURL& url)
// if a temporary file was constructed by NetAccess::download, // if a temporary file was constructed by NetAccess::download,
// then it will be removed with the next call. Otherwise, it // then it will be removed with the next call. Otherwise, it
// stays untouched on the local filesystem // stays untouched on the local filesystem
KIO::NetAccess::removeTempFile(filename); TDEIO::NetAccess::removeTempFile(filename);
return initializeStorage(); return initializeStorage();
} }
@ -890,7 +890,7 @@ bool KMyMoneyView::initializeStorage()
selectBaseCurrency(); selectBaseCurrency();
} }
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
int page; int page;
config->setGroup("General Options"); config->setGroup("General Options");
if(KMyMoneyGlobalSettings::startLastViewSelected() != 0) { if(KMyMoneyGlobalSettings::startLastViewSelected() != 0) {
@ -1154,7 +1154,7 @@ bool KMyMoneyView::saveFile(const KURL& url, const TQString& keyList)
} else { } else {
KTempFile tmpfile; KTempFile tmpfile;
saveToLocalFile(tmpfile.file(), pWriter, plaintext, keyList); saveToLocalFile(tmpfile.file(), pWriter, plaintext, keyList);
if(!KIO::NetAccess::upload(tmpfile.name(), url, NULL)) if(!TDEIO::NetAccess::upload(tmpfile.name(), url, NULL))
throw new MYMONEYEXCEPTION(i18n("Unable to upload to '%1'").arg(url.url())); throw new MYMONEYEXCEPTION(i18n("Unable to upload to '%1'").arg(url.url()));
tmpfile.unlink(); tmpfile.unlink();
} }
@ -1630,7 +1630,7 @@ void KMyMoneyView::progressCallback(int current, int total, const TQString& msg)
void KMyMoneyView::slotRememberPage(TQWidget* w) void KMyMoneyView::slotRememberPage(TQWidget* w)
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
config->writeEntry("LastViewSelected", pageIndex(w)); config->writeEntry("LastViewSelected", pageIndex(w));
config->sync(); config->sync();

@ -336,7 +336,7 @@ KPayeesView::KPayeesView(TQWidget *parent, const char *name ) :
layout10->addWidget(m_splitter); layout10->addWidget(m_splitter);
// use the size settings of the last run (if any) // use the size settings of the last run (if any)
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
TQValueList<int> sizes = config->readIntListEntry("KPayeesViewSplitterSize"); TQValueList<int> sizes = config->readIntListEntry("KPayeesViewSplitterSize");
if(sizes.size() == 2) { if(sizes.size() == 2) {
@ -409,7 +409,7 @@ KPayeesView::KPayeesView(TQWidget *parent, const char *name ) :
KPayeesView::~KPayeesView() KPayeesView::~KPayeesView()
{ {
// remember the splitter settings for startup // remember the splitter settings for startup
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
config->writeEntry("KPayeesViewSplitterSize", m_splitter->sizes()); config->writeEntry("KPayeesViewSplitterSize", m_splitter->sizes());
} }

@ -309,7 +309,7 @@ void KScheduledView::slotRearrange(void)
void KScheduledView::readConfig(void) void KScheduledView::readConfig(void)
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
m_openBills = config->readBoolEntry("KScheduleView_openBills", true); m_openBills = config->readBoolEntry("KScheduleView_openBills", true);
m_openDeposits = config->readBoolEntry("KScheduleView_openDeposits", true); m_openDeposits = config->readBoolEntry("KScheduleView_openDeposits", true);
@ -324,7 +324,7 @@ void KScheduledView::readConfig(void)
void KScheduledView::writeConfig(void) void KScheduledView::writeConfig(void)
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Last Use Settings"); config->setGroup("Last Use Settings");
config->writeEntry("KScheduleView_openBills", m_openBills); config->writeEntry("KScheduleView_openBills", m_openBills);
config->writeEntry("KScheduleView_openDeposits", m_openDeposits); config->writeEntry("KScheduleView_openDeposits", m_openDeposits);

@ -172,7 +172,7 @@ void KMyMoneyCombo::mousePressEvent(TQMouseEvent *e)
m_timer.stop(); m_timer.stop();
m_completion->slotMakeCompletion(""); m_completion->slotMakeCompletion("");
} else { } else {
KConfig config( "kcminputrc", true ); TDEConfig config( "kcminputrc", true );
config.setGroup("KDE"); config.setGroup("KDE");
m_timer.start(config.readNumEntry("DoubleClickInterval", 400), true); m_timer.start(config.readNumEntry("DoubleClickInterval", 400), true);
} }

@ -235,7 +235,7 @@ void kMyMoneyEdit::init(void)
m_resetButton->setEnabled(false); m_resetButton->setEnabled(false);
m_resetButton->setFocusProxy(m_edit); m_resetButton->setFocusProxy(m_edit);
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup("General Options"); kconfig->setGroup("General Options");
if(kconfig->readBoolEntry("DontShowCalculatorButton", false) == true) if(kconfig->readBoolEntry("DontShowCalculatorButton", false) == true)
setCalculatorButtonVisible(false); setCalculatorButtonVisible(false);

@ -63,7 +63,7 @@ void kMyMoneyGPGConfig::resetConfig(void)
void kMyMoneyGPGConfig::readConfig(void) void kMyMoneyGPGConfig::readConfig(void)
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("General Options"); config->setGroup("General Options");
m_resetUseEncryption = config->readBoolEntry("WriteDataEncrypted", false); m_resetUseEncryption = config->readBoolEntry("WriteDataEncrypted", false);
m_resetRecover = config->readBoolEntry("EncryptRecover", false); m_resetRecover = config->readBoolEntry("EncryptRecover", false);
@ -74,7 +74,7 @@ void kMyMoneyGPGConfig::readConfig(void)
void kMyMoneyGPGConfig::writeConfig(void) void kMyMoneyGPGConfig::writeConfig(void)
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("General Options"); config->setGroup("General Options");
config->writeEntry("WriteDataEncrypted", m_useEncryption->isChecked()); config->writeEntry("WriteDataEncrypted", m_useEncryption->isChecked());
config->writeEntry("EncryptRecover", m_recover->isChecked()); config->writeEntry("EncryptRecover", m_recover->isChecked());

@ -66,7 +66,7 @@ KMyMoneyPriceItem::KMyMoneyPriceItem(KListView *view, const MyMoneyPrice& pr) :
m_pr(pr) m_pr(pr)
{ {
MyMoneySecurity from, to; MyMoneySecurity from, to;
KConfig *kconfig = TDEGlobal::config(); TDEConfig *kconfig = TDEGlobal::config();
kconfig->setGroup("General Options"); kconfig->setGroup("General Options");
int prec = kconfig->readNumEntry("PricePrecision", 4); int prec = kconfig->readNumEntry("PricePrecision", 4);

@ -160,7 +160,7 @@ KMyMoneyWizard::KMyMoneyWizard(TQWidget *parent, const char *name, bool modal, W
hboxLayout->addWidget(m_stepFrame); hboxLayout->addWidget(m_stepFrame);
// FIXME use the protected virtual method TQWidget::paletteChange() to update the palette // FIXME use the protected virtual method TQWidget::paletteChange() to update the palette
// information when the user selected a different color set using the KConfigCenter // information when the user selected a different color set using the TDEConfigCenter
m_stepPalette = m_stepLabel->palette(); m_stepPalette = m_stepLabel->palette();
TQColorGroup::ColorRole role = TQColorGroup::Foreground; TQColorGroup::ColorRole role = TQColorGroup::Foreground;
TQColor color = TDEGlobalSettings::highlightedTextColor(); TQColor color = TDEGlobalSettings::highlightedTextColor();

@ -344,13 +344,13 @@ bool FilePage::isComplete(void) const
// if a filename is present, check that // if a filename is present, check that
// a) the file does not exist // a) the file does not exist
// b) the directory does exist // b) the directory does exist
rc = !KIO::NetAccess::exists(m_dataFileEdit->url(), false, m_wizard); rc = !TDEIO::NetAccess::exists(m_dataFileEdit->url(), false, m_wizard);
if(rc) { if(rc) {
TQRegExp exp("(.*)/(.*)"); TQRegExp exp("(.*)/(.*)");
rc = false; rc = false;
if(exp.search(m_dataFileEdit->url()) != -1) { if(exp.search(m_dataFileEdit->url()) != -1) {
if(exp.cap(2).length() > 0) { if(exp.cap(2).length() > 0) {
rc = KIO::NetAccess::exists(exp.cap(1), true, m_wizard); rc = TDEIO::NetAccess::exists(exp.cap(1), true, m_wizard);
} }
} }
} }

Loading…
Cancel
Save