Jid Class Reference

#include <mw/messagingbus/jid.h>

class Jid

MB jid permits jid information processing.

Public Member Functions
Jid()
Jid(const QString &)
Jid(const Jid &)
~Jid()
QString bareJid()
QString domain()
QString fullJid()
boolisService()
boolisUser()
boolisValid()
QString node()
Jid &operator=(const Jid &)
booloperator==(const Jid &)
QString resource()
voidsetJid(const QString &)

Constructor & Destructor Documentation

Jid ( )

Jid()

Constructor Creates the JidPrivate object.

Jid ( const QString & )

Jid(const QString &id)

Constructor Creates the JidPrivate object. Construct jid with a QString value.

id - QString& type parameter

Jid ( const Jid & )

Jid(const Jid &other)

Copy Constructor.

other - Jid& class type parameter

~Jid ( )

~Jid()

Destructor.

Member Function Documentation

bareJid ( )

QString bareJid()const

Returns fullJid without resource as a QString value. e.g. user@ovi.com

domain ( )

QString domain()const

Returns domain as a QString value. e.g. ovi.com from user@ovi.com

fullJid ( )

QString fullJid()const

Returns fullJid as a QString value.e.g. user@ovi.com/resource

isService ( )

boolisService()const

Returns a bool type answering if Jid type is a service type.

isUser ( )

boolisUser()const

Returns a bool type answering if Jid type is a user type.

isValid ( )

boolisValid()const

Returns a bool type regarding jid validity.

node ( )

QString node()const

Returns node as a QString value. e.g. user from user@ovi.com

operator= ( const Jid & )

Jid &operator=(const Jid &other)

Operator =, protect against self-assignment.

operator== ( const Jid & )

booloperator==(const Jid &other)

Returns Operator =

resource ( )

QString resource()const

Returns resource as a QString value. e.g. resource from user@ovi.com/resource

setJid ( const QString & )

voidsetJid(const QString &jid)

Method used for setting Jid using a QString value.

jid - QString& type parameter