QXmpp Version:0.7.6

- Main Page
- Modules
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

All Classes Functions Variables Enumerations Enumerator Properties Groups
Public Types | Public Member Functions | List of all members
QXmppMucItem Class Reference
Stanzas

The QXmppMucItem class represents a chat room "item". More...

`#include <QXmppMucIq.h>`

## Public Types

enum | Affiliation { UnspecifiedAffiliation, OutcastAffiliation, NoAffiliation, MemberAffiliation, AdminAffiliation, OwnerAffiliation }
| This enum is used to represent long-lived permissions in a room (affiliations).
enum | Role { UnspecifiedRole, NoRole, VisitorRole, ParticipantRole, ModeratorRole }
| This enum is used to represent short-lived permissions in a room (roles).

## Public Member Functions

bool | isNull () const
| Returns true if the current item is null.
QString | actor () const
void | setActor (const QString &actor)
Affiliation | affiliation () const
| Returns the user's affiliation, i.e. long-lived permissions.
void | setAffiliation (Affiliation affiliation)
QString | jid () const
| Returns the user's real JID.
void | setJid (const QString &jid)
QString | nick () const
| Returns the user's nickname.
void | setNick (const QString &nick)
QString | reason () const
void | setReason (const QString &reason)
Role | role () const
| Returns the user's role, i.e. short-lived permissions.
void | setRole (Role role)

## Detailed Description

The QXmppMucItem class represents a chat room "item".

It is used to convey information such as permissions.

## Member Function Documentation

QString QXmppMucItem::actor | ( |  | ) | const

Returns the actor for this item, for instance the admin who kicked a user out of a room.

QString QXmppMucItem::reason | ( |  | ) | const

Returns the reason for this item, for example the reason for kicking a user out of a room.

void QXmppMucItem::setActor | ( | const QString & | actor | ) |

Sets the actor for this item, for instance the admin who kicked a user out of a room.

void QXmppMucItem::setAffiliation | ( | Affiliation | affiliation | ) |

Sets the user's affiliation, i.e. long-lived permissions.

Parameters

  affiliation |

void QXmppMucItem::setJid | ( | const QString & | jid | ) |

Sets the user's real JID.

Parameters

  jid |

void QXmppMucItem::setNick | ( | const QString & | nick | ) |

Sets the user's nickname.

Parameters

  nick |

void QXmppMucItem::setReason | ( | const QString & | reason | ) |

Sets the reason for this item, for example the reason for kicking a user out of a room.

void QXmppMucItem::setRole | ( | Role | role | ) |

Sets the user's role, i.e. short-lived permissions.

Parameters

  role |

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

- QXmppMucIq.h
- QXmppMucIq.cpp