Use TDESimpleConfig

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/19/head
Michele Calgaro 8 months ago
parent f7627863e4
commit 4e80fcae69
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -40,7 +40,7 @@
#include <tqregexp.h>
#include <tqdir.h>
#include <tqdatetime.h>
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
// Needed for CRAM-MD5 and APOP
#include <kmdcodec.h>
@ -111,7 +111,7 @@ KBiffMonitor::~KBiffMonitor()
void KBiffMonitor::readConfig()
{
KSimpleConfig *config = new KSimpleConfig(MAIL_STATE_FILE);
TDESimpleConfig *config = new TDESimpleConfig(MAIL_STATE_FILE);
config->setDollarExpansion(false);
TQString group;
@ -152,7 +152,7 @@ void KBiffMonitor::readConfig()
void KBiffMonitor::saveConfig()
{
// open the config file
KSimpleConfig *config = new KSimpleConfig(MAIL_STATE_FILE);
TDESimpleConfig *config = new TDESimpleConfig(MAIL_STATE_FILE);
config->setDollarExpansion(false);
TQString group;

@ -36,7 +36,7 @@
#include <kiconloader.h>
#include <tdelocale.h>
#include <tdestandarddirs.h>
#include <ksimpleconfig.h>
#include <tdesimpleconfig.h>
#include <kbiffurl.h>
#include <tdeprocess.h>
#include <krun.h>
@ -311,7 +311,7 @@ void KBiffSetup::readConfig(const TQString& profile_)
TQStringList profile_list;
// open the config file
KSimpleConfig *config = new KSimpleConfig(CONFIG_FILE, true);
TDESimpleConfig *config = new TDESimpleConfig(CONFIG_FILE, true);
config->setDollarExpansion(false);
config->setGroup("General");
@ -348,7 +348,7 @@ TQString KBiffSetup::getSomeProfile() const
TQStringList profile_list;
// open the config file
KSimpleConfig *config = new KSimpleConfig(CONFIG_FILE, true);
TDESimpleConfig *config = new TDESimpleConfig(CONFIG_FILE, true);
config->setGroup("General");
// read in the mailboxes
@ -366,7 +366,7 @@ TQString KBiffSetup::getSomeProfile() const
void KBiffSetup::saveConfig()
{
// open the config file for writing
KSimpleConfig *config = new KSimpleConfig(CONFIG_FILE);
TDESimpleConfig *config = new TDESimpleConfig(CONFIG_FILE);
config->setGroup("General");
@ -452,7 +452,7 @@ void KBiffSetup::slotRenameProfile()
comboProfile->insertItem(profile_name, 0);
// remove the reference from the config file
KSimpleConfig *config = new KSimpleConfig(CONFIG_FILE);
TDESimpleConfig *config = new TDESimpleConfig(CONFIG_FILE);
// nuke the group
config->deleteGroup(old_profile, true);
delete config;
@ -483,7 +483,7 @@ void KBiffSetup::slotDeleteProfile()
saveConfig();
// remove the reference from the config file
KSimpleConfig *config = new KSimpleConfig(CONFIG_FILE);
TDESimpleConfig *config = new TDESimpleConfig(CONFIG_FILE);
// nuke the group
config->deleteGroup(profile, true);
delete config;
@ -715,7 +715,7 @@ int KBiffGeneralTab::getPoll() const
void KBiffGeneralTab::readConfig(const TQString& profile_)
{
// open the config file
KSimpleConfig *config = new KSimpleConfig(CONFIG_FILE, true);
TDESimpleConfig *config = new TDESimpleConfig(CONFIG_FILE, true);
config->setGroup(profile_);
@ -779,7 +779,7 @@ static TQString justIconName(const TQString& icon_name)
void KBiffGeneralTab::saveConfig(const TQString& profile_)
{
// open the config file for writing
KSimpleConfig *config = new KSimpleConfig(CONFIG_FILE);
TDESimpleConfig *config = new TDESimpleConfig(CONFIG_FILE);
config->setGroup(profile_);
@ -878,7 +878,7 @@ void KBiffNewMailTab::testPlaySound()
void KBiffNewMailTab::readConfig(const TQString& profile_)
{
// open the config file
KSimpleConfig *config = new KSimpleConfig(CONFIG_FILE, true);
TDESimpleConfig *config = new TDESimpleConfig(CONFIG_FILE, true);
config->setGroup(profile_);
@ -901,7 +901,7 @@ void KBiffNewMailTab::readConfig(const TQString& profile_)
void KBiffNewMailTab::saveConfig(const TQString& profile_)
{
KSimpleConfig *config = new KSimpleConfig(CONFIG_FILE);
TDESimpleConfig *config = new TDESimpleConfig(CONFIG_FILE);
config->setGroup(profile_);
@ -1402,7 +1402,7 @@ void KBiffMailboxTab::readConfig(const TQString& profile_)
oldItem = 0;
// open the config file
KSimpleConfig *config = new KSimpleConfig(CONFIG_FILE, true);
TDESimpleConfig *config = new TDESimpleConfig(CONFIG_FILE, true);
config->setDollarExpansion(false);
mailboxHash->clear();
@ -1457,7 +1457,7 @@ void KBiffMailboxTab::readConfig(const TQString& profile_)
void KBiffMailboxTab::saveConfig(const TQString& profile_)
{
// open the config file
KSimpleConfig *config = new KSimpleConfig(CONFIG_FILE);
TDESimpleConfig *config = new TDESimpleConfig(CONFIG_FILE);
config->setDollarExpansion(false);
config->setGroup(profile_);

Loading…
Cancel
Save