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

#include "choqokbehaviorsettings.h"

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

using namespace Choqok;

namespace Choqok {

class BehaviorSettingsHelper
{
  public:
    BehaviorSettingsHelper() : q(0) {}
    ~BehaviorSettingsHelper() { delete q; }
    BehaviorSettings *q;
};
}

Q_GLOBAL_STATIC(BehaviorSettingsHelper, s_globalBehaviorSettings)
BehaviorSettings *BehaviorSettings::self()
{
  if (!s_globalBehaviorSettings()->q) {
    new BehaviorSettings;
    s_globalBehaviorSettings()->q->read();
  }

  return s_globalBehaviorSettings()->q;
}

BehaviorSettings::BehaviorSettings(  )
  : KConfigSkeleton( QStringLiteral( "choqokrc" ) )
{
  Q_ASSERT(!s_globalBehaviorSettings()->q);
  s_globalBehaviorSettings()->q = this;
  setCurrentGroup( QStringLiteral( "Behavior" ) );

  mNotifyEnabledItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "notifyEnabled" ), mNotifyEnabled, true );
  addItem( mNotifyEnabledItem, QStringLiteral( "notifyEnabled" ) );
  mShowAllNotifiesInOneItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "showAllNotifiesInOne" ), mShowAllNotifiesInOne, false );
  addItem( mShowAllNotifiesInOneItem, QStringLiteral( "showAllNotifiesInOne" ) );
  mEnableSysTrayItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "enableSysTray" ), mEnableSysTray, true );
  addItem( mEnableSysTrayItem, QStringLiteral( "enableSysTray" ) );
  mEnableSpellCheckerItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "enableSpellChecker" ), mEnableSpellChecker, false );
  addItem( mEnableSpellCheckerItem, QStringLiteral( "enableSpellChecker" ) );
  mMarkAllAsReadOnHideToSystrayItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "markAllAsReadOnHideToSystray" ), mMarkAllAsReadOnHideToSystray, true );
  addItem( mMarkAllAsReadOnHideToSystrayItem, QStringLiteral( "markAllAsReadOnHideToSystray" ) );
  mMarkAllAsReadOnExitItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "markAllAsReadOnExit" ), mMarkAllAsReadOnExit, true );
  addItem( mMarkAllAsReadOnExitItem, QStringLiteral( "markAllAsReadOnExit" ) );
  mUpdateIntervalItem = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "updateInterval" ), mUpdateInterval, 10 );
  addItem( mUpdateIntervalItem, QStringLiteral( "updateInterval" ) );
  mNotifyIntervalItem = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "notifyInterval" ), mNotifyInterval, 10 );
  addItem( mNotifyIntervalItem, QStringLiteral( "notifyInterval" ) );
  mShowMainWinOnStartItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "showMainWinOnStart" ), mShowMainWinOnStart, true );
  addItem( mShowMainWinOnStartItem, QStringLiteral( "showMainWinOnStart" ) );
  mShowSplashScreenItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "showSplashScreen" ), mShowSplashScreen, true );
  addItem( mShowSplashScreenItem, QStringLiteral( "showSplashScreen" ) );
  mPositionItem = new KConfigSkeleton::ItemPoint( currentGroup(), QStringLiteral( "position" ), mPosition, QPoint(-1,-1) );
  addItem( mPositionItem, QStringLiteral( "position" ) );
  mUseKWalletItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "UseKWallet" ), mUseKWallet, true );
  addItem( mUseKWalletItem, QStringLiteral( "UseKWallet" ) );
  mUseCustomBrowserItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "useCustomBrowser" ), mUseCustomBrowser, false );
  addItem( mUseCustomBrowserItem, QStringLiteral( "useCustomBrowser" ) );
  mCustomBrowserItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "customBrowser" ), mCustomBrowser );
  addItem( mCustomBrowserItem, QStringLiteral( "customBrowser" ) );
  mShortenOnPasteItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "shortenOnPaste" ), mShortenOnPaste, false );
  addItem( mShortenOnPasteItem, QStringLiteral( "shortenOnPaste" ) );
  mRemoveHttpItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "removeHttp" ), mRemoveHttp, false );
  addItem( mRemoveHttpItem, QStringLiteral( "removeHttp" ) );
  mShortenerPluginItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "shortenerPlugin" ), mShortenerPlugin );
  addItem( mShortenerPluginItem, QStringLiteral( "shortenerPlugin" ) );
  mCountOfPostsItem = new KConfigSkeleton::ItemInt( currentGroup(), QStringLiteral( "countOfPosts" ), mCountOfPosts, 20 );
  addItem( mCountOfPostsItem, QStringLiteral( "countOfPosts" ) );
  mResendWithQuickPostItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "resendWithQuickPost" ), mResendWithQuickPost, false );
  addItem( mResendWithQuickPostItem, QStringLiteral( "resendWithQuickPost" ) );
  mUseCustomRTItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "useCustomRT" ), mUseCustomRT, false );
  addItem( mUseCustomRTItem, QStringLiteral( "useCustomRT" ) );
  mCustomRTItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "customRT" ), mCustomRT );
  addItem( mCustomRTItem, QStringLiteral( "customRT" ) );
  mLastUsedUploaderPluginItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "lastUsedUploaderPlugin" ), mLastUsedUploaderPlugin );
  addItem( mLastUsedUploaderPluginItem, QStringLiteral( "lastUsedUploaderPlugin" ) );
  mSpellerLanguageItem = new KConfigSkeleton::ItemString( currentGroup(), QStringLiteral( "spellerLanguage" ), mSpellerLanguage );
  addItem( mSpellerLanguageItem, QStringLiteral( "spellerLanguage" ) );
  mKnotifyItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "knotify" ), mKnotify, true );
  addItem( mKnotifyItem, QStringLiteral( "knotify" ) );
  mLibindicateItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "libindicate" ), mLibindicate, false );
  addItem( mLibindicateItem, QStringLiteral( "libindicate" ) );

  setCurrentGroup( QStringLiteral( "QuickPost" ) );

  mAllItem = new KConfigSkeleton::ItemBool( currentGroup(), QStringLiteral( "All" ), mAll, false );
  addItem( mAllItem, QStringLiteral( "All" ) );
  mQuickPostDialogSizeItem = new KConfigSkeleton::ItemSize( currentGroup(), QStringLiteral( "QuickPostDialogSize" ), mQuickPostDialogSize, QSize(280,140) );
  addItem( mQuickPostDialogSizeItem, QStringLiteral( "QuickPostDialogSize" ) );
}

BehaviorSettings::~BehaviorSettings()
{
  s_globalBehaviorSettings()->q = 0;
}

