From 9d2d537c7bf395abe4e15528a50f7361205d26be Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 19 Jul 2010 11:41:16 +0000 Subject: remove references to QXmppRoster::QXmppRosterEntry --- source/QXmppRosterIq.cpp | 4 +--- source/QXmppRosterManager.cpp | 13 ++++++------- source/QXmppRosterManager.h | 6 +++--- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/source/QXmppRosterIq.cpp b/source/QXmppRosterIq.cpp index 204a4ada..baa38b47 100644 --- a/source/QXmppRosterIq.cpp +++ b/source/QXmppRosterIq.cpp @@ -155,8 +155,6 @@ void QXmppRosterIq::Item::setSubscriptionStatus(const QString& str) /// Returns the subscription type of the roster entry. /// -/// \return QXmppRosterEntry::SubscriptionType -/// QXmppRosterIq::Item::SubscriptionType QXmppRosterIq::Item::subscriptionType() const @@ -166,7 +164,7 @@ QXmppRosterIq::Item::SubscriptionType /// Sets the subscription type of the roster entry. /// -/// \param type as a QXmppRosterEntry::SubscriptionType +/// \param type /// void QXmppRosterIq::Item::setSubscriptionType(SubscriptionType type) diff --git a/source/QXmppRosterManager.cpp b/source/QXmppRosterManager.cpp index 91882d8a..e2490372 100644 --- a/source/QXmppRosterManager.cpp +++ b/source/QXmppRosterManager.cpp @@ -69,7 +69,7 @@ void QXmppRosterManager::connected() void QXmppRosterManager::disconnected() { - m_entries = QMap(); + m_entries = QMap(); m_presences = QMap >(); m_isRosterReceived = false; } @@ -167,31 +167,30 @@ QStringList QXmppRosterManager::getRosterBareJids() const } /// Returns the roster entry of the given bareJid. If the bareJid is not in the -/// database and empty QXmppRosterManager::QXmppRosterEntry will be returned. +/// database and empty QXmppRosterIq::Item will be returned. /// /// \param bareJid as a QString -/// \return QXmppRosterManager::QXmppRosterEntry /// -QXmppRosterManager::QXmppRosterEntry QXmppRosterManager::getRosterEntry( +QXmppRosterIq::Item QXmppRosterManager::getRosterEntry( const QString& bareJid) const { // will return blank entry if bareJid does'nt exist if(m_entries.contains(bareJid)) return m_entries.value(bareJid); else - return QXmppRosterManager::QXmppRosterEntry(); + return QXmppRosterIq::Item(); } /// [OBSOLETE] Returns all the roster entries in the database. /// -/// \return Map of bareJid and its respective QXmppRosterManager::QXmppRosterEntry +/// \return Map of bareJid and its respective QXmppRosterIq::Item /// /// \note This function is obsolete, use getRosterBareJids() and /// getRosterEntry() to get all the roster entries. /// -QMap +QMap QXmppRosterManager::getRosterEntries() const { return m_entries; diff --git a/source/QXmppRosterManager.h b/source/QXmppRosterManager.h index 4cde5f98..28c8dc8b 100644 --- a/source/QXmppRosterManager.h +++ b/source/QXmppRosterManager.h @@ -73,7 +73,7 @@ public: bool isRosterReceived(); QStringList getRosterBareJids() const; - QXmppRosterManager::QXmppRosterEntry getRosterEntry(const QString& bareJid) const; + QXmppRosterIq::Item getRosterEntry(const QString& bareJid) const; QStringList getResources(const QString& bareJid) const; QMap getAllPresencesForBareJid( @@ -83,7 +83,7 @@ public: /// \cond - QMap Q_DECL_DEPRECATED getRosterEntries() const; + QMap Q_DECL_DEPRECATED getRosterEntries() const; QMap > Q_DECL_DEPRECATED getAllPresences() const; /// \endcond @@ -102,7 +102,7 @@ private: //reverse pointer to stream QXmppStream* m_stream; //map of bareJid and its rosterEntry - QMap m_entries; + QMap m_entries; // map of resources of the jid and map of resouces and presences QMap > m_presences; // flag to store that the roster has been populated -- cgit v1.2.3