You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

270 lines
4.6 KiB

// This file is generated by kconfig_compiler_kf5 from test1.kcfg.
// All changes you do to this file will be lost.
#ifndef TEST1_H
#define TEST1_H
#include <kconfigskeleton.h>
#include <QCoreApplication>
#include <QDebug>
#include <qdir.h>
class Test1 : public KConfigSkeleton
{
public:
class EnumListOption
{
public:
enum type { One, Two, Three, COUNT };
};
Test1( const QString & transport, const QString & folder, QObject *parent = nullptr );
~Test1();
/**
Set One option
*/
void setOneOption( bool v )
{
if (!isOneOptionImmutable())
mOneOption = v;
}
/**
Get One option
*/
bool oneOption() const
{
return mOneOption;
}
/**
Is One option Immutable
*/
bool isOneOptionImmutable() const
{
return isImmutable( QStringLiteral( "OneOption" ) );
}
/**
Set Another option
*/
void setAnotherOption( int v )
{
if (!isAnotherOptionImmutable())
mAnotherOption = v;
}
/**
Get Another option
*/
int anotherOption() const
{
return mAnotherOption;
}
/**
Is Another option Immutable
*/
bool isAnotherOptionImmutable() const
{
return isImmutable( QStringLiteral( "AnotherOption" ) );
}
/**
Set This is some funky option
*/
void setListOption( int v )
{
if (!isListOptionImmutable())
mListOption = v;
}
/**
Get This is some funky option
*/
int listOption() const
{
return mListOption;
}
/**
Is This is some funky option Immutable
*/
bool isListOptionImmutable() const
{
return isImmutable( QStringLiteral( "ListOption" ) );
}
/**
Set This is a string
*/
void setMyString( const QString & v )
{
if (!isMyStringImmutable())
mMyString = v;
}
/**
Get This is a string
*/
QString myString() const
{
return mMyString;
}
/**
Is This is a string Immutable
*/
bool isMyStringImmutable() const
{
return isImmutable( QStringLiteral( "MyString" ) );
}
/**
Set This is a path
*/
void setMyPath( const QString & v )
{
if (!isMyPathImmutable())
mMyPath = v;
}
/**
Get This is a path
*/
QString myPath() const
{
return mMyPath;
}
/**
Is This is a path Immutable
*/
bool isMyPathImmutable() const
{
return isImmutable( QStringLiteral( "MyPath" ) );
}
/**
Set Another option
*/
void setAnotherOption2( int v )
{
if (!isAnotherOption2Immutable())
mAnotherOption2 = v;
}
/**
Get Another option
*/
int anotherOption2() const
{
return mAnotherOption2;
}
/**
Is Another option Immutable
*/
bool isAnotherOption2Immutable() const
{
return isImmutable( QStringLiteral( "AnotherOption2" ) );
}
/**
Set MyStringList
*/
void setMyStringList( const QStringList & v )
{
if (!isMyStringListImmutable())
mMyStringList = v;
}
/**
Get MyStringList
*/
QStringList myStringList() const
{
return mMyStringList;
}
/**
Is MyStringList Immutable
*/
bool isMyStringListImmutable() const
{
return isImmutable( QStringLiteral( "MyStringList" ) );
}
/**
Set MyStringListHidden
*/
void setMyStringListHidden( const QStringList & v )
{
if (!isMyStringListHiddenImmutable())
mMyStringListHidden = v;
}
/**
Get MyStringListHidden
*/
QStringList myStringListHidden() const
{
return mMyStringListHidden;
}
/**
Is MyStringListHidden Immutable
*/
bool isMyStringListHiddenImmutable() const
{
return isImmutable( QStringLiteral( "MyStringListHidden" ) );
}
/**
Set List Number
*/
void setMyNumber( int v )
{
if (!isMyNumberImmutable())
mMyNumber = v;
}
/**
Get List Number
*/
int myNumber() const
{
return mMyNumber;
}
/**
Is List Number Immutable
*/
bool isMyNumberImmutable() const
{
return isImmutable( QStringLiteral( "MyNumber" ) );
}
protected:
QString mParamtransport;
QString mParamfolder;
// General-$(folder)
bool mOneOption;
int mAnotherOption;
int mListOption;
// MyOptions
QString mMyString;
QString mMyPath;
int mAnotherOption2;
QStringList mMyStringList;
QStringList mMyStringListHidden;
int mMyNumber;
private:
};
#endif