.PP
.TH "KAboutData" 3 "28 Jan 2004" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KAboutData \- This class is used to store information about a program. Holds information needed by the 'About' box and other classes.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kaboutdata.h>\fP
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBLicenseKey\fP { \fBLicense_Custom\fP =  -2, \fBLicense_File\fP =  -1, \fBLicense_Unknown\fP =  0, \fBLicense_GPL\fP =  1, \fBLicense_GPL_V2\fP =  1, \fBLicense_LGPL\fP =  2, \fBLicense_LGPL_V2\fP =  2, \fBLicense_BSD\fP =  3, \fBLicense_Artistic\fP =  4, \fBLicense_QPL\fP =  5, \fBLicense_QPL_V1_0\fP =  5 }"
.br
.RI "\fIDescibes the license of the software. \fP"
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKAboutData\fP (const  char *appName, const  char *programName, const  char *version, const  char *shortDescription=0, int licenseType=License_Unknown, const  char *copyrightStatement=0, const  char *text=0, const  char *homePageAddress=0, const  char *bugsEmailAddress='submit @bugs.kde.org')"
.br
.RI "\fIConstructor. \fP"
.ti -1c
.RI "void \fBaddAuthor\fP (const  char *name, const  char *task=0, const  char *emailAddress=0, const  char *webAddress=0)"
.br
.RI "\fIDefines an author. \fP"
.ti -1c
.RI "void \fBaddCredit\fP (const  char *name, const  char *task=0, const  char *emailAddress=0, const  char *webAddress=0)"
.br
.RI "\fIDefines a person that deserves credit. \fP"
.ti -1c
.RI "void \fBsetTranslator\fP (const  char *name, const  char *emailAddress)"
.br
.RI "\fISets the name of the translator of the gui. \fP"
.ti -1c
.RI "void \fBsetLicenseText\fP (const  char *license)"
.br
.RI "\fIDefines a licence text. \fP"
.ti -1c
.RI "void \fBsetLicenseTextFile\fP (const  \fBQString\fP &file)"
.br
.RI "\fIDefines a licence text. \fP"
.ti -1c
.RI "const  char * \fBappName\fP () const "
.br
.RI "\fIReturns the application's internal name. \fP"
.ti -1c
.RI "\fBQString\fP \fBprogramName\fP () const "
.br
.RI "\fIReturns the translated program name. \fP"
.ti -1c
.RI "\fBQString\fP \fBversion\fP () const "
.br
.RI "\fIReturns the program's version. \fP"
.ti -1c
.RI "\fBQString\fP \fBshortDescription\fP () const "
.br
.RI "\fIReturns a short, translated description. \fP"
.ti -1c
.RI "\fBQString\fP \fBhomepage\fP () const "
.br
.RI "\fIReturns the application homepage. \fP"
.ti -1c
.RI "\fBQString\fP \fBbugAddress\fP () const "
.br
.RI "\fIReturns the email address for bugs. \fP"
.ti -1c
.RI "const  \fBQValueList\fP< \fBKAboutPerson\fP > \fBauthors\fP () const "
.br
.RI "\fIReturns a list of authors. \fP"
.ti -1c
.RI "const  \fBQValueList\fP< \fBKAboutPerson\fP > \fBcredits\fP () const "
.br
.RI "\fIReturns a list of persons who contributed. \fP"
.ti -1c
.RI "const  \fBQValueList\fP< \fBKAboutTranslator\fP > \fBtranslators\fP () const "
.br
.RI "\fIReturns a list of translators. \fP"
.ti -1c
.RI "\fBQString\fP \fBotherText\fP () const "
.br
.RI "\fIReturns a translated, free form text. \fP"
.ti -1c
.RI "\fBQString\fP \fBlicense\fP () const "
.br
.RI "\fIReturns the license. \fP"
.ti -1c
.RI "\fBQString\fP \fBcopyrightStatement\fP () const "
.br
.RI "\fIReturns the copyright statement. \fP"
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBaboutTranslationTeam\fP ()"
.br
.RI "\fIReturns a message about the translation team. \fP"
.in -1c
.SH "Detailed Description"
.PP 
This class is used to store information about a program. Holds information needed by the 'About' box and other classes. 

It can store such values as version number, program name, home page, email address for bug reporting, multiple authors and contributors (using \fBKAboutPerson\fP), license and copyright information.
.PP
Currently, the values set here are shown by the 'About' box (see \fBKAboutDialog\fP), used by the bug report dialog (see \fBKBugReport\fP), and by the help shown on command line (see \fBKCmdLineArgs\fP).
.PP
\fBAuthor:\fP
.RS 4
Espen Sand (espen@kde.org), David Faure (faure@kde.org) 
.RE
.PP
\fBVersion:\fP
.RS 4
\fBId\fP.RS 4
\fBkaboutdata.h\fP,v 1.26.2.1 2003/04/25 18:14:50 waba Exp 
.RE
.PP
.RE
.PP

