22 #include "exampleprefs_base.h" 24 #include <kaboutdata.h> 25 #include <kapplication.h> 28 #include <kcmdlineargs.h> 31 #include <kstandarddirs.h> 33 int main(
int argc,
char **argv )
36 aboutData.addAuthor(
"Cornelius Schumacher", 0,
"schumacher@kde.org" );
42 ExamplePrefsBase *prefs =
new ExamplePrefsBase(
"Trans1",
"Folder2");
46 prefs->setAnotherOption(17);
48 kdWarning() <<
"Another Option = " << prefs->anotherOption() <<
endl;
49 kdWarning() <<
"Another Option2 = " << prefs->anotherOption2() <<
endl;
Controls and provides information to all KDE applications.
kdbgstream kdWarning(int area=0)
This class is used to store information about a program.
static void init(int _argc, char **_argv, const char *_appname, const char *programName, const char *_description, const char *_version, bool noKApp=false)
Initialize class.
kdbgstream & endl(kdbgstream &s)