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

#include "flickrsettings.h"

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

class FlickrSettingsHelper
{
  public:
    FlickrSettingsHelper() : q(0) {}
    ~FlickrSettingsHelper() { delete q; }
    FlickrSettings *q;
};
K_GLOBAL_STATIC(FlickrSettingsHelper, s_globalFlickrSettings)
FlickrSettings *FlickrSettings::self()
{
  if (!s_globalFlickrSettings->q) {
    new FlickrSettings;
    s_globalFlickrSettings->q->readConfig();
  }

  return s_globalFlickrSettings->q;
}

FlickrSettings::FlickrSettings(  )
  : KConfigSkeleton( QLatin1String( "choqokrc" ) )
{
  Q_ASSERT(!s_globalFlickrSettings->q);
  s_globalFlickrSettings->q = this;
  setCurrentGroup( QLatin1String( "Flickr Uploader" ) );

  mNsidItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "nsid" ), mNsid );
  addItem( mNsidItem, QLatin1String( "nsid" ) );
  mFullnameItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "fullname" ), mFullname );
  addItem( mFullnameItem, QLatin1String( "fullname" ) );
  mUsernameItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "username" ), mUsername );
  addItem( mUsernameItem, QLatin1String( "username" ) );
  mShorturlItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "shorturl" ), mShorturl );
  addItem( mShorturlItem, QLatin1String( "shorturl" ) );
  mForprivateItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "forprivate" ), mForprivate );
  addItem( mForprivateItem, QLatin1String( "forprivate" ) );
  mForfriendsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "forfriends" ), mForfriends );
  addItem( mForfriendsItem, QLatin1String( "forfriends" ) );
  mForfamilyItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "forfamily" ), mForfamily );
  addItem( mForfamilyItem, QLatin1String( "forfamily" ) );
  mForpublicItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "forpublic" ), mForpublic );
  addItem( mForpublicItem, QLatin1String( "forpublic" ) );
  mSafeItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "safe" ), mSafe );
  addItem( mSafeItem, QLatin1String( "safe" ) );
  mModerateItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "moderate" ), mModerate );
  addItem( mModerateItem, QLatin1String( "moderate" ) );
  mRestrictedItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "restricted" ), mRestricted );
  addItem( mRestrictedItem, QLatin1String( "restricted" ) );
  mHidefromsearchItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "hidefromsearch" ), mHidefromsearch );
  addItem( mHidefromsearchItem, QLatin1String( "hidefromsearch" ) );
}

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

