// This file is generated by kconfig_compiler from ktorrent.kcfg.
// All changes you do to this file will be lost.

#include "settings.h"

#include <kglobal.h>
#include <QtCore/QFile>

class SettingsHelper
{
  public:
    SettingsHelper() : q(0) {}
    ~SettingsHelper() { delete q; }
    Settings *q;
};
K_GLOBAL_STATIC(SettingsHelper, s_globalSettings)
Settings *Settings::self()
{
  if (!s_globalSettings->q) {
    new Settings;
    s_globalSettings->q->readConfig();
  }

  return s_globalSettings->q;
}

Settings::Settings(  )
  : KConfigSkeleton( QLatin1String( "ktorrentrc" ) )
{
  Q_ASSERT(!s_globalSettings->q);
  s_globalSettings->q = this;
  setCurrentGroup( QLatin1String( "downloads" ) );

  KConfigSkeleton::ItemInt  *itemMaxDownloads;
  itemMaxDownloads = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "maxDownloads" ), mMaxDownloads, 3 );
  itemMaxDownloads->setMinValue(0);
  addItem( itemMaxDownloads, QLatin1String( "maxDownloads" ) );
  KConfigSkeleton::ItemInt  *itemMaxSeeds;
  itemMaxSeeds = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "maxSeeds" ), mMaxSeeds, 5 );
  itemMaxSeeds->setMinValue(0);
  addItem( itemMaxSeeds, QLatin1String( "maxSeeds" ) );
  KConfigSkeleton::ItemInt  *itemStartDownloadsOnLowDiskSpace;
  itemStartDownloadsOnLowDiskSpace = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "startDownloadsOnLowDiskSpace" ), mStartDownloadsOnLowDiskSpace, 0 );
  addItem( itemStartDownloadsOnLowDiskSpace, QLatin1String( "startDownloadsOnLowDiskSpace" ) );
  KConfigSkeleton::ItemInt  *itemMaxConnections;
  itemMaxConnections = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "maxConnections" ), mMaxConnections, 120 );
  itemMaxConnections->setMinValue(0);
  addItem( itemMaxConnections, QLatin1String( "maxConnections" ) );
  KConfigSkeleton::ItemInt  *itemMaxTotalConnections;
  itemMaxTotalConnections = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "maxTotalConnections" ), mMaxTotalConnections, 800 );
  itemMaxTotalConnections->setMinValue(0);
  addItem( itemMaxTotalConnections, QLatin1String( "maxTotalConnections" ) );
  KConfigSkeleton::ItemInt  *itemMaxUploadRate;
  itemMaxUploadRate = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "maxUploadRate" ), mMaxUploadRate, 0 );
  itemMaxUploadRate->setMinValue(0);
  addItem( itemMaxUploadRate, QLatin1String( "maxUploadRate" ) );
  KConfigSkeleton::ItemInt  *itemMaxDownloadRate;
  itemMaxDownloadRate = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "maxDownloadRate" ), mMaxDownloadRate, 0 );
  itemMaxDownloadRate->setMinValue(0);
  addItem( itemMaxDownloadRate, QLatin1String( "maxDownloadRate" ) );
  KConfigSkeleton::ItemDouble  *itemMaxRatio;
  itemMaxRatio = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "maxRatio" ), mMaxRatio, 0 );
  itemMaxRatio->setMinValue(0);
  addItem( itemMaxRatio, QLatin1String( "maxRatio" ) );
  KConfigSkeleton::ItemDouble  *itemGreenRatio;
  itemGreenRatio = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "greenRatio" ), mGreenRatio, 0.8 );
  itemGreenRatio->setMinValue(0);
  addItem( itemGreenRatio, QLatin1String( "greenRatio" ) );
  KConfigSkeleton::ItemInt  *itemPort;
  itemPort = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "port" ), mPort, 6881 );
  itemPort->setMinValue(0);
  itemPort->setMaxValue(65535);
  addItem( itemPort, QLatin1String( "port" ) );
  KConfigSkeleton::ItemInt  *itemUdpTrackerPort;
  itemUdpTrackerPort = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "udpTrackerPort" ), mUdpTrackerPort, 8881 );
  itemUdpTrackerPort->setMinValue(0);
  itemUdpTrackerPort->setMaxValue(65535);
  addItem( itemUdpTrackerPort, QLatin1String( "udpTrackerPort" ) );
  KConfigSkeleton::ItemBool  *itemShowSystemTrayIcon;
  itemShowSystemTrayIcon = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showSystemTrayIcon" ), mShowSystemTrayIcon, true );
  addItem( itemShowSystemTrayIcon, QLatin1String( "showSystemTrayIcon" ) );
  KConfigSkeleton::ItemBool  *itemShowSpeedBarInTrayIcon;
  itemShowSpeedBarInTrayIcon = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showSpeedBarInTrayIcon" ), mShowSpeedBarInTrayIcon, false );
  addItem( itemShowSpeedBarInTrayIcon, QLatin1String( "showSpeedBarInTrayIcon" ) );
  KConfigSkeleton::ItemInt  *itemDownloadBandwidth;
  itemDownloadBandwidth = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "downloadBandwidth" ), mDownloadBandwidth, 500 );
  itemDownloadBandwidth->setMinValue(0);
  itemDownloadBandwidth->setMaxValue(1000000);
  addItem( itemDownloadBandwidth, QLatin1String( "downloadBandwidth" ) );
  KConfigSkeleton::ItemInt  *itemUploadBandwidth;
  itemUploadBandwidth = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "uploadBandwidth" ), mUploadBandwidth, 500 );
  itemUploadBandwidth->setMinValue(0);
  itemUploadBandwidth->setMaxValue(1000000);
  addItem( itemUploadBandwidth, QLatin1String( "uploadBandwidth" ) );
  KConfigSkeleton::ItemBool  *itemShowPopups;
  itemShowPopups = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "showPopups" ), mShowPopups, true );
  addItem( itemShowPopups, QLatin1String( "showPopups" ) );
  KConfigSkeleton::ItemBool  *itemKeepSeeding;
  itemKeepSeeding = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "keepSeeding" ), mKeepSeeding, true );
  addItem( itemKeepSeeding, QLatin1String( "keepSeeding" ) );
  KConfigSkeleton::ItemUrl  *itemTempDir;
  itemTempDir = new KConfigSkeleton::ItemUrl( currentGroup(), QLatin1String( "tempDir" ), mTempDir );
  addItem( itemTempDir, QLatin1String( "tempDir" ) );
  KConfigSkeleton::ItemBool  *itemUseSaveDir;
  itemUseSaveDir = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useSaveDir" ), mUseSaveDir, false );
  addItem( itemUseSaveDir, QLatin1String( "useSaveDir" ) );
  KConfigSkeleton::ItemUrl  *itemSaveDir;
  itemSaveDir = new KConfigSkeleton::ItemUrl( currentGroup(), QLatin1String( "saveDir" ), mSaveDir );
  addItem( itemSaveDir, QLatin1String( "saveDir" ) );
  KConfigSkeleton::ItemBool  *itemUseTorrentCopyDir;
  itemUseTorrentCopyDir = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useTorrentCopyDir" ), mUseTorrentCopyDir, false );
  addItem( itemUseTorrentCopyDir, QLatin1String( "useTorrentCopyDir" ) );
  KConfigSkeleton::ItemUrl  *itemTorrentCopyDir;
  itemTorrentCopyDir = new KConfigSkeleton::ItemUrl( currentGroup(), QLatin1String( "torrentCopyDir" ), mTorrentCopyDir );
  addItem( itemTorrentCopyDir, QLatin1String( "torrentCopyDir" ) );
  KConfigSkeleton::ItemBool  *itemUseCustomIP;
  itemUseCustomIP = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useCustomIP" ), mUseCustomIP, false );
  addItem( itemUseCustomIP, QLatin1String( "useCustomIP" ) );
  KConfigSkeleton::ItemString  *itemLastSaveDir;
  itemLastSaveDir = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "lastSaveDir" ), mLastSaveDir, QString::null );
  addItem( itemLastSaveDir, QLatin1String( "lastSaveDir" ) );
  KConfigSkeleton::ItemString  *itemCustomIP;
  itemCustomIP = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "customIP" ), mCustomIP, QString::null );
  addItem( itemCustomIP, QLatin1String( "customIP" ) );
  KConfigSkeleton::ItemInt  *itemGuiUpdateInterval;
  itemGuiUpdateInterval = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "guiUpdateInterval" ), mGuiUpdateInterval, 1000 );
  itemGuiUpdateInterval->setMinValue(500);
  itemGuiUpdateInterval->setMaxValue(5000);
  addItem( itemGuiUpdateInterval, QLatin1String( "guiUpdateInterval" ) );
  KConfigSkeleton::ItemBool  *itemDhtSupport;
  itemDhtSupport = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "dhtSupport" ), mDhtSupport, false );
  addItem( itemDhtSupport, QLatin1String( "dhtSupport" ) );
  KConfigSkeleton::ItemInt  *itemDhtPort;
  itemDhtPort = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "dhtPort" ), mDhtPort, 7881 );
  itemDhtPort->setMinValue(1);
  itemDhtPort->setMaxValue(65535);
  addItem( itemDhtPort, QLatin1String( "dhtPort" ) );
  KConfigSkeleton::ItemBool  *itemPexEnabled;
  itemPexEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "pexEnabled" ), mPexEnabled, true );
  addItem( itemPexEnabled, QLatin1String( "pexEnabled" ) );
  KConfigSkeleton::ItemInt  *itemNumUploadSlots;
  itemNumUploadSlots = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "numUploadSlots" ), mNumUploadSlots, 2 );
  itemNumUploadSlots->setMinValue(2);
  itemNumUploadSlots->setMaxValue(100);
  addItem( itemNumUploadSlots, QLatin1String( "numUploadSlots" ) );
  KConfigSkeleton::ItemBool  *itemUseEncryption;
  itemUseEncryption = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useEncryption" ), mUseEncryption, false );
  addItem( itemUseEncryption, QLatin1String( "useEncryption" ) );
  KConfigSkeleton::ItemBool  *itemAllowUnencryptedConnections;
  itemAllowUnencryptedConnections = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "allowUnencryptedConnections" ), mAllowUnencryptedConnections, true );
  addItem( itemAllowUnencryptedConnections, QLatin1String( "allowUnencryptedConnections" ) );
  KConfigSkeleton::ItemInt  *itemTypeOfService;
  itemTypeOfService = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "typeOfService" ), mTypeOfService, 8 );
  itemTypeOfService->setMinValue(0);
  itemTypeOfService->setMaxValue(255);
  addItem( itemTypeOfService, QLatin1String( "typeOfService" ) );
  KConfigSkeleton::ItemInt  *itemDscp;
  itemDscp = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "dscp" ), mDscp, 0 );
  itemDscp->setMinValue(0);
  itemDscp->setMaxValue(63);
  addItem( itemDscp, QLatin1String( "dscp" ) );
  KConfigSkeleton::ItemInt  *itemMaxConnectingSockets;
  itemMaxConnectingSockets = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "maxConnectingSockets" ), mMaxConnectingSockets, 50 );
  itemMaxConnectingSockets->setMinValue(10);
  itemMaxConnectingSockets->setMaxValue(500);
  addItem( itemMaxConnectingSockets, QLatin1String( "maxConnectingSockets" ) );
  KConfigSkeleton::ItemBool  *itemCheckWhenFinished;
  itemCheckWhenFinished = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "checkWhenFinished" ), mCheckWhenFinished, false );
  addItem( itemCheckWhenFinished, QLatin1String( "checkWhenFinished" ) );
  QList<int> defaultshownColumns;

  KConfigSkeleton::ItemIntList  *itemShownColumns;
  itemShownColumns = new KConfigSkeleton::ItemIntList( currentGroup(), QLatin1String( "shownColumns" ), mShownColumns, defaultshownColumns );
  addItem( itemShownColumns, QLatin1String( "shownColumns" ) );
  KConfigSkeleton::ItemBool  *itemUseKDEProxySettings;
  itemUseKDEProxySettings = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useKDEProxySettings" ), mUseKDEProxySettings, true );
  addItem( itemUseKDEProxySettings, QLatin1String( "useKDEProxySettings" ) );
  KConfigSkeleton::ItemString  *itemHttpProxy;
  itemHttpProxy = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "httpProxy" ), mHttpProxy, QString::null );
  addItem( itemHttpProxy, QLatin1String( "httpProxy" ) );
  KConfigSkeleton::ItemInt  *itemHttpProxyPort;
  itemHttpProxyPort = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "httpProxyPort" ), mHttpProxyPort, 8080 );
  itemHttpProxyPort->setMinValue(1);
  itemHttpProxyPort->setMaxValue(65535);
  addItem( itemHttpProxyPort, QLatin1String( "httpProxyPort" ) );
  KConfigSkeleton::ItemBool  *itemUseProxyForWebSeeds;
  itemUseProxyForWebSeeds = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useProxyForWebSeeds" ), mUseProxyForWebSeeds, true );
  addItem( itemUseProxyForWebSeeds, QLatin1String( "useProxyForWebSeeds" ) );
  KConfigSkeleton::ItemBool  *itemUseProxyForTracker;
  itemUseProxyForTracker = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useProxyForTracker" ), mUseProxyForTracker, true );
  addItem( itemUseProxyForTracker, QLatin1String( "useProxyForTracker" ) );
  KConfigSkeleton::ItemBool  *itemSocksEnabled;
  itemSocksEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "socksEnabled" ), mSocksEnabled, false );
  addItem( itemSocksEnabled, QLatin1String( "socksEnabled" ) );
  KConfigSkeleton::ItemString  *itemSocksProxy;
  itemSocksProxy = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "socksProxy" ), mSocksProxy, QString::null );
  addItem( itemSocksProxy, QLatin1String( "socksProxy" ) );
  KConfigSkeleton::ItemInt  *itemSocksPort;
  itemSocksPort = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "socksPort" ), mSocksPort, 1080 );
  itemSocksPort->setMinValue(1);
  itemSocksPort->setMaxValue(65535);
  addItem( itemSocksPort, QLatin1String( "socksPort" ) );
  KConfigSkeleton::ItemInt  *itemSocksVersion;
  itemSocksVersion = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "socksVersion" ), mSocksVersion, 5 );
  itemSocksVersion->setMinValue(4);
  itemSocksVersion->setMaxValue(5);
  addItem( itemSocksVersion, QLatin1String( "socksVersion" ) );
  KConfigSkeleton::ItemBool  *itemSocksUsePassword;
  itemSocksUsePassword = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "socksUsePassword" ), mSocksUsePassword, false );
  addItem( itemSocksUsePassword, QLatin1String( "socksUsePassword" ) );
  KConfigSkeleton::ItemString  *itemSocksUsername;
  itemSocksUsername = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "socksUsername" ), mSocksUsername, QString::null );
  addItem( itemSocksUsername, QLatin1String( "socksUsername" ) );
  KConfigSkeleton::ItemString  *itemSocksPassword;
  itemSocksPassword = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "socksPassword" ), mSocksPassword, QString::null );
  addItem( itemSocksPassword, QLatin1String( "socksPassword" ) );
  KConfigSkeleton::ItemInt  *itemEta;
  itemEta = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "eta" ), mEta, 0 );
  itemEta->setMinValue(0);
  itemEta->setMaxValue(4);
  addItem( itemEta, QLatin1String( "eta" ) );
  KConfigSkeleton::ItemBool  *itemDiskPrealloc;
  itemDiskPrealloc = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "diskPrealloc" ), mDiskPrealloc, true );
  addItem( itemDiskPrealloc, QLatin1String( "diskPrealloc" ) );
  KConfigSkeleton::ItemBool  *itemFullDiskPrealloc;
  itemFullDiskPrealloc = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "fullDiskPrealloc" ), mFullDiskPrealloc, false );
  addItem( itemFullDiskPrealloc, QLatin1String( "fullDiskPrealloc" ) );
  KConfigSkeleton::ItemInt  *itemMinDiskSpace;
  itemMinDiskSpace = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "minDiskSpace" ), mMinDiskSpace, 100 );
  itemMinDiskSpace->setMinValue(10);
  itemMinDiskSpace->setMaxValue(10000);
  addItem( itemMinDiskSpace, QLatin1String( "minDiskSpace" ) );
  KConfigSkeleton::ItemInt  *itemCpuUsage;
  itemCpuUsage = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "cpuUsage" ), mCpuUsage, 50 );
  itemCpuUsage->setMinValue(1);
  itemCpuUsage->setMaxValue(250);
  addItem( itemCpuUsage, QLatin1String( "cpuUsage" ) );
  KConfigSkeleton::ItemBool  *itemUseCompletedDir;
  itemUseCompletedDir = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useCompletedDir" ), mUseCompletedDir, false );
  addItem( itemUseCompletedDir, QLatin1String( "useCompletedDir" ) );
  KConfigSkeleton::ItemUrl  *itemCompletedDir;
  itemCompletedDir = new KConfigSkeleton::ItemUrl( currentGroup(), QLatin1String( "completedDir" ), mCompletedDir );
  addItem( itemCompletedDir, QLatin1String( "completedDir" ) );
  KConfigSkeleton::ItemDouble  *itemMaxSeedTime;
  itemMaxSeedTime = new KConfigSkeleton::ItemDouble( currentGroup(), QLatin1String( "maxSeedTime" ), mMaxSeedTime, 0 );
  itemMaxSeedTime->setMinValue(0);
  addItem( itemMaxSeedTime, QLatin1String( "maxSeedTime" ) );
  KConfigSkeleton::ItemInt  *itemNetworkInterface;
  itemNetworkInterface = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "networkInterface" ), mNetworkInterface, 0 );
  itemNetworkInterface->setMinValue(0);
  itemNetworkInterface->setMaxValue(255);
  addItem( itemNetworkInterface, QLatin1String( "networkInterface" ) );
  KConfigSkeleton::ItemBool  *itemOpenMultipleTorrentsSilently;
  itemOpenMultipleTorrentsSilently = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "openMultipleTorrentsSilently" ), mOpenMultipleTorrentsSilently, false );
  addItem( itemOpenMultipleTorrentsSilently, QLatin1String( "openMultipleTorrentsSilently" ) );
  KConfigSkeleton::ItemBool  *itemOpenAllTorrentsSilently;
  itemOpenAllTorrentsSilently = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "openAllTorrentsSilently" ), mOpenAllTorrentsSilently, false );
  addItem( itemOpenAllTorrentsSilently, QLatin1String( "openAllTorrentsSilently" ) );
  KConfigSkeleton::ItemBool  *itemDecreasePriorityOfStalledTorrents;
  itemDecreasePriorityOfStalledTorrents = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "decreasePriorityOfStalledTorrents" ), mDecreasePriorityOfStalledTorrents, false );
  addItem( itemDecreasePriorityOfStalledTorrents, QLatin1String( "decreasePriorityOfStalledTorrents" ) );
  KConfigSkeleton::ItemInt  *itemStallTimer;
  itemStallTimer = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "stallTimer" ), mStallTimer, 15 );
  itemStallTimer->setMinValue(1);
  addItem( itemStallTimer, QLatin1String( "stallTimer" ) );
  KConfigSkeleton::ItemInt  *itemPreviewSizeAudio;
  itemPreviewSizeAudio = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "previewSizeAudio" ), mPreviewSizeAudio, 256 );
  itemPreviewSizeAudio->setMinValue(16);
  addItem( itemPreviewSizeAudio, QLatin1String( "previewSizeAudio" ) );
  KConfigSkeleton::ItemInt  *itemPreviewSizeVideo;
  itemPreviewSizeVideo = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "previewSizeVideo" ), mPreviewSizeVideo, 2048 );
  itemPreviewSizeVideo->setMinValue(16);
  addItem( itemPreviewSizeVideo, QLatin1String( "previewSizeVideo" ) );
  KConfigSkeleton::ItemBool  *itemSuppressSleep;
  itemSuppressSleep = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "suppressSleep" ), mSuppressSleep, true );
  addItem( itemSuppressSleep, QLatin1String( "suppressSleep" ) );
  KConfigSkeleton::ItemBool  *itemOldTorrentsImported;
  itemOldTorrentsImported = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "oldTorrentsImported" ), mOldTorrentsImported, false );
  addItem( itemOldTorrentsImported, QLatin1String( "oldTorrentsImported" ) );
  KConfigSkeleton::ItemBool  *itemManuallyControlTorrents;
  itemManuallyControlTorrents = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "manuallyControlTorrents" ), mManuallyControlTorrents, false );
  addItem( itemManuallyControlTorrents, QLatin1String( "manuallyControlTorrents" ) );
  KConfigSkeleton::ItemBool  *itemWebseedsEnabled;
  itemWebseedsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "webseedsEnabled" ), mWebseedsEnabled, true );
  addItem( itemWebseedsEnabled, QLatin1String( "webseedsEnabled" ) );
  KConfigSkeleton::ItemBool  *itemUseQHttpAnnounce;
  itemUseQHttpAnnounce = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "useQHttpAnnounce" ), mUseQHttpAnnounce, true );
  addItem( itemUseQHttpAnnounce, QLatin1String( "useQHttpAnnounce" ) );
  KConfigSkeleton::ItemBool  *itemLookUpHostnameOfPeers;
  itemLookUpHostnameOfPeers = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "lookUpHostnameOfPeers" ), mLookUpHostnameOfPeers, true );
  addItem( itemLookUpHostnameOfPeers, QLatin1String( "lookUpHostnameOfPeers" ) );
  KConfigSkeleton::ItemBool  *itemUtpEnabled;
  itemUtpEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "utpEnabled" ), mUtpEnabled, false );
  addItem( itemUtpEnabled, QLatin1String( "utpEnabled" ) );
  KConfigSkeleton::ItemBool  *itemOnlyUseUtp;
  itemOnlyUseUtp = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "onlyUseUtp" ), mOnlyUseUtp, false );
  addItem( itemOnlyUseUtp, QLatin1String( "onlyUseUtp" ) );
  KConfigSkeleton::ItemInt  *itemPrimaryTransportProtocol;
  itemPrimaryTransportProtocol = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "primaryTransportProtocol" ), mPrimaryTransportProtocol, 0 );
  addItem( itemPrimaryTransportProtocol, QLatin1String( "primaryTransportProtocol" ) );
  KConfigSkeleton::ItemBool  *itemAutoRenameSingleFileTorrents;
  itemAutoRenameSingleFileTorrents = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "autoRenameSingleFileTorrents" ), mAutoRenameSingleFileTorrents, false );
  addItem( itemAutoRenameSingleFileTorrents, QLatin1String( "autoRenameSingleFileTorrents" ) );
}

Settings::~Settings()
{
  if (!s_globalSettings.isDestroyed()) {
    s_globalSettings->q = 0;
  }
}