.PP
Definition at line 167 of file kaboutdata.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBKAboutData::LicenseKey\fP"
.PP
Descibes the license of the software. Definition at line 173 of file kaboutdata.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KAboutData::KAboutData (const char * appName, const char * programName, const char * version, const char * shortDescription = 0, int licenseType = License_Unknown, const char * copyrightStatement = 0, const char * text = 0, const char * homePageAddress = 0, const char * bugsEmailAddress = 'submit @bugs.kde.org')"
.PP
Constructor. \fBParameters:\fP
.RS 4
\fIappName\fP The program name used internally. Example: 'kedit'
.br
\fIprogramName\fP A displayable program name string. This string should be marked for translation. Example: I18N_NOOP('KEdit')
.br
\fIversion\fP The program version string.
.br
\fIshortDescription\fP A short description of what the program does. This string should be marked for translation. Example: I18N_NOOP('A simple text editor.')
.br
\fIlicenseType\fP The license identifier. Use \fBsetLicenseText\fP if you use a license not predefined here.
.br
\fIcopyrightStatement\fP A copyright statement, that can look like this: '(c) 1999-2000, Name'. The string specified here is not modified in any manner. The author information from \fBaddAuthor\fP is not used.
.br
\fItext\fP Some free form text, that can contain any kind of information. The text can contain newlines. This string should be marked for translation.
.br
\fIhomePageAddress\fP The program homepage string. Start the address with 'http://'. 'http://some.domain' is is correct, 'some.domain' is not.
.br
\fIbugsEmailAddress\fP The bug report email address string. This defaults to the kde.org bug system. 
.RE
.PP
Definition at line 87 of file kaboutdata.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KAboutData::addAuthor (const char * name, const char * task = 0, const char * emailAddress = 0, const char * webAddress = 0)"
.PP
Defines an author. You can call this function as many times you need. Each entry is appended to a list. The person in the first entry is assumed to be the leader of the project.
.PP
\fBParameters:\fP
.RS 4
\fIname\fP The developer's name in UTF-8 encoding.
.br
\fItask\fP What the person is responsible for. This text can contain newlines. It should be marked for translation like this: I18N_NOOP('Task description...'). Can be 0.
.br
\fIemailAddress\fP An Email address where the person can be reached. Can be 0.
.br
\fIwebAddress\fP The person's homepage or a relevant link. Start the address with 'http://'. 'http://some.domain' is is correct, 'some.domain' is not. Can be 0. 
.RE
.PP
Definition at line 124 of file kaboutdata.cpp.
.PP
References QValueList< KAboutPerson >::append(), and KStdAction::name().
.SS "void KAboutData::addCredit (const char * name, const char * task = 0, const char * emailAddress = 0, const char * webAddress = 0)"
.PP
Defines a person that deserves credit. You can call this function as many times you need. Each entry is appended to a list.
.PP
\fBParameters:\fP
.RS 4
\fIname\fP The person's name in UTF-8 encoding.
.br
\fItask\fP What the person has done to deserve the honor. The text can contain newlines. It should be marked for translation like this: I18N_NOOP('Task description...') Can be 0.
.br
\fIemailAddress\fP An Email address when the person can be reached. Can be 0.
.br
\fIwebAddress\fP The person's homepage or a relevant link. Start the address with 'http://'. 'http://some.domain' is is correct, 'some.domain' is not. Can be 0. 
.RE
.PP
Definition at line 131 of file kaboutdata.cpp.
.PP
References QValueList< KAboutPerson >::append(), and KStdAction::name().
.SS "void KAboutData::setTranslator (const char * name, const char * emailAddress)"
.PP
Sets the name of the translator of the gui. Since this depends on the language, just use a dummy text marked for translation.
.PP
For example: 
.PP
.nf

 setTranslator(I18N_NOOP('_: NAME OF TRANSLATORS\\nYour names')
 ,I18N_NOOP('_: EMAIL OF TRANSLATORS\\nYour emails'));
 
.PP
.PP
The translator can then translate this dummy text with his name or with a list of names separated with ','. If there is no translation or the application is used with the default language, this function call is ignored.
.PP
Note: If you are using the default \fBKDE\fP automake environment, there is no need to use this function, because the two default strings above are added to the applications po file automatically.
.PP
\fBParameters:\fP
.RS 4
\fIname\fP the name of the translator 
.br
\fIemailAddress\fP the email address of the translator 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKAboutTranslator\fP 
.RE
.PP
Definition at line 138 of file kaboutdata.cpp.
.PP
References KStdAction::name().
.SS "void KAboutData::setLicenseText (const char * license)"
.PP
Defines a licence text. The text will be translated if it got marked for translations with the \fBI18N_NOOP()\fP macro.
.PP
Example: 
.PP
.nf

 setLicenseText( I18N_NOOP('This is my license'));
 
