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

#include "mediamanagersettings.h"

#include <kstaticdeleter.h>

MediaManagerSettings *MediaManagerSettings::mSelf = 0;
static KStaticDeleter<MediaManagerSettings> staticMediaManagerSettingsDeleter;

MediaManagerSettings *MediaManagerSettings::self()
{
  if ( !mSelf ) {
    staticMediaManagerSettingsDeleter.setObject( mSelf, new MediaManagerSettings() );
    mSelf->readConfig();
  }

  return mSelf;
}

MediaManagerSettings::MediaManagerSettings(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "mediamanagerrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Global" ) );

  TDEConfigSkeleton::ItemBool  *itemTdeHardwareBackendEnabled;
  itemTdeHardwareBackendEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "TdeHardwareBackendEnabled" ), mTdeHardwareBackendEnabled, true );
  addItem( itemTdeHardwareBackendEnabled, TQString::fromLatin1( "TdeHardwareBackendEnabled" ) );
  TDEConfigSkeleton::ItemBool  *itemCdPollingEnabled;
  itemCdPollingEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "CdPollingEnabled" ), mCdPollingEnabled, true );
  addItem( itemCdPollingEnabled, TQString::fromLatin1( "CdPollingEnabled" ) );
  TDEConfigSkeleton::ItemBool  *itemAutostartEnabled;
  itemAutostartEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "AutostartEnabled" ), mAutostartEnabled, true );
  addItem( itemAutostartEnabled, TQString::fromLatin1( "AutostartEnabled" ) );
  TDEConfigSkeleton::ItemBool  *itemNotificationPopupsEnabled;
  itemNotificationPopupsEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "NotificationPopupsEnabled" ), mNotificationPopupsEnabled, true );
  addItem( itemNotificationPopupsEnabled, TQString::fromLatin1( "NotificationPopupsEnabled" ) );
  TDEConfigSkeleton::ItemBool  *itemDeviceMonitorPopupsEnabled;
  itemDeviceMonitorPopupsEnabled = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "DeviceMonitorPopupsEnabled" ), mDeviceMonitorPopupsEnabled, true );
  addItem( itemDeviceMonitorPopupsEnabled, TQString::fromLatin1( "DeviceMonitorPopupsEnabled" ) );
}

MediaManagerSettings::~MediaManagerSettings()
{
  if ( mSelf == this )
    staticMediaManagerSettingsDeleter.setObject( mSelf, 0, false );
}

