Source Code (Use browser search to find items of interest.)

Class Index

kdelibs'KAboutPerson (./kdelibs/kdecore/kaboutdata.h:38)

class KAboutPerson
{
public:
    /**
     * Convenience constructor
     *
     * @param _name The name of the person.
     *
     * @param _task The task of this person. This string should be
     *              marked for translation, e.g.
     *              I18N_NOOP("Task description....")
     *
     * @param _emailAddress The email address of the person.
     *
     * @param _webAddress Homepage of the person.
     */
    KAboutPerson( const char *_name, const char *_task,
                  const char *_emailAddress, const char *_webAddress )
    {
      mName = _name;
      mTask = _task;
      mEmailAddress = _emailAddress;
      mWebAddress = _webAddress;
    }
    /**
     * @internal - don't use. Required by QValueList
     */
    KAboutPerson() {}

    /**
     * The person's name
     */
    QString name() const;

    /**
     * The person's task
     */
    QString task() const;

    /**
     * The person's email address
     */
    QString emailAddress() const;

    /**
     * The homepage or a relevant link
     */
    QString webAddress() const;

protected:
    const char *mName;
    const char *mTask;
    const char *mEmailAddress;
    const char *mWebAddress;

    KAboutPersonPrivate *d;
};

/**
 * This class is used to store information about a program. It can store
 * such values a version number, program name, homepage, email address
 * for bug reporting, multiple authors and contributors
 * (using @ref 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 KCmdLineArguments).
 *
 * @short Class holding information needed by the "About" box and other
 * classes.
 * @author Espen Sand (espen@kde.org), David Faure (faure@kde.org)
 * @version $Id: kaboutdata.h,v 1.10 2000/03/06 18:10:42 granroth Exp $
 */

kdelibs'KAboutPerson::name() (./kdelibs/kdecore/kaboutdata.cpp:28)

KAboutPerson::name() const
{
   return QString::fromLatin1(mName);
}

QString

kdelibs'KAboutPerson::task() (./kdelibs/kdecore/kaboutdata.cpp:34)

KAboutPerson::task() const
{
   return i18n(mTask);
}

QString

kdelibs'KAboutPerson::emailAddress() (./kdelibs/kdecore/kaboutdata.cpp:40)

KAboutPerson::emailAddress() const
{
   return QString::fromLatin1(mEmailAddress);
}


QString

kdelibs'KAboutPerson::webAddress() (./kdelibs/kdecore/kaboutdata.cpp:47)

KAboutPerson::webAddress() const
{
   return QString::fromLatin1(mWebAddress);
}