libqutim  0.3.1.0
qutim_sdk_0_3::PersonInfo Class Reference

#include <personinfo.h>

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.
qutim_sdk_0_3::PersonInfo::PersonInfo ( const PersonInfo other)

Constructs copy of other.

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

Destructor.

Member Function Documentation

static QList<PersonInfo> qutim_sdk_0_3::PersonInfo::authors ( )
static
QString qutim_sdk_0_3::PersonInfo::email ( ) const

Person's e-mail.

Returns
Person's e-mail
LocalizedString qutim_sdk_0_3::PersonInfo::name ( ) const

Person's name.

Returns
Person's name
QString qutim_sdk_0_3::PersonInfo::ocsUsername ( ) const
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
PersonInfo& qutim_sdk_0_3::PersonInfo::setName ( const LocalizedString name)

Set person's name to name.

Returns
Reference to this info
PersonInfo& qutim_sdk_0_3::PersonInfo::setTask ( const LocalizedString task)

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
LocalizedString qutim_sdk_0_3::PersonInfo::task ( ) const

Person's task.

Returns
Person's task
static QList<PersonInfo> qutim_sdk_0_3::PersonInfo::translators ( )
static
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:

Generated by Doxygen