Warning, /frameworks/kconfig/autotests/kconfig_compiler/test_param_minmax.h.ref is written in an unsupported language. File is not indexed.

0001 // This file is generated by kconfig_compiler_kf6 from test_param_minmax.kcfg.
0002 // All changes you do to this file will be lost.
0003 #ifndef TESTPARAMMINMAX_H
0004 #define TESTPARAMMINMAX_H
0005 
0006 #include <qglobal.h>
0007 #include <kconfigskeleton.h>
0008 #include <QCoreApplication>
0009 #include <QDebug>
0010 
0011 class TestParamMinMax : public KConfigSkeleton
0012 {
0013   public:
0014 
0015     TestParamMinMax( KSharedConfig::Ptr config = KSharedConfig::openConfig() );
0016     ~TestParamMinMax() override;
0017 
0018     /**
0019       Set foo_#$(myparam)
0020     */
0021     void setFoo( int i, double v )
0022     {
0023       if (v < 0.01)
0024       {
0025         qDebug() << "setFoo: value " << v << " is less than the minimum value of 0.01";
0026         v = 0.01;
0027       }
0028 
0029       if (v > 89898.23)
0030       {
0031         qDebug() << "setFoo: value " << v << " is greater than the maximum value of 89898.23";
0032         v = 89898.23;
0033       }
0034 
0035       if (!isFooImmutable( i ))
0036         mFoo[i] = v;
0037     }
0038 
0039     /**
0040       Get foo_#$(myparam)
0041     */
0042     double foo( int i ) const
0043     {
0044       return mFoo[i];
0045     }
0046 
0047     /**
0048       Is foo_#$(myparam) Immutable
0049     */
0050     bool isFooImmutable( int i ) const
0051     {
0052       return isImmutable( QStringLiteral( "Foo%1" ).arg( i ) );
0053     }
0054 
0055   protected:
0056 
0057     // Something
0058     double mFoo[6];
0059 
0060   private:
0061 };
0062 
0063 #endif
0064