From 6596b6d0f23e85c0dbd3c593ccbcb1b90b5855cc Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 15 Apr 2010 08:44:29 +0000 Subject: make QXmppRosterEntry inherit QXmppRosterIq::Item --- source/QXmppRoster.cpp | 132 ------------------------------------------------- 1 file changed, 132 deletions(-) (limited to 'source/QXmppRoster.cpp') 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 list of all the groups -/// - -QSet 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 -/// - -void QXmppRoster::QXmppRosterEntry::setGroups(const QSet& 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 QXmppRoster::QXmppRosterEntry::getGroups() const -{ - return m_groups; -} -- cgit v1.2.3