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

pull/1/head
Timothy Pearson 12 years ago
parent a935c1de6f
commit 4946d97747

@ -384,7 +384,7 @@ void ImageDisplay::updateOffset()
offset[3] = margin[3] + padding;
}
void ImageDisplay::readSettings(KConfigBase *config)
void ImageDisplay::readSettings(TDEConfigBase *config)
{
fadeTime = config->readUnsignedNumEntry("FadeTime", 250);
updateFadeStep();
@ -395,7 +395,7 @@ void ImageDisplay::readSettings(KConfigBase *config)
maxFontSize = config->readUnsignedNumEntry("MaxFontSize", 14);
}
void ImageDisplay::writeSettings(KConfigBase *config)
void ImageDisplay::writeSettings(TDEConfigBase *config)
{
config->writeEntry("FadeTime", fadeTime);
config->writeEntry("FontFace", fontFace);

@ -45,8 +45,8 @@ public slots:
void continueFade();
virtual void hide();
virtual void readSettings(KConfigBase *);
virtual void writeSettings(KConfigBase *);
virtual void readSettings(TDEConfigBase *);
virtual void writeSettings(TDEConfigBase *);
virtual TQWidget * configure();
void setFont(const TQString &);

@ -75,11 +75,11 @@ Match KatapultCatalog::bestMatch() const
return _bestMatch;
}
void KatapultCatalog::readSettings(KConfigBase *)
void KatapultCatalog::readSettings(TDEConfigBase *)
{
}
void KatapultCatalog::writeSettings(KConfigBase *)
void KatapultCatalog::writeSettings(TDEConfigBase *)
{
}

