// This file is generated by tdeconfig_compiler from launcherapplet.kcfg.
// All changes you do to this file will be lost.
#ifndef PREFS_H
#define PREFS_H

#include <tdeglobal.h>
#include <tdeconfigskeleton.h>
#include <kdebug.h>

class Prefs : public TDEConfigSkeleton
{
  public:

    Prefs( TDESharedConfig::Ptr config = TDEGlobal::sharedConfig() );
    ~Prefs();

    /**
      Set Conserve Space
    */
    void setConserveSpace( bool v )
    {
      if (!isImmutable( TQString::fromLatin1( "ConserveSpace" ) ))
        mConserveSpace = v;
    }

    /**
      Get Conserve Space
    */
    bool conserveSpace() const
    {
      return mConserveSpace;
    }

    /**
      Set Drag Enabled
    */
    void setDragEnabled( bool v )
    {
      if (!isImmutable( TQString::fromLatin1( "DragEnabled" ) ))
        mDragEnabled = v;
    }

    /**
      Get Drag Enabled
    */
    bool dragEnabled() const
    {
      return mDragEnabled;
    }

    /**
      Set Show Desktop Button Enabled
    */
    void setShowDesktopEnabled( bool v )
    {
      if (!isImmutable( TQString::fromLatin1( "ShowDesktopEnabled" ) ))
        mShowDesktopEnabled = v;
    }

    /**
      Get Show Desktop Button Enabled
    */
    bool showDesktopEnabled() const
    {
      return mShowDesktopEnabled;
    }

    /**
      Set Icon Size
    */
    void setIconDim( int v )
    {
      if (!isImmutable( TQString::fromLatin1( "IconDim" ) ))
        mIconDim = v;
    }

    /**
      Get Icon Size
    */
    int iconDim() const
    {
      return mIconDim;
    }


    /**
      Get Offered Icon Sizes
    */
    TQValueList<int> iconDimChoices() const
    {
      return mIconDimChoices;
    }

    /**
      Set Buttons
    */
    void setButtons( const TQStringList & v )
    {
      if (!isImmutable( TQString::fromLatin1( "Buttons" ) ))
        mButtons = v;
    }

    /**
      Get Buttons
    */
    TQStringList buttons() const
    {
      return mButtons;
    }

    /**
      Set Volatile Buttons
    */
    void setVolatileButtons( const TQStringList & v )
    {
      if (!isImmutable( TQString::fromLatin1( "VolatileButtons" ) ))
        mVolatileButtons = v;
    }

    /**
      Get Volatile Buttons
    */
    TQStringList volatileButtons() const
    {
      return mVolatileButtons;
    }


    /**
      Get Show frame for volatile buttons
    */
    bool showVolatileButtonIndicator() const
    {
      return mShowVolatileButtonIndicator;
    }

    /**
      Set Auto Adjust Enabled
    */
    void setAutoAdjustEnabled( bool v )
    {
      if (!isImmutable( TQString::fromLatin1( "AutoAdjustEnabled" ) ))
        mAutoAdjustEnabled = v;
    }

    /**
      Get Auto Adjust Enabled
    */
    bool autoAdjustEnabled() const
    {
      return mAutoAdjustEnabled;
    }

    /**
      Set Minimum Number of Items
    */
    void setAutoAdjustMinItems( int v )
    {
      if (v < 0)
      {
        kdDebug() << "setAutoAdjustMinItems: value " << v << " is less than the minimum value of 0" << endl;
        v = 0;
      }
      if (!isImmutable( TQString::fromLatin1( "AutoAdjustMinItems" ) ))
        mAutoAdjustMinItems = v;
    }

    /**
      Get Minimum Number of Items
    */
    int autoAdjustMinItems() const
    {
      return mAutoAdjustMinItems;
    }

    /**
      Set Maximum Number of Items
    */
    void setAutoAdjustMaxItems( int v )
    {
      if (v < 0)
      {
        kdDebug() << "setAutoAdjustMaxItems: value " << v << " is less than the minimum value of 0" << endl;
        v = 0;
      }
      if (!isImmutable( TQString::fromLatin1( "AutoAdjustMaxItems" ) ))
        mAutoAdjustMaxItems = v;
    }

    /**
      Get Maximum Number of Items
    */
    int autoAdjustMaxItems() const
    {
      return mAutoAdjustMaxItems;
    }


    /**
      Get History Weight
    */
    int historyHorizon() const
    {
      return mHistoryHorizon;
    }


    /**
      Get Service Cache Size
    */
    int serviceCacheSize() const
    {
      return mServiceCacheSize;
    }

    /**
      Set Service Names
    */
    void setServiceNames( const TQStringList & v )
    {
      if (!isImmutable( TQString::fromLatin1( "ServiceNames" ) ))
        mServiceNames = v;
    }

    /**
      Get Service Names
    */
    TQStringList serviceNames() const
    {
      return mServiceNames;
    }

    /**
      Set Service Insertion Positions
    */
    void setServiceInspos( const TQValueList<int> & v )
    {
      if (!isImmutable( TQString::fromLatin1( "ServiceInspos" ) ))
        mServiceInspos = v;
    }

    /**
      Get Service Insertion Positions
    */
    TQValueList<int> serviceInspos() const
    {
      return mServiceInspos;
    }

    /**
      Set Service History Data
    */
    void setServiceHistories( const TQStringList & v )
    {
      if (!isImmutable( TQString::fromLatin1( "ServiceHistories" ) ))
        mServiceHistories = v;
    }

    /**
      Get Service History Data
    */
    TQStringList serviceHistories() const
    {
      return mServiceHistories;
    }

  protected:

    // General
    bool mConserveSpace;
    bool mDragEnabled;
    bool mShowDesktopEnabled;
    int mIconDim;
    TQValueList<int> mIconDimChoices;
    TQStringList mButtons;
    TQStringList mVolatileButtons;
    bool mShowVolatileButtonIndicator;
    bool mAutoAdjustEnabled;
    int mAutoAdjustMinItems;
    int mAutoAdjustMaxItems;
    int mHistoryHorizon;

    // PopularityData
    int mServiceCacheSize;
    TQStringList mServiceNames;
    TQValueList<int> mServiceInspos;
    TQStringList mServiceHistories;

  private:
};

#endif

