KDECore
kaboutdata.cpp
Go to the documentation of this file.
164 KAboutLicense::Private::Private( enum KAboutData::LicenseKey licenseType, const KAboutData *aboutData )
179 KAboutLicense::Private::Private( const KLocalizedString &licenseText, const KAboutData *aboutData )
196 KAboutLicense::KAboutLicense( enum KAboutData::LicenseKey licenseType, const KAboutData *aboutData )
206 KAboutLicense::KAboutLicense( const KLocalizedString &licenseText, const KAboutData *aboutData )
277 result += i18n("This program is distributed under the terms of the %1.", name(KAboutData::ShortName));
421 QByteArray _translatedProgramName; // ### I don't see it ever being translated, and I did not change that
849 if( !translatorEmail.isEmpty() && translatorEmail != QString::fromUtf8( EMAIL_OF_TRANSLATORS ) )
QString i18n(const char *text)
Returns a localized version of a string.
Definition: klocalizedstring.h:630
KAboutData & setCatalogName(const QByteArray &catalogName)
Defines the translation catalog that the program uses.
Definition: kaboutdata.cpp:618
KAboutData & setBugAddress(const QByteArray &bugAddress)
Defines the address where bug reports should be sent.
Definition: kaboutdata.cpp:660
KAboutData & setOcsProvider(const QByteArray &providerUrl)
Specifies an Open Collaboration Services provider by URL.
Definition: kaboutdata.cpp:600
Definition: kaboutdata.h:212
QString organizationDomain() const
Returns the domain name of the organization that wrote this application.
Definition: kaboutdata.cpp:783
KAboutData & addAuthor(const KLocalizedString &name, const KLocalizedString &task=KLocalizedString(), const QByteArray &emailAddress=QByteArray(), const QByteArray &webAddress=QByteArray())
Defines an author.
Definition: kaboutdata.cpp:505
QString toString() const
Finalizes the translation, creates QString with placeholders substituted.
Definition: klocalizedstring.cpp:192
Definition: kaboutdata.h:208
KAboutData & setOtherText(const KLocalizedString &otherText)
Defines the additional text to show in the about dialog.
Definition: kaboutdata.cpp:648
KAboutData & setHomepage(const QByteArray &homepage)
Defines the program homepage.
Definition: kaboutdata.cpp:654
static QString locate(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
This function is just for convenience.
Definition: kstandarddirs.cpp:2085
QString ocsProviderUrl() const
Returns the chosen Open Collaboration Services provider URL.
Definition: kaboutdata.cpp:738
const char * internalBugAddress() const
Definition: kaboutdata.cpp:792
KAboutLicense & operator=(const KAboutLicense &other)
Assignment operator.
Definition: kaboutdata.cpp:346
KAboutData & addLicense(LicenseKey licenseKey)
Adds a license identifier.
Definition: kaboutdata.cpp:630
Definition: ksycocafactory.h:28
Definition: kaboutdata.h:220
KAboutData & setLicense(LicenseKey licenseKey)
Defines the license identifier.
Definition: kaboutdata.cpp:624
QString licenseName(NameFormat formatName) const
Returns the license name.
Definition: kaboutdata.cpp:894
QString catalogName() const
Returns the program's translation catalog name.
Definition: kaboutdata.cpp:765
QString i18nc(const char *ctxt, const char *text)
Returns a localized version of a string and a context.
Definition: klocalizedstring.h:797
KAboutData & setVersion(const QByteArray &version)
Defines the program version string.
Definition: kaboutdata.cpp:606
void setActiveCatalog(const QString &catalog)
Sets the active catalog for translation lookup.
Definition: klocale.cpp:146
Definition: kaboutdata.h:210
KAboutPerson & operator=(const KAboutPerson &other)
Assignment operator.
Definition: kaboutdata.cpp:141
KAboutData & setTranslator(const KLocalizedString &name, const KLocalizedString &emailAddress)
Sets the name(s) of the translator(s) of the GUI.
Definition: kaboutdata.cpp:543
bool customAuthorTextEnabled() const
Returns whether custom text should be displayed around the list of authors.
Definition: kaboutdata.cpp:925
Definition: kaboutdata.h:202
KAboutData & addLicenseTextFile(const QString &file)
Adds a license text by pointing to a file where it resides.
Definition: kaboutdata.cpp:575
KAboutData & addCredit(const KLocalizedString &name, const KLocalizedString &task=KLocalizedString(), const QByteArray &emailAddress=QByteArray(), const QByteArray &webAddress=QByteArray())
Defines a person that deserves credit.
Definition: kaboutdata.cpp:524
QList< KAboutPerson > credits() const
Returns a list of persons who contributed.
Definition: kaboutdata.cpp:804
Definition: kaboutdata.h:200
QList< KAboutPerson > translators() const
Returns a list of translators.
Definition: kaboutdata.cpp:811
KAboutData(const QByteArray &appName, const QByteArray &catalogName, const KLocalizedString &programName, const QByteArray &version, const KLocalizedString &shortDescription=KLocalizedString(), enum LicenseKey licenseType=License_Unknown, const KLocalizedString ©rightStatement=KLocalizedString(), const KLocalizedString &otherText=KLocalizedString(), const QByteArray &homePageAddress=QByteArray(), const QByteArray &bugsEmailAddress="submit@bugs.kde.org")
Constructor.
Definition: kaboutdata.cpp:427
Definition: kaboutdata.h:205
KAboutData & setProductName(const QByteArray &name)
Defines the product name which will be used in the KBugReport dialog.
Definition: kaboutdata.cpp:672
KAboutData & addLicenseText(const KLocalizedString &license)
Adds a license text, which is marked for translation.
Definition: kaboutdata.cpp:557
Definition: kaboutdata.h:206
KAboutData & setProgramName(const KLocalizedString &programName)
Defines the displayable program name string.
Definition: kaboutdata.cpp:593
QString name(KAboutData::NameFormat formatName) const
Returns the license name.
Definition: kaboutdata.cpp:295
KAboutPerson(const KLocalizedString &name, const KLocalizedString &task=KLocalizedString(), const QByteArray &emailAddress=QByteArray(), const QByteArray &webAddress=QByteArray())
Convenience constructor.
Definition: kaboutdata.cpp:68
KAboutData & setOrganizationDomain(const QByteArray &domain)
Defines the Internet domain of the organization that wrote this application.
Definition: kaboutdata.cpp:666
This class is used to store information about a person or developer.
Definition: kaboutdata.h:68
Definition: kaboutdata.h:211
Definition: kaboutdata.h:209
QString ocsUsername() const
The person's Open Collaboration Services username.
Definition: kaboutdata.cpp:136
QString customAuthorPlainText() const
Returns the plain text displayed around the list of authors instead of the default message telling us...
Definition: kaboutdata.cpp:911
QString productName() const
Returns the application's product name, which will be used in KBugReport dialog.
Definition: kaboutdata.cpp:683
KLocale provides support for country specific stuff like the national language.
Definition: klocale.h:69
KAboutData & unsetCustomAuthorText()
Clears any custom text displayed around the list of authors and falls back to the default message tel...
Definition: kaboutdata.cpp:941
KAboutData & setLicenseTextFile(const QString &file)
Defines a license text by pointing to a file where it resides.
Definition: kaboutdata.cpp:569
static KAboutLicense byKeyword(const QString &keyword)
Fetch a known license by a keyword.
Definition: kaboutdata.cpp:357
KAboutData & setCopyrightStatement(const KLocalizedString ©rightStatement)
Defines the copyright statement to show when displaying the license.
Definition: kaboutdata.cpp:642
static QString aboutTranslationTeam()
Returns a message about the translation team.
Definition: kaboutdata.cpp:872
KLocalizedString ki18nc(const char *ctxt, const char *msg)
Creates localized string from a given message, with added context.
Definition: klocalizedstring.cpp:929
Definition: kaboutdata.h:221
Definition: kaboutdata.h:207
Definition: kaboutdata.h:201
Definition: kaboutdata.h:203
KAboutData & setProgramLogo(const QVariant &image)
Defines the program logo.
Definition: kaboutdata.cpp:732
const char * internalProgramName() const
Definition: kaboutdata.cpp:700
KAboutData & setProgramIconName(const QString &iconName)
Defines the program icon.
Definition: kaboutdata.cpp:721
QString customAuthorRichText() const
Returns the rich text displayed around the list of authors instead of the default message telling use...
Definition: kaboutdata.cpp:918
KAboutData & setCustomAuthorText(const KLocalizedString &plainText, const KLocalizedString &richText)
Sets the custom text displayed around the list of authors instead of the default message telling user...
Definition: kaboutdata.cpp:930
KAboutData & setShortDescription(const KLocalizedString &shortDescription)
Defines a short description of what the program does.
Definition: kaboutdata.cpp:612
Definition: kaboutdata.h:204
KAboutData & setLicenseText(const KLocalizedString &license)
Defines a license text, which is marked for translation.
Definition: kaboutdata.cpp:551
QString shortDescription() const
Returns a short, translated description.
Definition: kaboutdata.cpp:758
Class for producing and handling localized messages.
Definition: klocalizedstring.h:299
KAboutData & setAppName(const QByteArray &appName)
Defines the program name used internally.
Definition: kaboutdata.cpp:587
void translateInternalProgramName() const
Definition: kaboutdata.cpp:709
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.