.PP
.PP
NOTE: No copy of the text is made.
.PP
\fBParameters:\fP
.RS 4
\fIlicense\fP The license text in utf8 encoding. 
.RE
.PP
Definition at line 145 of file kaboutdata.cpp.
.SS "void KAboutData::setLicenseTextFile (const \fBQString\fP & file)"
.PP
Defines a licence text. \fBParameters:\fP
.RS 4
\fIfile\fP File containing the license text. 
.RE
.PP
Definition at line 152 of file kaboutdata.cpp.
.PP
References QFile::encodeName().
.SS "const  char * KAboutData::appName () const"
.PP
Returns the application's internal name. \fBReturns:\fP
.RS 4
the internal program name. 
.RE
.PP
Definition at line 160 of file kaboutdata.cpp.
.PP
Referenced by KUniqueApplication::start().
.SS "\fBQString\fP KAboutData::programName () const"
.PP
Returns the translated program name. \fBReturns:\fP
.RS 4
the program name (translated). 
.RE
.PP
Definition at line 166 of file kaboutdata.cpp.
.PP
Referenced by KApplication::caption(), and KCrash::defaultCrashHandler().
.SS "\fBQString\fP KAboutData::version () const"
.PP
Returns the program's version. \fBReturns:\fP
.RS 4
the version string. 
.RE
.PP
Definition at line 175 of file kaboutdata.cpp.
.PP
References QString::fromLatin1().
.PP
Referenced by KCrash::defaultCrashHandler().
.SS "\fBQString\fP KAboutData::shortDescription () const"
.PP
Returns a short, translated description. \fBReturns:\fP
.RS 4
the short description (translated). Can be QString::null if not set. 
.RE
.PP
Definition at line 181 of file kaboutdata.cpp.
.PP
Referenced by KCmdLineArgs::usage().
.SS "\fBQString\fP KAboutData::homepage () const"
.PP
Returns the application homepage. \fBReturns:\fP
.RS 4
the application homepage URL. Can be QString::null if not set. 
.RE
.PP
Definition at line 190 of file kaboutdata.cpp.
.PP
References QString::fromLatin1().
.SS "\fBQString\fP KAboutData::bugAddress () const"
.PP
Returns the email address for bugs. \fBReturns:\fP
.RS 4
the email address where to report bugs. 
.RE
.PP
Definition at line 196 of file kaboutdata.cpp.
.PP
References QString::fromLatin1().
.PP
Referenced by KCrash::defaultCrashHandler().
.SS "const  \fBQValueList\fP< \fBKAboutPerson\fP > KAboutData::authors () const"
.PP
Returns a list of authors. \fBReturns:\fP
.RS 4
author information (list of persons). 
.RE
.PP
Definition at line 202 of file kaboutdata.cpp.
.SS "const  \fBQValueList\fP< \fBKAboutPerson\fP > KAboutData::credits () const"
.PP
Returns a list of persons who contributed. \fBReturns:\fP
.RS 4
credit information (list of persons). 
.RE
.PP
Definition at line 208 of file kaboutdata.cpp.
.SS "const  \fBQValueList\fP< \fBKAboutTranslator\fP > KAboutData::translators () const"
.PP
Returns a list of translators. \fBReturns:\fP
.RS 4
translators information (list of persons) 
.RE
.PP
Definition at line 214 of file kaboutdata.cpp.
.PP
References QValueList::append(), QString::fromUtf8(), KStdAction::name(), and QStringList::split().
.SS "\fBQString\fP KAboutData::aboutTranslationTeam ()\fC [static]\fP"
.PP
Returns a message about the translation team. \fBReturns:\fP
.RS 4
a message about the translation team 
.RE
.PP
Definition at line 263 of file kaboutdata.cpp.
.SS "\fBQString\fP KAboutData::otherText () const"
.PP
Returns a translated, free form text. \fBReturns:\fP
.RS 4
the free form text (translated). Can be QString::null if not set. 
.RE
.PP
Definition at line 273 of file kaboutdata.cpp.
.SS "\fBQString\fP KAboutData::license () const"
.PP
Returns the license. If the licenseType argument of the constructor has been used, any text defined by \fBsetLicenseText\fP is ignored, and the standard text for the chosen license will be returned.
.PP
\fBReturns:\fP
.RS 4
The license text. 
.RE
.PP
Definition at line 283 of file kaboutdata.cpp.
.PP
References QString::arg(), QFile::decodeName(), QString::isEmpty(), QFile::open(), and QTextStream::read().
.SS "\fBQString\fP KAboutData::copyrightStatement () const"
.PP
Returns the copyright statement. \fBReturns:\fP
.RS 4
the copyright statement. Can be QString::null if not set. 
.RE
.PP
Definition at line 342 of file kaboutdata.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
