From 9de7fd1298f3b19b437dad724d7a40a36cb95a54 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Thu, 4 Mar 2010 07:01:57 +0000 Subject: make getTypeStr and setTypeFromStr private --- source/QXmppMessage.h | 7 +++++-- source/QXmppPresence.h | 7 +++---- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'source') diff --git a/source/QXmppMessage.h b/source/QXmppMessage.h index 2590e088..c4e2809d 100644 --- a/source/QXmppMessage.h +++ b/source/QXmppMessage.h @@ -56,17 +56,17 @@ public: ~QXmppMessage(); QXmppMessage::Type getType() const; - QString getTypeStr() const; void setType(QXmppMessage::Type); - void setTypeFromStr(const QString&); QXmppMessage::State getState() const; void setState(QXmppMessage::State); QString getBody() const; void setBody(const QString&); + QString getSubject() const; void setSubject(const QString&); + QString getThread() const; void setThread(const QString&); @@ -74,6 +74,9 @@ public: void toXml(QXmlStreamWriter *writer) const; private: + QString getTypeStr() const; + void setTypeFromStr(const QString&); + Type m_type; State m_state; diff --git a/source/QXmppPresence.h b/source/QXmppPresence.h index c62f640e..39b0ac07 100644 --- a/source/QXmppPresence.h +++ b/source/QXmppPresence.h @@ -82,7 +82,6 @@ public: QXmppPresence::Type getType() const; void setType(QXmppPresence::Type); - void setTypeFromStr(const QString&); QXmppPresence::Status& getStatus(); const QXmppPresence::Status& getStatus() const; @@ -92,11 +91,11 @@ public: void toXml( QXmlStreamWriter *writer ) const; private: + QString getTypeStr() const; + void setTypeFromStr(const QString&); + Type m_type; QXmppPresence::Status m_status; - - QString getTypeStr() const; - QByteArray getExtensionsXML() const; }; #endif // QXMPPPRESENCE_H -- cgit v1.2.3