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

#include "flickrsettings.h"

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

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

  return s_globalFlickrSettings()->q;
}

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

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

FlickrSettings::~FlickrSettings()
{
  s_globalFlickrSettings()->q = 0;
}

