// This file is generated by kconfig_compiler from resourcebase.kcfg.
// All changes you do to this file will be lost.
#ifndef AKONADI_RESOURCEBASESETTINGS_H
#define AKONADI_RESOURCEBASESETTINGS_H

#include <akonadi/akonadi_export.h>

#include <kconfigskeleton.h>
#include <kdebug.h>

namespace Akonadi {

class AKONADI_EXPORT ResourceBaseSettings : public KConfigSkeleton
{
  public:

    static ResourceBaseSettings *self();
    ~ResourceBaseSettings();

    /**
      Set MinimumCheckInterval
    */
    static
    void setMinimumCheckInterval( int v )
    {
      if (!self()->isImmutable( QString::fromLatin1( "MinimumCheckInterval" ) ))
        self()->mMinimumCheckInterval = v;
    }

    /**
      Get MinimumCheckInterval
    */
    static
    int minimumCheckInterval()
    {
      return self()->mMinimumCheckInterval;
    }

    /**
      Get Item object corresponding to MinimumCheckInterval()
    */
    ItemInt *minimumCheckIntervalItem()
    {
      return mMinimumCheckIntervalItem;
    }

  protected:
    ResourceBaseSettings();
    friend class ResourceBaseSettingsHelper;


    // ConfigurationDialogRestrictions
    int mMinimumCheckInterval;

  private:
    ItemInt *mMinimumCheckIntervalItem;
};

}

#endif

