// This file is generated by kconfig_compiler_kf6 from custommimeheader.kcfg.
// All changes you do to this file will be lost.
#ifndef CUSTOMMIMEHEADER_H
#define CUSTOMMIMEHEADER_H

#include <kconfigskeleton.h>
#include <QCoreApplication>
#include <QDebug>

class CustomMimeHeader : public KConfigSkeleton
{
  public:

    CustomMimeHeader( const QString & pairId );
    ~CustomMimeHeader() override;

    /**
      Set name
    */
    void setCustHeaderName( const QString & v )
    {
      if (!isCustHeaderNameImmutable())
        mCustHeaderName = v;
    }

    /**
      Get name
    */
    QString custHeaderName() const
    {
      return mCustHeaderName;
    }

    /**
      Is name Immutable
    */
    bool isCustHeaderNameImmutable() const
    {
      return isImmutable( QStringLiteral( "CustHeaderName" ) );
    }

    /**
      Get Item object corresponding to CustHeaderName()
    */
    ItemString *custHeaderNameItem()
    {
      return mCustHeaderNameItem;
    }

    /**
      Set value
    */
    void setCustHeaderValue( const QString & v )
    {
      if (!isCustHeaderValueImmutable())
        mCustHeaderValue = v;
    }

    /**
      Get value
    */
    QString custHeaderValue() const
    {
      return mCustHeaderValue;
    }

    /**
      Is value Immutable
    */
    bool isCustHeaderValueImmutable() const
    {
      return isImmutable( QStringLiteral( "CustHeaderValue" ) );
    }

    /**
      Get Item object corresponding to CustHeaderValue()
    */
    ItemString *custHeaderValueItem()
    {
      return mCustHeaderValueItem;
    }

  protected:
    QString mParampairId;

    // Mime #$(pairId)
    QString mCustHeaderName;
    QString mCustHeaderValue;

  private:
    ItemString *mCustHeaderNameItem;
    ItemString *mCustHeaderValueItem;
};

#endif

