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

#include "kopeteidentityconfigpreferences.h"

#include <kstaticdeleter.h>

KopeteIdentityConfigPreferences *KopeteIdentityConfigPreferences::mSelf = 0;
static KStaticDeleter<KopeteIdentityConfigPreferences> staticKopeteIdentityConfigPreferencesDeleter;

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

  return mSelf;
}

KopeteIdentityConfigPreferences::KopeteIdentityConfigPreferences(  )
  : TDEConfigSkeleton( TQString::fromLatin1( "kopeterc" ) )
{
  mSelf = this;
  setCurrentGroup( TQString::fromLatin1( "Kopete Identity Config" ) );

  TDEConfigSkeleton::ItemString  *itemSelectedIdentity;
  itemSelectedIdentity = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "SelectedIdentity" ), mSelectedIdentity, i18n("Default Identity") );
  addItem( itemSelectedIdentity, TQString::fromLatin1( "SelectedIdentity" ) );
}

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

