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

#include "motionawayconfig.h"

#include <kstaticdeleter.h>

MotionAwayConfig *MotionAwayConfig::mSelf = 0;
static KStaticDeleter<MotionAwayConfig> staticMotionAwayConfigDeleter;

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

  return mSelf;
}

MotionAwayConfig::MotionAwayConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "motionawayconfig" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "MotionAutoAway Plugin" ) );

  mBecomeAvailableWithActivityItem = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "BecomeAvailableWithActivity" ), mBecomeAvailableWithActivity, true );
  addItem( mBecomeAvailableWithActivityItem, TQString::fromLatin1( "BecomeAvailableWithActivity" ) );
  mVideoDeviceItem = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "VideoDevice" ), mVideoDevice, TQString::fromLatin1( "/dev/video0" ) );
  addItem( mVideoDeviceItem, TQString::fromLatin1( "VideoDevice" ) );
  mAwayTimeoutItem = new TDEConfigSkeleton::ItemUInt( currentGroup(), TQString::fromLatin1( "AwayTimeout" ), mAwayTimeout, 1 );
  mAwayTimeoutItem->setMinValue(0);
  addItem( mAwayTimeoutItem, TQString::fromLatin1( "AwayTimeout" ) );
}

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

