parley
presettings.cpp
Go to the documentation of this file.00001
00002
00003
00004 #include "presettings.h"
00005
00006 #include <klocale.h>
00007
00008 PreSettings::PreSettings( const QString & settingsId )
00009 : KConfigSkeleton( QLatin1String( "parleyrc" ) )
00010 , mParamsettingsId(settingsId)
00011 {
00012 setCurrentGroup( QString( QLatin1String( "Presetting #%1" ) ).arg( mParamsettingsId ) );
00013
00014 mNameItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Name" ), mName );
00015 mNameItem->setLabel( i18n("Name of the settings profile") );
00016 addItem( mNameItem, QLatin1String( "Name" ) );
00017 mQueryItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Query" ), mQuery );
00018 mQueryItem->setLabel( i18n("Query") );
00019 addItem( mQueryItem, QLatin1String( "Query" ) );
00020 mThresholdItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Threshold" ), mThreshold );
00021 mThresholdItem->setLabel( i18n("Threshold") );
00022 addItem( mThresholdItem, QLatin1String( "Threshold" ) );
00023 mBlockingItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "Blocking" ), mBlocking );
00024 mBlockingItem->setLabel( i18n("Blocking") );
00025 addItem( mBlockingItem, QLatin1String( "Blocking" ) );
00026 }
00027
00028 PreSettings::~PreSettings()
00029 {
00030 }
00031