summaryrefslogtreecommitdiffstats
path: root/src/fetch/z3950fetcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch/z3950fetcher.cpp')
-rw-r--r--src/fetch/z3950fetcher.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fetch/z3950fetcher.cpp b/src/fetch/z3950fetcher.cpp
index 9083c17..3be46fc 100644
--- a/src/fetch/z3950fetcher.cpp
+++ b/src/fetch/z3950fetcher.cpp
@@ -88,7 +88,7 @@ bool Z3950Fetcher::canFetch(int type) const {
return type == Data::Collection::Book || type == Data::Collection::Bibtex;
}
-void Z3950Fetcher::readConfigHook(const KConfigGroup& config_) {
+void Z3950Fetcher::readConfigHook(const TDEConfigGroup& config_) {
TQString preset = config_.readEntry("Preset");
if(preset.isEmpty()) {
m_host = config_.readEntry("Host");
@@ -105,7 +105,7 @@ void Z3950Fetcher::readConfigHook(const KConfigGroup& config_) {
m_preset = preset;
TQString serverFile = locate("appdata", TQString::fromLatin1("z3950-servers.cfg"));
if(!serverFile.isEmpty()) {
- KConfig cfg(serverFile, true /* read-only */, false /* read KDE */);
+ TDEConfig cfg(serverFile, true /* read-only */, false /* read KDE */);
const TQStringList servers = cfg.groupList();
for(TQStringList::ConstIterator server = servers.begin(); server != servers.end(); ++server) {
cfg.setGroup(*server);
@@ -128,7 +128,7 @@ void Z3950Fetcher::readConfigHook(const KConfigGroup& config_) {
m_fields = config_.readListEntry("Custom Fields");
}
-void Z3950Fetcher::saveConfigHook(KConfigGroup& config_) {
+void Z3950Fetcher::saveConfigHook(TDEConfigGroup& config_) {
config_.writeEntry("Syntax", m_syntax);
config_.sync();
}
@@ -644,7 +644,7 @@ Z3950Fetcher::ConfigWidget::ConfigWidget(TQWidget* parent_, const Z3950Fetcher*
Z3950Fetcher::ConfigWidget::~ConfigWidget() {
}
-void Z3950Fetcher::ConfigWidget::saveConfig(KConfigGroup& config_) {
+void Z3950Fetcher::ConfigWidget::saveConfig(TDEConfigGroup& config_) {
if(m_usePreset->isChecked()) {
TQString presetID = m_serverCombo->currentData().toString();
config_.writeEntry("Preset", presetID);
@@ -735,7 +735,7 @@ void Z3950Fetcher::ConfigWidget::loadPresets(const TQString& current_) {
int idx = -1;
- KConfig cfg(serverFile, true /* read-only */, false /* read KDE */);
+ TDEConfig cfg(serverFile, true /* read-only */, false /* read KDE */);
const TQStringList servers = cfg.groupList();
// I want the list of servers sorted by name
TQMap<TQString, TQString> serverNameMap;