libqutim  0.3.1.0
qutim_sdk_0_3::PersonInfo Class Reference

#include <personinfo.h>

List of all members.

Public Member Functions

 PersonInfo (const LocalizedString &name=LocalizedString(), const LocalizedString &task=LocalizedString(), const QString &email=QString(), const QString &web=QString())
 PersonInfo (const QString &ocsUsername)
 PersonInfo (const PersonInfo &other)
 PersonInfo (const QSharedDataPointer< PersonInfoData > &p)
 ~PersonInfo ()
QString email () const
LocalizedString name () const
QString ocsUsername () const
PersonInfooperator= (const PersonInfo &other)
PersonInfosetEmail (const QString &email)
PersonInfosetName (const LocalizedString &name)
PersonInfosetTask (const LocalizedString &task)
PersonInfosetWeb (const QString &web)
LocalizedString task () const
QString web () const

Static Public Member Functions

static QList< PersonInfoauthors ()
static QList< PersonInfotranslators ()

Detailed Description

PersonInfo is container of information about person.

Encoding is utf-8, language russian
PersonInfo author = PersonInfo(QT_TRANSLATE_NOOP("Author", "Ivan Sidoroff"),
                               QT_TRANSLATE_NOOP("Task", "Plugin author"),
                               "v.sidorov@qutim.org",
                               "http://qutim.org/v.sidorov");
 author.name(); // "Иван Сидоров"
 author.task(); // "Автор плагина"

Constructor & Destructor Documentation

qutim_sdk_0_3::PersonInfo::PersonInfo ( const LocalizedString name = LocalizedString(),
const LocalizedString task = LocalizedString(),
const QString &  email = QString(),
const QString &  web = QString() 
)

Constructor.

Parameters:
namePerson's name
taskPerson's task
emailPerson's e-mail
webPerson's web address
qutim_sdk_0_3::PersonInfo::PersonInfo ( const QString &  ocsUsername)

Constructor.

Parameters:
ocsUsernameThe person's Open Collaboration Services username.

Constructs copy of other.

qutim_sdk_0_3::PersonInfo::PersonInfo ( const QSharedDataPointer< PersonInfoData > &  p)

Member Function Documentation

static QList<PersonInfo> qutim_sdk_0_3::PersonInfo::authors ( ) [static]

Person's e-mail.

Returns:
Person's e-mail

Person's name.

Returns:
Person's name
PersonInfo& qutim_sdk_0_3::PersonInfo::operator= ( const PersonInfo other)

Assigns other to this info.

Returns:
Reference to this info
PersonInfo& qutim_sdk_0_3::PersonInfo::setEmail ( const QString &  email)

Set person's e-mail to email.

Returns:
Reference to this info

Set person's name to name.

Returns:
Reference to this info

Set person's task to task.

Returns:
Reference to this info
PersonInfo& qutim_sdk_0_3::PersonInfo::setWeb ( const QString &  web)

Set person's web address to web.

Returns:
Reference to this info

Person's task.

Returns:
Person's task
QString qutim_sdk_0_3::PersonInfo::web ( ) const

Person's web address.

Returns:
Person's web address

The documentation for this class was generated from the following file: