summaryrefslogtreecommitdiffstats
path: root/libtdepim/kconfigpropagator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libtdepim/kconfigpropagator.cpp')
-rw-r--r--libtdepim/kconfigpropagator.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/libtdepim/kconfigpropagator.cpp b/libtdepim/kconfigpropagator.cpp
index d22805db9..a231f9638 100644
--- a/libtdepim/kconfigpropagator.cpp
+++ b/libtdepim/kconfigpropagator.cpp
@@ -31,43 +31,43 @@
#include <tqfile.h>
#include <tqstringlist.h>
-KConfigPropagator::Change::~Change()
+TDEConfigPropagator::Change::~Change()
{
}
-KConfigPropagator::ChangeConfig::ChangeConfig()
- : KConfigPropagator::Change( i18n("Change Config Value") ),
+TDEConfigPropagator::ChangeConfig::ChangeConfig()
+ : TDEConfigPropagator::Change( i18n("Change Config Value") ),
hideValue( false )
{
}
-TQString KConfigPropagator::ChangeConfig::arg1() const
+TQString TDEConfigPropagator::ChangeConfig::arg1() const
{
return file + "/" + group + "/" + name;
}
-TQString KConfigPropagator::ChangeConfig::arg2() const
+TQString TDEConfigPropagator::ChangeConfig::arg2() const
{
if ( hideValue ) return "*";
else return value;
}
-void KConfigPropagator::ChangeConfig::apply()
+void TDEConfigPropagator::ChangeConfig::apply()
{
- KConfig cfg( file );
+ TDEConfig cfg( file );
cfg.setGroup( group );
cfg.writeEntry( name, value );
cfg.sync();
}
-KConfigPropagator::KConfigPropagator()
+TDEConfigPropagator::TDEConfigPropagator()
: mSkeleton( 0 )
{
init();
}
-KConfigPropagator::KConfigPropagator( KConfigSkeleton *skeleton,
+TDEConfigPropagator::TDEConfigPropagator( TDEConfigSkeleton *skeleton,
const TQString &kcfgFile )
: mSkeleton( skeleton ), mKcfgFile( kcfgFile )
{
@@ -76,12 +76,12 @@ KConfigPropagator::KConfigPropagator( KConfigSkeleton *skeleton,
readKcfgFile();
}
-void KConfigPropagator::init()
+void TDEConfigPropagator::init()
{
mChanges.setAutoDelete( true );
}
-void KConfigPropagator::readKcfgFile()
+void TDEConfigPropagator::readKcfgFile()
{
TQString filename = locate( "kcfg", mKcfgFile );
if ( filename.isEmpty() ) {
@@ -134,7 +134,7 @@ void KConfigPropagator::readKcfgFile()
}
}
-KConfigPropagator::Rule KConfigPropagator::parsePropagation( const TQDomElement &e )
+TDEConfigPropagator::Rule TDEConfigPropagator::parsePropagation( const TQDomElement &e )
{
Rule r;
@@ -150,7 +150,7 @@ KConfigPropagator::Rule KConfigPropagator::parsePropagation( const TQDomElement
return r;
}
-void KConfigPropagator::parseConfigEntryPath( const TQString &path,
+void TDEConfigPropagator::parseConfigEntryPath( const TQString &path,
TQString &file,
TQString &group,
TQString &entry )
@@ -172,7 +172,7 @@ void KConfigPropagator::parseConfigEntryPath( const TQString &path,
return;
}
-KConfigPropagator::Condition KConfigPropagator::parseCondition( const TQDomElement &e )
+TDEConfigPropagator::Condition TDEConfigPropagator::parseCondition( const TQDomElement &e )
{
Condition c;
@@ -187,7 +187,7 @@ KConfigPropagator::Condition KConfigPropagator::parseCondition( const TQDomEleme
return c;
}
-void KConfigPropagator::commit()
+void TDEConfigPropagator::commit()
{
updateChanges();
@@ -197,15 +197,15 @@ void KConfigPropagator::commit()
}
}
-KConfigSkeletonItem *KConfigPropagator::findItem( const TQString &group,
+TDEConfigSkeletonItem *TDEConfigPropagator::findItem( const TQString &group,
const TQString &name )
{
-// kdDebug() << "KConfigPropagator::findItem()" << endl;
+// kdDebug() << "TDEConfigPropagator::findItem()" << endl;
if ( !mSkeleton ) return 0;
- KConfigSkeletonItem::List items = mSkeleton->items();
- KConfigSkeletonItem::List::ConstIterator it;
+ TDEConfigSkeletonItem::List items = mSkeleton->items();
+ TDEConfigSkeletonItem::List::ConstIterator it;
for( it = items.begin(); it != items.end(); ++it ) {
// kdDebug() << " Item: " << (*it)->name() << " Type: "
// << (*it)->property().typeName() << endl;
@@ -217,7 +217,7 @@ KConfigSkeletonItem *KConfigPropagator::findItem( const TQString &group,
else return *it;
}
-TQString KConfigPropagator::itemValueAsString( KConfigSkeletonItem *item )
+TQString TDEConfigPropagator::itemValueAsString( TDEConfigSkeletonItem *item )
{
TQVariant p = item->property();
@@ -229,7 +229,7 @@ TQString KConfigPropagator::itemValueAsString( KConfigSkeletonItem *item )
return p.toString();
}
-void KConfigPropagator::updateChanges()
+void TDEConfigPropagator::updateChanges()
{
mChanges.clear();
@@ -238,7 +238,7 @@ void KConfigPropagator::updateChanges()
Rule r = *it;
Condition c = r.condition;
if ( c.isValid ) {
- KConfigSkeletonItem *item = findItem( c.group, c.key );
+ TDEConfigSkeletonItem *item = findItem( c.group, c.key );
kdDebug() << "Item " << c.group << "/" << c.key << ":" << endl;
if ( !item ) {
kdError() << " Item not found." << endl;
@@ -251,7 +251,7 @@ void KConfigPropagator::updateChanges()
}
}
- KConfigSkeletonItem *item = findItem( r.sourceGroup, r.sourceEntry );
+ TDEConfigSkeletonItem *item = findItem( r.sourceGroup, r.sourceEntry );
if ( !item ) {
kdError() << "Item " << r.sourceGroup << "/" << r.sourceEntry
<< " not found." << endl;
@@ -259,7 +259,7 @@ void KConfigPropagator::updateChanges()
}
TQString value = itemValueAsString( item );
- KConfig target( r.targetFile );
+ TDEConfig target( r.targetFile );
target.setGroup( r.targetGroup );
TQString targetValue = target.readEntry( r.targetEntry );
if ( r.hideValue ) targetValue = KStringHandler::obscure( targetValue );
@@ -278,12 +278,12 @@ void KConfigPropagator::updateChanges()
addCustomChanges( mChanges );
}
-KConfigPropagator::Change::List KConfigPropagator::changes()
+TDEConfigPropagator::Change::List TDEConfigPropagator::changes()
{
return mChanges;
}
-KConfigPropagator::Rule::List KConfigPropagator::rules()
+TDEConfigPropagator::Rule::List TDEConfigPropagator::rules()
{
return mRules;
}