|
|
|
|
@ -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_);
|
|
|
|
|
|