diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-03-04 20:19:23 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-03-04 20:19:23 +0000 |
| commit | 8b4a02ed35651ad2aadc8a8916baafb6e5bb6cde (patch) | |
| tree | cd4520f62255ff2608b9ae280737f2d49139f084 /source/QXmppRosterIq.h | |
| parent | 9693decf703546cefbb8ee7d70f9b019abf332d3 (diff) | |
| download | qxmpp-8b4a02ed35651ad2aadc8a8916baafb6e5bb6cde.tar.gz | |
API cleanup: accessors naming
Diffstat (limited to 'source/QXmppRosterIq.h')
| -rw-r--r-- | source/QXmppRosterIq.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/source/QXmppRosterIq.h b/source/QXmppRosterIq.h index 409f4d55..56fa8ae8 100644 --- a/source/QXmppRosterIq.h +++ b/source/QXmppRosterIq.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2009 Manjeet Dahiya + * Copyright (C) 2008-2010 Manjeet Dahiya * * Author: * Manjeet Dahiya @@ -46,11 +46,12 @@ public: Remove }; - SubscriptionType getSubscriptionType() const; - QString getName() const; - QString getSubscriptionStatus() const; - QString getBareJid() const; - QSet<QString> getGroups() const; + SubscriptionType subscriptionType() const; + QString name() const; + QString subscriptionStatus() const; + QString bareJid() const; + QSet<QString> groups() const; + void setName(const QString&); void setSubscriptionStatus(const QString&); void addGroup(const QString&); @@ -60,6 +61,13 @@ public: void setSubscriptionTypeFromStr(const QString&); void toXml(QXmlStreamWriter *writer) const; +// deprecated accessors, use the form without "get" instead + SubscriptionType Q_DECL_DEPRECATED getSubscriptionType() const; + QString Q_DECL_DEPRECATED getName() const; + QString Q_DECL_DEPRECATED getSubscriptionStatus() const; + QString Q_DECL_DEPRECATED getBareJid() const; + QSet<QString> Q_DECL_DEPRECATED getGroups() const; + private: QString m_bareJid; SubscriptionType m_type; @@ -74,9 +82,12 @@ public: ~QXmppRosterIq(); void addItem(const Item&); - QList<Item> getItems() const; + QList<Item> items() const; void toXmlElementFromChild(QXmlStreamWriter *writer) const; +// deprecated accessors, use the form without "get" instead + QList<Item> Q_DECL_DEPRECATED getItems() const; + private: QList<Item> m_items; }; |
