diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-04-15 08:44:29 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-04-15 08:44:29 +0000 |
| commit | 6596b6d0f23e85c0dbd3c593ccbcb1b90b5855cc (patch) | |
| tree | b74b94e5f5a47c702e58f55b6d65a9ae26a9bda3 /source/QXmppRoster.cpp | |
| parent | b04c25917bf5954df0e67855fe5e5bdd657daf9a (diff) | |
| download | qxmpp-6596b6d0f23e85c0dbd3c593ccbcb1b90b5855cc.tar.gz | |
make QXmppRosterEntry inherit QXmppRosterIq::Item
Diffstat (limited to 'source/QXmppRoster.cpp')
| -rw-r--r-- | source/QXmppRoster.cpp | 132 |
1 files changed, 0 insertions, 132 deletions
diff --git a/source/QXmppRoster.cpp b/source/QXmppRoster.cpp index 06f79430..3020a282 100644 --- a/source/QXmppRoster.cpp +++ b/source/QXmppRoster.cpp @@ -130,113 +130,6 @@ void QXmppRoster::rosterRequestIqReceived(const QXmppRosterIq& rosterIq) } } -/// Returns the bareJid of the roster entry. -/// -/// \return bareJid as a QString -/// - -QString QXmppRoster::QXmppRosterEntry::bareJid() const -{ - return m_bareJid; -} - -/// Returns the name of the roster entry. -/// -/// \return name as a QString -/// - -QString QXmppRoster::QXmppRosterEntry::name() const -{ - return m_name; -} - -/// Returns the subscription type of the roster entry. -/// -/// \return QXmppRosterEntry::SubscriptionType -/// - -QXmppRoster::QXmppRosterEntry::SubscriptionType - QXmppRoster::QXmppRosterEntry::subscriptionType() const -{ - return m_type; -} - -/// Sets the subscription status of the roster entry. It is the "ask" -/// attribute in the Roster IQ stanza. Its value can be "subscribe" or "unsubscribe" -/// or empty. -/// -/// \return subscription status as a QString -/// -/// - -QString QXmppRoster::QXmppRosterEntry::subscriptionStatus() const -{ - return m_subscriptionStatus; -} - -/// Returns the groups of the roster entry. -/// -/// \return QSet<QString> list of all the groups -/// - -QSet<QString> QXmppRoster::QXmppRosterEntry::groups() const -{ - return m_groups; -} - -/// Sets the bareJid of the roster entry. -/// -/// \param bareJid as a QString -/// - -void QXmppRoster::QXmppRosterEntry::setBareJid(const QString& bareJid ) -{ - m_bareJid = bareJid ; -} - -/// Sets the name of the roster entry. -/// -/// \param name as a QString -/// - -void QXmppRoster::QXmppRosterEntry::setName(const QString& name) -{ - m_name = name; -} - -/// Sets the subscription type of the roster entry. -/// -/// \param type as a QXmppRosterEntry::SubscriptionType -/// - -void QXmppRoster::QXmppRosterEntry::setSubscriptionType( - QXmppRosterEntry::SubscriptionType type) -{ - m_type = type; -} - -/// Sets the subscription status of the roster entry. It is the "ask" -/// attribute in the Roster IQ stanza. Its value can be "subscribe" or "unsubscribe" -/// or empty. -/// -/// \param status as a QString -/// - -void QXmppRoster::QXmppRosterEntry::setSubscriptionStatus(const QString& status) -{ - m_subscriptionStatus = status; -} - -/// Sets the groups of the roster entry. -/// -/// \param groups list of all the groups as a QSet<QString> -/// - -void QXmppRoster::QXmppRosterEntry::setGroups(const QSet<QString>& groups) -{ - m_groups = groups; -} - /// Function to get all the bareJids present in the roster. /// /// \return QStringList list of all the bareJids @@ -354,28 +247,3 @@ bool QXmppRoster::isRosterReceived() return m_isRosterReceived; } -QString QXmppRoster::QXmppRosterEntry::getBareJid() const -{ - return m_bareJid; -} - -QString QXmppRoster::QXmppRosterEntry::getName() const -{ - return m_name; -} - -QXmppRoster::QXmppRosterEntry::SubscriptionType - QXmppRoster::QXmppRosterEntry::getSubscriptionType() const -{ - return m_type; -} - -QString QXmppRoster::QXmppRosterEntry::getSubscriptionStatus() const -{ - return m_subscriptionStatus; -} - -QSet<QString> QXmppRoster::QXmppRosterEntry::getGroups() const -{ - return m_groups; -} |
