#include <kaboutdata.h>
Public Types | |
| enum | LicenseKey |
Public Methods | |
| 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") | |
| void | addAuthor (const char *name, const char *task=0, const char *emailAddress=0, const char *webAddress=0) |
| void | addCredit (const char *name, const char *task=0, const char *emailAddress=0, const char *webAddress=0) |
| void | setTranslator (const char *name, const char *emailAddress) |
| void | setLicenseText (const char *license) |
| void | setLicenseTextFile (const QString &file) |
| const char * | appName () const |
| QString | programName () const |
| QString | version () const |
| QString | shortDescription () const |
| QString | homepage () const |
| QString | bugAddress () const |
| const QValueList< KAboutPerson > | authors () const |
| const QValueList< KAboutPerson > | credits () const |
| const QValueList< KAboutTranslator > | translators () const |
| QString | otherText () const |
| QString | license () const |
| QString | copyrightStatement () const |
Static Public Methods | |
| QString | aboutTranslationTeam () |
This class is used to store information about a program. It can store such values as version number, program name, home page, email address for bug reporting, multiple authors and contributors (using KAboutPerson), license and copyright information.
Currently, the values set here are shown by the "About" box (see KAboutDialog), used by the bug report dialog (see KBugReport), and by the help shown on command line (see KCmdLineArgs).
Definition at line 167 of file kaboutdata.h.
|
|
Descibes the license of the software. Definition at line 173 of file kaboutdata.h. |
|
||||||||||||||||||||||||||||||||||||||||
|
Constructor.
|
|
|
Returns a message about the translation team.
|
|
||||||||||||||||||||
|
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.
|
|
||||||||||||||||||||
|
Defines a person that deserves credit. You can call this function as many times you need. Each entry is appended to a list.
|
|
|
Returns the application's internal name.
|
|
|
Returns a list of authors.
|
|
|
Returns the email address for bugs.
|
|
|
Returns the copyright statement.
|
|
|
Returns a list of persons who contributed.
|
|
|
Returns the application homepage.
|
|
|
Returns the license. If the licenseType argument of the constructor has been used, any text defined by setLicenseText is ignored, and the standard text for the chosen license will be returned.
|
|
|
Returns a translated, free form text.
|
|
|
Returns the translated program name.
|
|
|
Defines a licence text. The text will be translated if it got marked for translations with the I18N_NOOP() macro. Example:
setLicenseText( I18N_NOOP("This is my license"));
NOTE: No copy of the text is made.
|
|
|
Defines a licence text.
|
|
||||||||||||
|
Sets the name of the translator of the gui. Since this depends on the language, just use a dummy text marked for translation. For example:
setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\nYour names")
,I18N_NOOP("_: EMAIL OF TRANSLATORS\nYour emails"));
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. Note: If you are using the default KDE automake environment, there is no need to use this function, because the two default strings above are added to the applications po file automatically.
|
|
|
Returns a short, translated description.
|
|
|
Returns a list of translators.
|
|
|
Returns the program's version.
|
1.2.18