diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-04 07:31:28 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-04 07:31:28 +0000 |
| commit | 2d7fe115b763f1f030dce7d0082ae976458c5761 (patch) | |
| tree | 48970506a1523e50f7efcc7dd167a1bb6d03d628 /source/QXmppMessage.h | |
| parent | 9de7fd1298f3b19b437dad724d7a40a36cb95a54 (diff) | |
| download | qxmpp-2d7fe115b763f1f030dce7d0082ae976458c5761.tar.gz | |
cleanup QXmppMessage accessors
Diffstat (limited to 'source/QXmppMessage.h')
| -rw-r--r-- | source/QXmppMessage.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/source/QXmppMessage.h b/source/QXmppMessage.h index c4e2809d..92b55478 100644 --- a/source/QXmppMessage.h +++ b/source/QXmppMessage.h @@ -55,24 +55,31 @@ public: const QString& body = "", const QString& thread = ""); ~QXmppMessage(); - QXmppMessage::Type getType() const; + QXmppMessage::Type type() const; void setType(QXmppMessage::Type); - QXmppMessage::State getState() const; + QXmppMessage::State state() const; void setState(QXmppMessage::State); - QString getBody() const; + QString body() const; void setBody(const QString&); - QString getSubject() const; + QString subject() const; void setSubject(const QString&); - QString getThread() const; + QString thread() const; void setThread(const QString&); void parse(QDomElement &element); void toXml(QXmlStreamWriter *writer) const; + // deprecated accessors, use the form without "get" instead + QXmppMessage::Type Q_DECL_DEPRECATED getType() const; + QXmppMessage::State Q_DECL_DEPRECATED getState() const; + QString Q_DECL_DEPRECATED getBody() const; + QString Q_DECL_DEPRECATED getSubject() const; + QString Q_DECL_DEPRECATED getThread() const; + private: QString getTypeStr() const; void setTypeFromStr(const QString&); |
