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

#include "fileoperationconfig.h"

#include <kstaticdeleter.h>

using namespace Gwenview;

FileOperationConfig *FileOperationConfig::mSelf = 0;
static KStaticDeleter<FileOperationConfig> staticFileOperationConfigDeleter;

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

  return mSelf;
}

FileOperationConfig::FileOperationConfig(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "gwenviewrc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "file operations" ) );

  TDEConfigSkeleton::ItemBool  *itemDeleteToTrash;
  itemDeleteToTrash = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "delete to trash" ), mDeleteToTrash, true );
  addItem( itemDeleteToTrash, TQString::fromLatin1( "deleteToTrash" ) );
  TDEConfigSkeleton::ItemBool  *itemConfirmDelete;
  itemConfirmDelete = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "confirm file delete" ), mConfirmDelete, true );
  addItem( itemConfirmDelete, TQString::fromLatin1( "confirmDelete" ) );
  TDEConfigSkeleton::ItemBool  *itemConfirmMove;
  itemConfirmMove = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "confirm file move" ), mConfirmMove, true );
  addItem( itemConfirmMove, TQString::fromLatin1( "confirmMove" ) );
  TDEConfigSkeleton::ItemBool  *itemConfirmCopy;
  itemConfirmCopy = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "confirm file copy" ), mConfirmCopy, true );
  addItem( itemConfirmCopy, TQString::fromLatin1( "confirmCopy" ) );
  TDEConfigSkeleton::ItemPath  *itemDestDir;
  itemDestDir = new TDEConfigSkeleton::ItemPath( currentGroup(), TQString::fromLatin1( "destination dir" ), mDestDir );
  addItem( itemDestDir, TQString::fromLatin1( "destDir" ) );
}

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