@ -27,7 +27,7 @@
#include "match.h"
class TQWidget;
class KConfigBase;
class TDEConfigBase;
/**
@author Joe Ferris
@ -46,8 +46,8 @@ public:
Match bestMatch() const;
virtual void initialize();
virtual void readSettings(KConfigBase *);
virtual void writeSettings(KConfigBase *);
virtual void readSettings(TDEConfigBase *);
virtual void writeSettings(TDEConfigBase *);
virtual TQWidget * configure();
protected:

@ -101,11 +101,11 @@ int KatapultDisplay::status() const
return _status;
}
void KatapultDisplay::readSettings(KConfigBase *)
void KatapultDisplay::readSettings(TDEConfigBase *)
{
}
void KatapultDisplay::writeSettings(KConfigBase *)
void KatapultDisplay::writeSettings(TDEConfigBase *)
{
}

@ -28,7 +28,7 @@
#include "katapultaction.h"
class Katapult;
class KConfigBase;
class TDEConfigBase;
/**
@author Joe Ferris
@ -48,8 +48,8 @@ public:
void setAction(const KatapultAction *);
void setStatus(int);
virtual void readSettings(KConfigBase *);
virtual void writeSettings(KConfigBase *);
virtual void readSettings(TDEConfigBase *);
virtual void writeSettings(TDEConfigBase *);
virtual TQWidget * configure();
signals:

@ -59,7 +59,7 @@ KatapultSettings::~KatapultSettings()
void KatapultSettings::readSettings()
{
KConfig *config = kapp->config();
TDEConfig *config = kapp->config();
_hideSessionNotification = config->readNumEntry("HideSessionNotification", 1);
_hideUserNotification = config->readNumEntry("HideUserNotification", 0);
_notificationTimeout = config->readNumEntry("NotificationTimeout", 5000);
@ -83,7 +83,7 @@ void KatapultSettings::readSettings()
void KatapultSettings::writeSettings()
{
KConfig *config = kapp->config();
TDEConfig *config = kapp->config();
int hideSession = _hideSessionNotification;
int hideUser = _hideUserNotification;
@ -109,14 +109,14 @@ void KatapultSettings::writeSettings()
KatapultCatalog *catalog;
while((catalog = it.current()) != 0)
{
KConfigGroup group(config, TQString("Catalogs/%1").arg(it.currentKey()));
TDEConfigGroup group(config, TQString("Catalogs/%1").arg(it.currentKey()));
catalog->writeSettings(&group);
++it;
}
if(_display != 0)
{
KConfigGroup group(config, TQString("Displays/%1").arg(_displayName));
TDEConfigGroup group(config, TQString("Displays/%1").arg(_displayName));
_display->writeSettings(&group);
}
@ -323,7 +323,7 @@ void KatapultSettings::loadCatalogPlugins()
(service, 0, 0, TQStringList(), &errCode);
if(catalog != 0)
{
KConfigGroup group(kapp->config(), TQString("Catalogs/%1").arg(id));
TDEConfigGroup group(kapp->config(), TQString("Catalogs/%1").arg(id));
catalog->readSettings(&group);
catalog->initialize();
_activeCatalogs.insert(id, catalog);
@ -364,7 +364,7 @@ void KatapultSettings::loadDisplayPlugins()
}
if(_display != 0)
{
KConfigGroup group(kapp->config(), TQString("Displays/%1").arg(_displayName));
TDEConfigGroup group(kapp->config(), TQString("Displays/%1").arg(_displayName));
_display->readSettings(&group);
}
}

@ -331,12 +331,12 @@ void AmarokCatalog::minQueryLenChanged(int _minQueryLen)
this->_minQueryLen = _minQueryLen;
}
void AmarokCatalog::readSettings(KConfigBase *config)
void AmarokCatalog::readSettings(TDEConfigBase *config)
{
_minQueryLen = config->readUnsignedNumEntry("MinQueryLen", 3);
}
void AmarokCatalog::writeSettings(KConfigBase *config)
void AmarokCatalog::writeSettings(TDEConfigBase *config)
{
config->writeEntry("MinQueryLen", _minQueryLen);
}

@ -40,8 +40,8 @@ public:
virtual ~AmarokCatalog();
unsigned int minQueryLen() const;
void readSettings(KConfigBase *);
void writeSettings(KConfigBase *);
void readSettings(TDEConfigBase *);
void writeSettings(TDEConfigBase *);
TQWidget * configure();
//virtual void initialize();

@ -144,7 +144,7 @@ unsigned int BookmarkCatalog::minQueryLen() const
return _minQueryLen;
}
void BookmarkCatalog::readSettings(KConfigBase *config)
void BookmarkCatalog::readSettings(TDEConfigBase *config)
{
_minQueryLen = config->readUnsignedNumEntry("MinQueryLen", 3);
_mozEnabled = config->readBoolEntry("MozEnabled", TRUE);
@ -152,7 +152,7 @@ void BookmarkCatalog::readSettings(KConfigBase *config)
_mozFile = config->readEntry("MozFile", "");
}
void BookmarkCatalog::writeSettings(KConfigBase *config)
void BookmarkCatalog::writeSettings(TDEConfigBase *config)
{
config->writeEntry("MinQueryLen", _minQueryLen);
config->writeEntry("MozEnabled", _mozEnabled);

@ -44,8 +44,8 @@ public:
virtual ~BookmarkCatalog();
virtual void initialize();
virtual void readSettings(KConfigBase *);
virtual void writeSettings(KConfigBase *);
virtual void readSettings(TDEConfigBase *);
virtual void writeSettings(TDEConfigBase *);
virtual unsigned int minQueryLen() const;
virtual TQWidget * configure();

@ -256,7 +256,7 @@ void CalculatorCatalog::initialize()
}
*/
void CalculatorCatalog::readSettings(KConfigBase* config)
void CalculatorCatalog::readSettings(TDEConfigBase* config)
{
_fracDigits = config->readUnsignedNumEntry("FracDigits", 2);
_bScientific = config->readBoolEntry("Scientific", false);
@ -265,7 +265,7 @@ void CalculatorCatalog::readSettings(KConfigBase* config)
_formatString = config->readEntry("FormatString", "%1 = %2");
}
void CalculatorCatalog::writeSettings(KConfigBase* config)
void CalculatorCatalog::writeSettings(TDEConfigBase* config)
{
config->writeEntry("FracDigits", fracDigits());
config->writeEntry("Scientific", scientific());

@ -64,8 +64,8 @@ class CalculatorCatalog : public KatapultCatalog
virtual ~CalculatorCatalog();
//virtual void initialize();
virtual void readSettings(KConfigBase*);
virtual void writeSettings(KConfigBase*);
virtual void readSettings(TDEConfigBase*);
virtual void writeSettings(TDEConfigBase*);
virtual TQWidget* configure();
int getVarID(const char*);

@ -44,12 +44,12 @@ Document::~Document()
TQPixmap Document::icon(int size) const
{
KURL u;
KIO::PreviewJob *doc;
TDEIO::PreviewJob *doc;
u.setPath(_absPath);
if (this->_showPreview)
{
doc=KIO::filePreview(u,size);
doc=TDEIO::filePreview(u,size);
connect(doc, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)),
TQT_SLOT(gotPreview(const KFileItem*, const TQPixmap&)));

@ -191,13 +191,13 @@ unsigned int DocumentCatalog::minQueryLen() const
return _minQueryLen;
}
void DocumentCatalog::readSettings(KConfigBase *config)
void DocumentCatalog::readSettings(TDEConfigBase *config)
{
_minQueryLen = config->readUnsignedNumEntry("MinQueryLen", 1);
_showPreview = config->readBoolEntry("showPreview", FALSE);
}
void DocumentCatalog::writeSettings(KConfigBase *config)
void DocumentCatalog::writeSettings(TDEConfigBase *config)
{
config->writeEntry("MinQueryLen", _minQueryLen);
config->writeEntry("showPreview", _showPreview);

@ -45,8 +45,8 @@ public:
virtual void initialize();
virtual void queryChanged();
virtual void readSettings(KConfigBase *);
virtual void writeSettings(KConfigBase *);
virtual void readSettings(TDEConfigBase *);
virtual void writeSettings(TDEConfigBase *);
virtual unsigned int minQueryLen() const;
virtual TQWidget * configure();

@ -82,12 +82,12 @@ bool ExecCatalog::accepts(const TQString& str) const
return str.left(length + 1) == _triggerWord + " ";
}
void ExecCatalog::readSettings(KConfigBase* config)
void ExecCatalog::readSettings(TDEConfigBase* config)
{
_triggerWord = config->readEntry("TriggerWord", i18n("Should be short, easy and quick to type", "exec"));
}
void ExecCatalog::writeSettings(KConfigBase* config)
void ExecCatalog::writeSettings(TDEConfigBase* config)
{
config->writeEntry("TriggerWord", _triggerWord);
}

