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.
197 lines
3.4 KiB
197 lines
3.4 KiB
15 years ago
|
// This file is generated by kconfig_compiler from test1.kcfg.
|
||
|
// All changes you do to this file will be lost.
|
||
|
#ifndef TEST1_H
|
||
|
#define TEST1_H
|
||
|
|
||
|
#include <kconfigskeleton.h>
|
||
|
#include <kdebug.h>
|
||
|
|
||
15 years ago
|
#include <tqdir.h>
|
||
15 years ago
|
class Test1 : public KConfigSkeleton
|
||
|
{
|
||
|
public:
|
||
|
class EnumListOption
|
||
|
{
|
||
|
public:
|
||
|
enum type { One, Two, Three, COUNT };
|
||
|
};
|
||
|
|
||
15 years ago
|
Test1( const TQString & transport, const TQString & folder );
|
||
15 years ago
|
~Test1();
|
||
|
|
||
|
/**
|
||
|
Set One option
|
||
|
*/
|
||
|
void setOneOption( bool v )
|
||
|
{
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "OneOption" ) ))
|
||
15 years ago
|
mOneOption = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get One option
|
||
|
*/
|
||
|
bool oneOption() const
|
||
|
{
|
||
|
return mOneOption;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Set Another option
|
||
|
*/
|
||
|
void setAnotherOption( int v )
|
||
|
{
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "AnotherOption" ) ))
|
||
15 years ago
|
mAnotherOption = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get Another option
|
||
|
*/
|
||
|
int anotherOption() const
|
||
|
{
|
||
|
return mAnotherOption;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Set This is some funky option
|
||
|
*/
|
||
|
void setListOption( int v )
|
||
|
{
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "ListOption" ) ))
|
||
15 years ago
|
mListOption = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get This is some funky option
|
||
|
*/
|
||
|
int listOption() const
|
||
|
{
|
||
|
return mListOption;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Set This is a string
|
||
|
*/
|
||
15 years ago
|
void setMyString( const TQString & v )
|
||
15 years ago
|
{
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "MyString" ) ))
|
||
15 years ago
|
mMyString = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get This is a string
|
||
|
*/
|
||
15 years ago
|
TQString myString() const
|
||
15 years ago
|
{
|
||
|
return mMyString;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Set This is a path
|
||
|
*/
|
||
15 years ago
|
void setMyPath( const TQString & v )
|
||
15 years ago
|
{
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "MyPath" ) ))
|
||
15 years ago
|
mMyPath = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get This is a path
|
||
|
*/
|
||
15 years ago
|
TQString myPath() const
|
||
15 years ago
|
{
|
||
|
return mMyPath;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Set Another option
|
||
|
*/
|
||
|
void setAnotherOption2( int v )
|
||
|
{
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "AnotherOption2" ) ))
|
||
15 years ago
|
mAnotherOption2 = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get Another option
|
||
|
*/
|
||
|
int anotherOption2() const
|
||
|
{
|
||
|
return mAnotherOption2;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Set MyStringList
|
||
|
*/
|
||
15 years ago
|
void setMyStringList( const TQStringList & v )
|
||
15 years ago
|
{
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "MyStringList" ) ))
|
||
15 years ago
|
mMyStringList = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get MyStringList
|
||
|
*/
|
||
15 years ago
|
TQStringList myStringList() const
|
||
15 years ago
|
{
|
||
|
return mMyStringList;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Set MyStringListHidden
|
||
|
*/
|
||
15 years ago
|
void setMyStringListHidden( const TQStringList & v )
|
||
15 years ago
|
{
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "MyStringListHidden" ) ))
|
||
15 years ago
|
mMyStringListHidden = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get MyStringListHidden
|
||
|
*/
|
||
15 years ago
|
TQStringList myStringListHidden() const
|
||
15 years ago
|
{
|
||
|
return mMyStringListHidden;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Set List Number
|
||
|
*/
|
||
|
void setMyNumber( int v )
|
||
|
{
|
||
14 years ago
|
if (!isImmutable( TQString::tqfromLatin1( "MyNumber" ) ))
|
||
15 years ago
|
mMyNumber = v;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
Get List Number
|
||
|
*/
|
||
|
int myNumber() const
|
||
|
{
|
||
|
return mMyNumber;
|
||
|
}
|
||
|
|
||
|
protected:
|
||
15 years ago
|
TQString mParamtransport;
|
||
|
TQString mParamfolder;
|
||
15 years ago
|
|
||
|
// General-$(folder)
|
||
|
bool mOneOption;
|
||
|
int mAnotherOption;
|
||
|
int mListOption;
|
||
|
|
||
|
// MyOptions
|
||
15 years ago
|
TQString mMyString;
|
||
|
TQString mMyPath;
|
||
15 years ago
|
int mAnotherOption2;
|
||
15 years ago
|
TQStringList mMyStringList;
|
||
|
TQStringList mMyStringListHidden;
|
||
15 years ago
|
int mMyNumber;
|
||
|
|
||
|
private:
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|