Warning, /frameworks/kconfig/autotests/kconfig_compiler/test8b.h.ref is written in an unsupported language. File is not indexed.
0001 // This file is generated by kconfig_compiler_kf6 from test8b.kcfg. 0002 // All changes you do to this file will be lost. 0003 #ifndef TEST8B_H 0004 #define TEST8B_H 0005 0006 #include <test8a.h> 0007 0008 #include <kconfigskeleton.h> 0009 #include <QCoreApplication> 0010 #include <QDebug> 0011 0012 class Test8b : public Test8a 0013 { 0014 public: 0015 0016 static Test8b *self(); 0017 ~Test8b() override; 0018 0019 /** 0020 Set Something 0021 */ 0022 static 0023 void setSomething( uint v ) 0024 { 0025 if (!self()->isSomethingImmutable()) 0026 self()->mSomething = v; 0027 } 0028 0029 /** 0030 Get Something 0031 */ 0032 static 0033 uint something() 0034 { 0035 return self()->mSomething; 0036 } 0037 0038 /** 0039 Is Something Immutable 0040 */ 0041 static 0042 bool isSomethingImmutable() 0043 { 0044 return self()->isImmutable( QStringLiteral( "Something" ) ); 0045 } 0046 0047 /** 0048 Set FooBoo 0049 */ 0050 static 0051 void setFooBoo( bool v ) 0052 { 0053 if (!self()->isFooBooImmutable()) 0054 self()->mFooBoo = v; 0055 } 0056 0057 /** 0058 Get FooBoo 0059 */ 0060 static 0061 bool fooBoo() 0062 { 0063 return self()->mFooBoo; 0064 } 0065 0066 /** 0067 Is FooBoo Immutable 0068 */ 0069 static 0070 bool isFooBooImmutable() 0071 { 0072 return self()->isImmutable( QStringLiteral( "FooBoo" ) ); 0073 } 0074 0075 /** 0076 Set Port 0077 */ 0078 static 0079 void setPort( uint v ) 0080 { 0081 if (!self()->isPortImmutable()) 0082 self()->mPort = v; 0083 } 0084 0085 /** 0086 Get Port 0087 */ 0088 static 0089 uint port() 0090 { 0091 return self()->mPort; 0092 } 0093 0094 /** 0095 Is Port Immutable 0096 */ 0097 static 0098 bool isPortImmutable() 0099 { 0100 return self()->isImmutable( QStringLiteral( "Port" ) ); 0101 } 0102 0103 protected: 0104 Test8b(); 0105 friend class Test8bHelper; 0106 0107 0108 // Group8b1 0109 uint mSomething; 0110 0111 // Group8b2 0112 bool mFooBoo; 0113 uint mPort; 0114 0115 private: 0116 }; 0117 0118 #endif 0119