@ -51,8 +51,8 @@ class ExecCatalog : public KatapultCatalog
ExecCatalog(TQObject*, const char*, const TQStringList&);
virtual ~ExecCatalog();
virtual void readSettings(KConfigBase*);
virtual void writeSettings(KConfigBase*);
virtual void readSettings(TDEConfigBase*);
virtual void writeSettings(TDEConfigBase*);
virtual TQWidget* configure();
int triggerWordLength();

@ -82,12 +82,12 @@ bool GoogleCatalog::accepts(const TQString& str) const
return str.left(length + 1) == _triggerWord + " ";
}
void GoogleCatalog::readSettings(KConfigBase* config)
void GoogleCatalog::readSettings(TDEConfigBase* config)
{
_triggerWord = config->readEntry("TriggerWord", i18n("Should be short, easy and quick to type", "google"));
}
void GoogleCatalog::writeSettings(KConfigBase* config)
void GoogleCatalog::writeSettings(TDEConfigBase* config)
{
config->writeEntry("TriggerWord", _triggerWord);
}

@ -51,8 +51,8 @@ class GoogleCatalog : public KatapultCatalog
GoogleCatalog(TQObject*, const char*, const TQStringList&);
virtual ~GoogleCatalog();
virtual void readSettings(KConfigBase*);
virtual void writeSettings(KConfigBase*);
virtual void readSettings(TDEConfigBase*);
virtual void writeSettings(TDEConfigBase*);
virtual TQWidget* configure();
int triggerWordLength();

@ -95,7 +95,7 @@ unsigned int ProgramCatalog::minQueryLen() const
return _minQueryLen;
}
void ProgramCatalog::readSettings(KConfigBase *config)
void ProgramCatalog::readSettings(TDEConfigBase *config)
{
_minQueryLen = config->readUnsignedNumEntry("MinQueryLen", 1);
_ignoreIconless = config->readBoolEntry("IgnoreIconless", TRUE);
@ -103,7 +103,7 @@ void ProgramCatalog::readSettings(KConfigBase *config)
_ignoreTerminal = config->readBoolEntry("IgnoreTerminal", TRUE);
}
void ProgramCatalog::writeSettings(KConfigBase *config)
void ProgramCatalog::writeSettings(TDEConfigBase *config)
{
config->writeEntry("MinQueryLen", _minQueryLen);
config->writeEntry("IgnoreIconless", _ignoreIconless);

@ -41,8 +41,8 @@ public:
virtual ~ProgramCatalog();
virtual void initialize();
virtual void readSettings(KConfigBase *);
virtual void writeSettings(KConfigBase *);
virtual void readSettings(TDEConfigBase *);
virtual void writeSettings(TDEConfigBase *);
virtual unsigned int minQueryLen() const;
virtual TQWidget * configure();

@ -82,12 +82,12 @@ bool SpellCatalog::accepts(const TQString& str) const
return str.left(length + 1) == _triggerWord + " ";
}
void SpellCatalog::readSettings(KConfigBase* config)
void SpellCatalog::readSettings(TDEConfigBase* config)
{
_triggerWord = config->readEntry("TriggerWord", i18n("Should be short, easy and quick to type", "spell"));
}
void SpellCatalog::writeSettings(KConfigBase* config)
void SpellCatalog::writeSettings(TDEConfigBase* config)
{
config->writeEntry("TriggerWord", _triggerWord);
}

@ -48,8 +48,8 @@ class SpellCatalog : public KatapultCatalog
SpellCatalog(TQObject*, const char*, const TQStringList&);
virtual ~SpellCatalog();
virtual void readSettings(KConfigBase*);
virtual void writeSettings(KConfigBase*);
virtual void readSettings(TDEConfigBase*);
virtual void writeSettings(TDEConfigBase*);
virtual TQWidget* configure();
int triggerWordLength();

Loading…
Cancel
Save